May 11, 2005 #1 Mag0007 MIS Feb 15, 2005 829 US I am trying to check if the entries/scripts in crontab have other permission to write (chmod 750). I can get the scripts easily by: crontab -l | awk {'print $6'} But how do I check the permissions of them? TIA
I am trying to check if the entries/scripts in crontab have other permission to write (chmod 750). I can get the scripts easily by: crontab -l | awk {'print $6'} But how do I check the permissions of them? TIA
May 11, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR A starting point: find `crontab -l | awk '!/^#/{print $6}'` -follow ! -perm 750 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
A starting point: find `crontab -l | awk '!/^#/{print $6}'` -follow ! -perm 750 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
May 13, 2005 Thread starter #3 Mag0007 MIS Feb 15, 2005 829 US PHV: thanks! what does the "!" do in -follow ! perm 750? I want to find files in that list which do NOT have 750 permission. Upvote 0 Downvote
PHV: thanks! what does the "!" do in -follow ! perm 750? I want to find files in that list which do NOT have 750 permission.
May 13, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR man find Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
man find Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
May 13, 2005 #5 KenCunningham Technical User Mar 20, 2001 8,475 GB It negates the -perm value, ie finds any where the permissions aren't 750. Upvote 0 Downvote