LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-02-2005, 09:48 PM   #1
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Rep: Reputation: 15
Can't SU


I am running DeLi Linux and I am unable to su to root as a normal user; can anyone help me?

Thanks in advance!
 
Old 03-02-2005, 09:53 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Make sure your user is in the wheel group.
 
Old 03-02-2005, 10:45 PM   #3
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Original Poster
Rep: Reputation: 15
My user account is in the 'wheel' group.
 
Old 03-02-2005, 10:45 PM   #4
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
can anybody explain to me why the group is called WHEEL in OpenBSD and several Linux Distros?
 
Old 03-02-2005, 10:47 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Root is the hub which is surrounded by a wheel of privileged users.

To the OP: what's the exact error message? Can you login to root normally (not via su)? Can you check that permissions on /bin/su are 4755 (-rwsr-xr-x)?
 
Old 03-02-2005, 10:50 PM   #6
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Short answer: it's a reference to "Big wheel", meaning somebody who is important. I'll try to find a link to more history. It's a carryover from old UNIX days.

Reference: http://www.redhat.com/archives/redha.../msg02358.html

As for the 'su' command - you may also need to add an entry to the /etc/sudoers file. With some distros you do this with a 'visudo' command, with others you can edit it directly.

Last edited by dsegel; 03-02-2005 at 10:59 PM.
 
Old 03-02-2005, 10:54 PM   #7
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
Thanks for the bit of background
 
Old 03-02-2005, 10:55 PM   #8
emathias
LQ Newbie
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 24

Rep: Reputation: 15
Try use sudo

Try to use "sudo" (http://www.courtesan.com/sudo/)

It's safer, because what an user does as root will be logged, and you can give difeerent permissions to the users.
There are Linux distr. (such as gentoo) that do not allow you to become root (it just can be made using something like sudo)
 
Old 03-02-2005, 11:00 PM   #9
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Re: Try use sudo

Quote:
Originally posted by emathias
Try to use "sudo" (http://www.courtesan.com/sudo/)

It's safer, because what an user does as root will be logged, and you can give difeerent permissions to the users.
There are Linux distr. (such as gentoo) that do not allow you to become root (it just can be made using something like sudo)
Using 'sudo' instead of 'su' is great advice, but Gentoo most certainly lets you log in as root or become root via 'su' whenever you want. At least, in the normal configuration it does.
 
Old 03-03-2005, 02:48 AM   #10
GSX
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Debian Etch, kernel 2.6.18
Posts: 103

Rep: Reputation: 15
One question:


Code:
(-rwsr-xr-x) file...

What´s the meaning of the "s" in the file permissions?


Greetz
GSX
 
Old 03-03-2005, 05:58 PM   #11
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks!

I took your advice and installed sudo and everything is working great; although I still need to do some fiddling around with my sudo config file.
 
Old 03-03-2005, 06:21 PM   #12
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
Quote:
Originally posted by GSX
One question:


Code:
(-rwsr-xr-x) file...

What´s the meaning of the "s" in the file permissions?


Greetz
GSX
It's the "set user or group ID on execution" bit. It sets the user or group to the appropriate value for the owner of the file when it is executing.
 
Old 03-04-2005, 07:09 AM   #13
GSX
Member
 
Registered: Feb 2005
Location: Germany
Distribution: Debian Etch, kernel 2.6.18
Posts: 103

Rep: Reputation: 15
Thx for the info...

Greetz
GSX
 
  


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



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

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