LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-13-2005, 07:51 PM   #1
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Can't su


I'm having trouble using su. I'm using LFS 6.0. I'm pretty sure I installed PAM and shadow from BLFS. I can login at init 3 as root just fine, and sudo works OK (I have set up sudoers to allow me to use sudo without a password). However, when I try to "su" or "su -" or "su - root" (from a terminal in Xorg), I get a response of :

su: Authentication failure
Sorry.

Since sudo works OK, this isn't that big of a deal, but, I just want to know why my system isn't working as it should. And, sometimes I'd like to just login as root one time to do a whole bunch of things without typing sudo in front of every command...

Any thoughts?

TIA
 
Old 05-14-2005, 10:46 AM   #2
Ninjak2k
LQ Newbie
 
Registered: May 2005
Location: Blacksburg, VA
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
In Gentoo, I know that users are required to belong to the 'wheel' group in order to use su. Perhaps there is something similar that you need.

~Dan
 
Old 05-16-2005, 07:00 PM   #3
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
This question was posted in "Linux From Scratch". LFS does not use a wheel group.

Anyone have an answer on topic???

TIA
 
Old 05-17-2005, 02:51 PM   #4
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
su: Authentication failure is probably a PAM issue.

look in /etc/pam.d/* and make sure all of the files are there that have been specified by LFS-6.0 and they are all properly configured.

If you didn't install pam (which is in the blfs project) then try looking at the flags ll /bin/su does it look something like rwsr xr x?
 
Old 05-17-2005, 03:31 PM   #5
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks!, Yerp.

Su was flagged as rwxr-xr-x

All I had to do was chmod +s on /bin/su and it works now. However, my su now is flagged rwsr-sr-x. Is that OK?

Woo-hoo!
 
Old 05-19-2005, 06:48 PM   #6
Ninjak2k
LQ Newbie
 
Registered: May 2005
Location: Blacksburg, VA
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by peeples
This question was posted in "Linux From Scratch". LFS does not use a wheel group.

Anyone have an answer on topic???

TIA
No sh1t this is in the LFS section. Just trying to be helpful you SOB. No one had responded to your question and I offered a solution I know works in another distro. You could have just said "Thanks, but that's not the case under LFS." Freakin' jerk offs like you piss the sh1t out of me.
 
Old 08-02-2005, 03:36 AM   #7
perenoel
LQ Newbie
 
Registered: Aug 2005
Location: lille ( north of france )
Posts: 1

Rep: Reputation: 0
i have the same error on my gentoo and now it 's work thanks
alot
 
  


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 - Distributions > Linux From Scratch

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