Operating System - HP-UX
1830899 Members
3317 Online
110017 Solutions
New Discussion

Setting permissions correctly

 
SOLVED
Go to solution
Randy Brown_1
Frequent Advisor

Setting permissions correctly

While applying sendmail patches, I ran into the following:
I replaced /usr/sbin/sendmail with the patched version. Whe I compared it to the old one using ls -l the permissions appeared as follows:
-r-Sr-Sr-T
instead of
-r-sr-sr-t
How can I correct this? Thank you!

Randy
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: Setting permissions correctly

Hi Randy:

# chmod 7555 /usr/sbin/sendmail

Regards!

...JRF...
Hai Nguyen_1
Honored Contributor

Re: Setting permissions correctly

Randy,

# chmod 7555 filename

Hai
Helen French
Honored Contributor

Re: Setting permissions correctly

You could do this:

# chmod 7555 /usr/sbin/sendmail.

The reason why it was showing captial letters, becuase the permissions didn't have the execute permission (x) set for user, group and others. With 555, you will set the r-x combination and with 7555 you will set owner-id (s) and group-ID (s) and sticky bit (t)
Life is a promise, fulfill it!
Randy Brown_1
Frequent Advisor

Re: Setting permissions correctly

That did it. Thanks!!

Randy