1822001 Members
3920 Online
109639 Solutions
New Discussion юеВ

chmod command

 
uspfoms
Regular Advisor

chmod command

Installed new sendmail, now need to correct permissions on it. The original sendmail is r-sr-sr-t. What is the correct chmod syntax to get these permissions ?

Thanks
5 REPLIES 5
David_246
Trusted Contributor

Re: chmod command

Hi

Just did the same :)

chmod 555 /usr/sbin/sendmail
chmod u+s /usr/sbin/sendmail
chmod g+s /usr/sbin/sendmail
chmod o+t /usr/sbin/sendmail

Regs David
@yourservice
Robert-Jan Goossens
Honored Contributor

Re: chmod command

Hi,

# chmod 7555 sendmail

Robert-Jan.
A. Clay Stephenson
Acclaimed Contributor

Re: chmod command

As root:

chown root:mail sendmail
chmod 7555 sendmail
If it ain't broke, I can fix that.
Robin Wakefield
Honored Contributor

Re: chmod command

Hi,

chmod 7555 /usr/sbin/sendmail

rgds, Robin
S.K. Chan
Honored Contributor

Re: chmod command

Or ..
# chmod a=rx,u+s,g+s,o+t sendmail