Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63823 - su broken, cant su to root: permission denied
Summary: su broken, cant su to root: permission denied
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-12 13:01 UTC by Schrangl Lukas
Modified: 2004-09-12 13:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Schrangl Lukas 2004-09-12 13:01:22 UTC
When logging on as normal user i cant su to root.

Reproducible: Always
Steps to Reproduce:
user@workstation / $ su
Password:
su: Permission denied
Sorry.
Actual Results:  
no root shell 
su says: 
> su: Permission denied 
> Sorry. 
syslog-ng logs: 
> su[xxxx]: pam_authenticate: Permission denied 

Expected Results:  
root shell 

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 
2.6.7-gentoo-r14) 
================================================================= 
System uname: 2.6.7-gentoo-r14 i686 Mobile AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -mmmx -msse -m3dnow" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -mmmx -msse -m3dnow" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr 
encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww 
mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl pam pcmcia pdflib perl 
png ppds python qt quicktime readline sdl slang spell ssl svga tcpd truetype 
usb x86 xml2 xmms xprint xv zlib"
Comment 1 Sam Kimbrel 2004-09-12 13:09:07 UTC
Can you give us the output of "groups" or "id" run as the user you want to su from? 
Comment 2 Schrangl Lukas 2004-09-12 13:20:00 UTC
bash-2.05b$ id
uid=1000(lukas) gid=100(users) groups=5(tty),18(audio),80(cdrw),100(users)
Comment 3 Sam Kimbrel 2004-09-12 13:35:17 UTC
Run "gpasswd -a [username] wheel" as root and su will work. 
Comment 4 Bryan Østergaard (RETIRED) gentoo-dev 2004-09-12 13:37:07 UTC
Seems this is solved thanks to Sam Kimbrel. Reopen bug if adding user and logging out/back in doesn't solve your problem.
Comment 5 Schrangl Lukas 2004-09-12 13:45:11 UTC
sorry, found this in the faq now...