Shell command to retrieve file ownership of a determed file

Martin Thoma mthoma at schlagundrahm.ch
Thu Sep 7 07:36:05 UTC 2006


Hi

I am writing a shell script that is verifies ownership and the file 
access permissions of selected files. Is there a tool that allows me to 
retrieve the uid,gid and mode directly instead of 'ls -l | grep 
<filename> | cut -d" " ...'?

Thanks for a hint.

Cheers Martin




More information about the redhat-list mailing list