LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2006, 04:40 AM   #1
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
su root permission denied


Rather then exhuming this thread from 2004!!
http://www.linuxquestions.org/questi...d.php?t=208467

I thought I might ask this since I have not had it happen to me before and google was not much help.

When I
Code:
$su
Password:
su: Permission denied
Sorry.
this is a new install and I can sudo su but not su directly

the other thread said I had to be in the wheel group but since this is deprecated I made myself a member of root to no avail...

Suggestions?

TIA
Will
 
Old 08-12-2006, 04:48 AM   #2
dambla
Member
 
Registered: Aug 2006
Posts: 51

Rep: Reputation: 15
i'm not sure but i think there is a file called /etc/security/console.perms (or something like that) that limits who's allowed to su to root.

le: also check out /etc/pam.d/su.
 
Old 08-12-2006, 11:06 AM   #3
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Quote:
this is a new install
Of what Linux distribution?
 
Old 08-12-2006, 12:15 PM   #4
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
Did you ever set a root password? do sudo su then passwd and change the password and try again.
 
Old 08-12-2006, 09:42 PM   #5
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
OK, thanks for all that. The distro is Gentoo and has never happened before for me with Gentoo installs - something subtle I have done differently this time.

I am able to login as root so I do know the passwd.

I will investigate the above suggestions

Will
 
Old 08-20-2006, 03:20 PM   #6
dgkamp
LQ Newbie
 
Registered: Aug 2006
Location: Eastern Maine
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Yeah me too! I followed the same path as you too: Make the user a member of root by executing 'usermod -G root (username)'. I was thinking that root must be the wheel group... But no - this didn't work.

Finally I dug into the gentoo handbook and found in chapter 11 a listing for useradd that used the option '-G users,wheel,audio'. Aha! There it is: The wheel group is named "wheel" (duh!! How come it took me 2 hours to figure that out). So just execute 'usermod -G wheel username'. This Gentoo is a lot of work, but I like it 'cause it really is a learning experience. Don.
 
Old 08-20-2006, 09:24 PM   #7
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
yep, that's where I ended up too.

Its a case of not seeing what's right there in front of me - recently the wheel became deprecated in Debian and I simply never thought to look there - once I added user to the group all was well...

Live and learn and learn again
Thanks for your reply
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied as root Cadmium Mandriva 6 10-07-2005 01:00 PM
permission denied as root Foosed Slackware 6 06-06-2005 01:38 AM
permission denied when root? TaNeK Linux - Software 8 02-01-2005 01:39 PM
root gets permission denied Nightfrost Debian 22 11-21-2004 06:19 AM
root permission denied xmaspie Linux - Newbie 2 11-05-2003 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration