The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
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
Reply With Quote
Forum Sponsor
  #2  
Old 08-09-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
Reply With Quote
  #3  
Old 08-09-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0