LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-06-2011, 01:22 PM   #1
smintz
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Being a newbie, can someone help with sudo and setuid


I am having difficulties with understaanding sudo and setuid.
Is it possible to get the steps involved for setting these up and then running them?
Thanks
 
Old 09-06-2011, 01:33 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Quote:
Originally Posted by smintz View Post
I am having difficulties with understaanding sudo and setuid.
Is it possible to get the steps involved for setting these up and then running them?
Thanks
Well first of all, you have to boot into Linux (I can see you're using Windows 7).

For setuid: I am thinking you might be mixing this up with su. Try this to become root (that's su and a hyphen):

Code:
su -
and enter your password.

Next, sudo is another way to gain elevated priveledges without actually becoming the root user. If your user/group is allowed to use sudo (you can just try it or check the /etc/sudoers file) then you can run most commands like this:

Code:
sudo command
For instance, if you are in Ubuntu (please put what distro you are using in your signature) and want to run a sytem update:

Code:
sudo apt-get update
sudo apt-get upgrade
For Ubuntu you would rarely ever need to actually su - to the root user account. However, if you needed to, you would have to first set the root password:

Code:
sudo passwd root
and then you could su - to the root account and use it.
 
Old 09-06-2011, 06:09 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
For 'su -' enter root's passwd, not your own. Note that that is the default target user; you can 'su - some_user' to any user if you know their passwd.
http://linux.die.net/man/1/su

You enter your own passwd for sudo access
http://linux.die.net/man/8/sudo
http://linux.die.net/man/5/sudoers
http://www.gratisoft.us/sudo/man/sudoers.html

suid, sgid are for permissions, not logging in as others
setuid, setgid (aka suid, sgid) http://www.omnisecu.com/gnu-linux/re...and-setgid.htm
 
  


Reply

Tags
setuid, sudo



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
sudo: must be setuid root mswamy78 Linux - Newbie 23 11-23-2012 09:20 AM
[SOLVED] sudo:must be setuid root rahulkya Linux - Software 7 02-21-2011 03:25 PM
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 07:47 PM
sudo stopped working: "must be setuid root" quincy_the_penquin Linux - Software 4 04-30-2007 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 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