Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > checking permissions for config files

Reply
Thread Tools

checking permissions for config files

 
 
Peter Loftus
Guest
Posts: n/a
 
      11-09-2007
I have been trying to find a class that can take in a file path and
another argument like group id or read write permissions for different
people like root, group and other. The only class i can find that does
anything near that is the file or fileutils class but they can just set
groupids etc or check to see if the person running the process has read
or write privileges to the file in question.
Im just wondering then is there anyother classes that can help me out
with my checks?
thanks in advance
Loftz
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Alex LeDonne
Guest
Posts: n/a
 
      11-09-2007
On Nov 9, 2007 5:48 AM, Peter Loftus <(E-Mail Removed)> wrote:
> I have been trying to find a class that can take in a file path and
> another argument like group id or read write permissions for different
> people like root, group and other. The only class i can find that does
> anything near that is the file or fileutils class but they can just set
> groupids etc or check to see if the person running the process has read
> or write privileges to the file in question.
> Im just wondering then is there anyother classes that can help me out
> with my checks?
> thanks in advance
> Loftz



Well, you mentioned what you want the method to take as arguments, but
what should it return? What are you checking?

-A

 
Reply With Quote
 
 
 
 
Peter Loftus
Guest
Posts: n/a
 
      11-14-2007
Alex LeDonne wrote:
> On Nov 9, 2007 5:48 AM, Peter Loftus <(E-Mail Removed)> wrote:
>> I have been trying to find a class that can take in a file path and
>> another argument like group id or read write permissions for different
>> people like root, group and other. The only class i can find that does
>> anything near that is the file or fileutils class but they can just set
>> groupids etc or check to see if the person running the process has read
>> or write privileges to the file in question.
>> Im just wondering then is there anyother classes that can help me out
>> with my checks?
>> thanks in advance
>> Loftz

>
>
> Well, you mentioned what you want the method to take as arguments, but
> what should it return? What are you checking?
>
> -A


Like lets just say one of the functions checks the directory /var and
finds out if 'other' has r-x privileges so then that function returns
either true or false if it does then true if it doesn’t then it returns
false.
I just want to know if there is a class in a library that might have
something already like that so I don’t have to waste my time and look
into how I might write one up

cheers
Loftz
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dll config and web.config and Label Expressions (binding label text to dll config settings) CSharpner ASP .Net 0 04-09-2007 09:00 PM
In-depth documenation on User Permissions, Group Permissions, ACLs, DCLs etc. Curt K ASP .Net 0 11-03-2006 04:54 PM
ASPX file returning obscur runtime error - after changing permissions to a subweb (.net app) to different permissions than on its parent ? Isabelle ASP .Net 0 08-11-2004 02:04 PM
Checking File Permissions blue ASP .Net 1 07-15-2004 01:18 AM
Re: Permissions - giving "everyone" full permissions is bad ? Scott Allen ASP .Net 0 07-13-2004 08:54 PM



Advertisments