LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-03-2003, 10:38 AM   #1
devinWhalen
Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
Posts: 168

Rep: Reputation: 30
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
 
Old 12-03-2003, 10:45 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Hi,

It's chmod u+s <filename>

John
 
Old 12-03-2003, 10:57 AM   #3
devinWhalen
Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
Posts: 168

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setuid int0x80 Linux - Security 3 12-02-2005 02:33 PM
How to setuid root abridge Linux - Newbie 4 04-06-2005 04:59 PM
Using setuid with apache dale_lix Linux - General 0 02-03-2004 11:38 AM
setuid for cdparanoia? megaspaz Linux - Software 1 10-12-2003 09:32 AM
Setuid SirTurbo Linux - General 1 03-26-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration