Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Okay, I'm down with all this. but what about the' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Okay, I'm down with all this. but what about the
Authored by: mshepherd on Jun 22, '02 10:56:57PM

Take this for example with the sendmail app:

r-sr-xr-x 1 root smmsp 581060 Jun 4 23:14 sendmail

How the heck do you set an "s"????

I really need a reply, as I have to change my sendmail permissions to get the thing to work under 10.1.5.

Thanks!



[ Reply to This | # ]
Okay, I'm down with all this...
Authored by: dm2243 on Jun 24, '02 11:10:53AM

try "chmod 6555 /usr/sbin/sendmail" - that will get you -r-sr-sr-x, which works for my sendmail.



[ Reply to This | # ]
Okay, I'm down with all this. but what about the
Authored by: shepmaster on Jun 24, '02 08:38:27PM
01000000 temporary file 02000000 compressed file 4000 Hidden file (setuid bit) 2000 System file (setgid bit) 1000 Archive bit (sticky bit) 0400 Individual read 0200 Individual write 0100 Individual execute (or list directory) 0040 Group read 0020 Group write 0010 Group execute 0004 Other read 0002 Other write 0001 Other execute
This was copied from http://www.mkssoftware.com/docs/man1/chmod.1.asp These correspond to the numbers in addition to robg's.

[ Reply to This | # ]
Symbolic is probably easiest.
Authored by: serversurfer on Jun 25, '02 02:58:26AM
You can also use chmod u+s foo.bar to make the file setuid and chmod g+s foo.bar to make it setgid.

[ Reply to This | # ]