LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   setuid Help (https://www.linuxquestions.org/questions/linux-general-1/setuid-help-122282/)

devinWhalen 12-03-2003 09:38 AM

setuid Help
 
Hello,

I want to change the setuid of a file to root...how do I do this? I know I have to use chmod and the option is `s` but I don't know how to put all this together, the man pages are not clear.

Thanks for the help

Later

jkobrien 12-03-2003 09:45 AM

Hi,

It's chmod u+s <filename>

John

devinWhalen 12-03-2003 09:57 AM

so if I wanted to change crazymofo.pl setuid to root I would do:
chmod u+s crazymofo.pl
Wait.....I just got it. I didn't understand what setuid was until now! It just hit me. I thought I had to give setuid a value like root, but setuid allows the file to change to any username....right? Thanks for your help.

Later


All times are GMT -5. The time now is 04:21 AM.