1832993 Members
3796 Online
110048 Solutions
New Discussion

setuid

 

setuid

How can I make permissions of a file like

---s--s--x 1 root root 114688 Oct 15 2003 sudo

Right now it is:

---x--x--x 1 root root 114688 Oct 15 2003 sudo.

I wanna change xxx to ssx.
4 REPLIES 4
Chris Vail
Honored Contributor

Re: setuid

chmod +s sudo
Pete Randall
Outstanding Contributor

Re: setuid

"chmod u+s g+s sudo"

Whether this is a good idea or would interfere with the operation of sudo, I'm not sure.


Pete

Pete
Anshumali
Esteemed Contributor

Re: setuid

chmod ug=s,o=sx sudo
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Patrick Wallek
Honored Contributor

Re: setuid

Yet another way:

chmod 6111 sudo