A reader of my new book Wicked Cool Shell Scripts pointed out that the capability of testing a file permission with find using the ‘+’ notation is GNU-specific.
Specifically, in script #49, findsuid, the line:
for match in $(find /bin /usr/bin -type f -perm +4000 -print)
might need to be tweaked on some Unix versions to be -perm -4000, which will produce the same basic results.
That would look like this:
for match in $(find /bin /usr/bin -type f -perm -4000 -print)
Hope that helps clarify things!
hi
i want to know the shell script code to display file permissions along with their names which are in present working directory in UNIX….
waiting 4 ur reply……pls do it asap…
thanks
Hello
Can you please tell me
1. How to monitor ‘n’ number of servers in solaris 10/9.
2. How to take bacukup of servers in solaris 10/9.
Please kindly mail me also.
Thanks in advance.
Regards,
Mohammed Mujahid