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 - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-30-2004, 11:39 AM   #1
a deeper blue
LQ Newbie
 
Registered: Aug 2004
Distribution: gentoo (kernel: 2.6.8.rc2-nitro3)
Posts: 3

Rep: Reputation: 0
can't su to root (am in wheel)


Hello,

I have problems su-ing to root while I'm running a user account,
I however CAN su to the user while I run root

the user is part of the following groups
wheel,users,portage,cdrom,floppy,cdrw,games,audio,video

when I log in as root:

wilco / # su wilco
wilco@wilco / $ su
Password:
su: Authentication failure
Sorry.
wilco@wilco / $ exit
exit
wilco / #

pam version: 0.77-r1
pam-login version: 3.14
shadow version: 4.0.4.1-r3
sudo version: 1.6.7_p5

I'm running the kernel 2.6.8-rc2-nitro3 under gentoo

ls -l /etc/group
-rw-r--r-- 1 root root 794 aug 30 18:27 /etc/group

my /etc/group:

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm
lp:x:7:lp
mem:x:8:
kmem:x:9:
wheel::10:root,wilcje,wilco
floppy:x:11:root,wilco
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:man
cron:x:16:cron
console:x:17:
audio:x:18:wilco
cdrom:x:19:wilco
dialout:x:20:root
ftp:x:21:
sshd:x:22:
at:x:25:at
tape:x:26:root
video:x:27:root,wilco
squid:x:31:squid
gdm:x:32:gdm
xfs:x:33:xfs
games:x:35:wilco
named:x:40:named
mysql:x:60:
postgres:x:70:
cdrw:x:80:wilco
apache:x:81:
nut:x:84:
usb:x:85:
vpopmail:x:89:
users:x:100:games,wilcje,wilco
nofiles:x:200:
qmail:x:201:
postfix:x:207:
postdrop:x:208:
smmsp:x:209:smmsp
slocate:x:245:
portage:x:250ortage,wilco
utmp:x:406:
nogroup:x:65533:
nobody:x:65534:
rpc:x:111:


ls -l /etc/shadow
-r-------- 1 root root 505 aug 30 17:23 /etc/shadow

my /etc/sudoers:

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now


I have read about every message on the gentoo forum, but cannot find a solution I also spent a lot of time finding answers on google...

I"m lost, please help me (

Last edited by a deeper blue; 08-30-2004 at 12:01 PM.
 
Old 08-31-2004, 10:30 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Sorry for the silly question, but are you sure the root account has a valid password set up? You haven't posted root's /etc/passwd entry - that would be handy. You would be able to su from root to root without a password setup as su won't check in that situation.

Sudo shouldn't have any relevance (though "sudo su" should work).
 
Old 08-31-2004, 10:37 AM   #3
a deeper blue
LQ Newbie
 
Registered: Aug 2004
Distribution: gentoo (kernel: 2.6.8.rc2-nitro3)
Posts: 3

Original Poster
Rep: Reputation: 0
hehe, don't laugh please, I feel kinda silly, don't tell anyone but... I kinda errr
mounted the root filesystem with nosuid hihihi.. hehe.. d0h

Last edited by a deeper blue; 08-31-2004 at 10:54 AM.
 
  


Reply



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
limiting su root with wheel group? kj6loh Linux - General 17 09-02-2004 08:45 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
About giving ppl root/wheel access unSpawn Linux - General 1 05-20-2001 05:52 PM
About giving ppl root/wheel access unSpawn Linux - Newbie 0 05-20-2001 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:51 PM.

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