![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can we call JSP file from Unix.if so how.Please help me.Im newbie to Unix | mailsukumar | Shell Programming and Scripting | 0 | 05-26-2008 05:12 AM |
| Newbie, Directories permissions | sypherz | Linux | 3 | 04-22-2008 11:14 AM |
| UNIX newbie NEWBIE question! | Hanamachi | UNIX for Dummies Questions & Answers | 3 | 09-14-2006 07:23 AM |
| Unix permissions | mobershaw | SUN Solaris | 0 | 01-24-2006 03:06 PM |
| Unix permissions | moukoko | UNIX for Dummies Questions & Answers | 2 | 03-11-2004 05:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unix permissions for a newbie
Okay,
this may turn out to be something quite simple, but I haven't found the answer so far: 1) Is it possible to retrieve a list of user(ID) file permissions? and then... 2) What is the most efficient way to create an alert/error message when/if those file permissions are denied? Would this require a simple Perl script, or something affiliated with ROOT? Kinda itchin' to get this resolved as soon as possible. I'll be happy to provide further information if necessary. Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
1) Is it possible to retrieve a list of user(ID) file permissions?
See the man page for the find command $ find . -user username -ls username can be either a username or a numeric user ID. 2) What is the most efficient way to create an alert/error message when/if those file permissions are denied? The system will provide a error message - what more do you want? $ls -l /var/adm/sulog -rw------- 1 root root 71386 Aug 1 12:00 /var/adm/sulog $ cat /var/adm/sulog /var/adm/sulog: Permission denied |
|
#3
|
|||
|
|||
|
Okay, I'll look into that.
What I really want to do: How can I get Perl to return the unix permissions of a directory? Thanks |
|||
| Google The UNIX and Linux Forums |