LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-25-2006, 01:06 PM   #16
cmarnell
LQ Newbie
 
Registered: Aug 2005
Location: Boston, MA
Posts: 14

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by shadowfx78
to do something as root try sudo not just su

ie sudo apt-get update
I am not trying to do something as root, I am trying to "switch user" (su) to root.

I am thinking that the problem has something to do with PAM, but I am not quite sure what.
 
Old 08-25-2006, 11:02 PM   #17
robgig1088
LQ Newbie
 
Registered: Aug 2006
Location: Louisiana
Distribution: Ubuntu Dapper
Posts: 23

Rep: Reputation: 15
I dont know which distro youre using but in Ubuntu, you type "sudo su" and then the password of the current user. try that.
 
Old 08-25-2006, 11:06 PM   #18
sdexp
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu Linux
Posts: 103

Rep: Reputation: 15
That would be a quick solution. Also, I'm not used to seeing the hyphen after "su" so maybe it would be better (rather than "su - ") to enter
Code:
su
or
Code:
su root
.
 
Old 08-26-2006, 01:03 AM   #19
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
It may be a PAM problem. Can you look through your PAM config and see if there's any attempt to do something odd like an LDAP lookup without an LDAP server available.
 
Old 08-26-2006, 11:23 AM   #20
cmarnell
LQ Newbie
 
Registered: Aug 2005
Location: Boston, MA
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for all the help. I finally figured out what it was yesterday. There was a permissioning error on /bin/su

I had to chmod u+s /bin/su and it now works.


Quote:
Originally Posted by sdexp
Also, I'm not used to seeing the hyphen after "su" so maybe it would be better (rather than "su - ")
I am still new to Linux, but I am pretty sure adding the - after su loads the user's (who you are becoming) environment.
 
Old 08-28-2006, 07:27 AM   #21
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Make sure that /etc/pam.d/login has the following:

auth required pam_securetty.so
 
Old 08-28-2006, 07:42 AM   #22
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Look in file /etc/securetty and make sure all the tty? are there as below:

vc/1
vc/2
.
.
vc/11
tty1
tty2
.
.
tty11
 
  


Reply

Tags
login


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
Logging on as root from The Terminal bobbasic2002 Linux - General 3 03-16-2014 06:44 PM
logging into the root in terminal MrSako Linux - Newbie 3 06-22-2006 03:14 AM
Problem in text based terminal when logging as root MSafty SUSE / openSUSE 3 08-22-2005 03:14 PM
Problem in text based terminal when logging as root MSafty Linux - Software 2 08-16-2005 11:09 PM
problem logging in as root apant Linux - Newbie 3 07-03-2005 10:06 AM


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