05-01-2002 08:04 AM - last edited on 03-28-2013 12:21 AM by Maiko-I
I am trying to restrict the permissions of swlist only for root, that means only root can run this command, I know I can use setacl/getacl, but when I run
It said that "acl failed for file "usr/sbin/swlist", Function is not availabe", any idea? Or any other better solutions? Thanks.
P.S. This thread has been moved from HP-UX > General to HP-UX > patches - HP Forums Moderator
Solved! Go to Solution.
05-01-2002 08:10 AM
What type of file system ? The acl's will work only with JFS 3.3 and above.
You can consider using chmod command:
# chmod 700 swlist
I think there will be issues if you restrict the read/execute permission to others.
05-01-2002 08:28 AM
Can you give me more details about "I think there will be issues if you restrict the read/execute permission to others"? What is the potential problem? Thanks.
05-01-2002 08:59 AM
I have mentioned that point, because normally the permissions set to the commands and utilities in /usr, /usr/sbin, /etc are very OS specific. You should be very careful when changing the permissions or ownership of those files.
I will give you an eg: My oracle dba once reported an error starting the database -"permission denied". The problem reported to metalink and the solution was to check the permission of 'lanscan' command. In that case the permission of lanscan was incorrect when I checked it.
Like this, in your case if any dba/developer install or update any application/program which in turn calls 'swlist', then there are chances that you unnecessary spending time on it !
Sorry, if I was confusing you.
my 2 cents ..