Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-25-2005, 09:40 AM   #1
Registered: Mar 2003
Posts: 178

Rep: Reputation: 30
Why doesn't SUID work?

I haven't used SUID in the past but I heard about it and I thought it would be a nice way to run Synaptic and apt-get without having to su to root. PAM's nice but it doesn't seem to register in GNOME. So I set the permissions to 4755 on apt-get and synaptic which should have it run as the owner (root). However, it's giving me permission issues and I noticed in htop it's running as the user account not root. This happened under RHEL4 and Ubuntu. What am I missing? If I ls -l the file I'm seeing -rwsr-xr-x which seems like what I should have.
Old 12-25-2005, 10:28 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Look at man sudo for methods to run a job as "root" without logging in as "root."

Note, of course, that you have to be "root" to change the /etc/sudoers file to alow a user to use sudo.

Oh, if you're running KDE, you can also use the kdesu command to run a job as root, using root's password instead of your own. GNOME may have a similar command, but it's been so long since I've used GNOME that I've fogotten if (if I ever knew it).


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
suid problem Milosevic Programming 3 11-13-2005 12:36 AM
SUID bit on executables doesn't work?! Silverjam Linux - Security 7 11-02-2004 10:10 PM
suid pppoe Santas Linux - Security 0 10-18-2004 06:42 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM
X based programs refuse to work when suid is used in slackware 9.1. Have nvidia 5328 natalinasmpf Linux - General 0 01-01-2004 11:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 PM.

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