LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-18-2012, 09:42 AM   #1
rayyu
LQ Newbie
 
Registered: Jul 2012
Posts: 28

Rep: Reputation: Disabled
Why can't I log into root? (. . . and a few other problems U^_^)


Hi, sorry if this has been asked many times before but I don't have much time to go searching for the answers via search engine atm (I'm using a wired connection right now)

My problem is that I can't seem to login as root from my normal account. I'm confused because I've never had this problem w/ any other distro, usually sudo [password] or su- works.

I'm using salix os now and it's really beautiful except for one thing--no wifi support for broadcom! I tried following instructions to get it to work, but the slapt-get isn't recognized so I can't download what's needed Usually when the command isn't recognized, I just log into root and then it works fine (like w/ pacman, I couldn't install if it's just "pacman" and not sudo pacman)

Haha, I'm kinda stuck, can anyone help?
 
Old 09-18-2012, 09:44 AM   #2
rayyu
LQ Newbie
 
Registered: Jul 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Um, if I'm being unclear--
when I type sudo and it asks for the password, it says that the password is wrong. But I'm 100% sure that I have the right root password bec. I've used it for all the distros I've tried. And when I tried (lol as a long shot XD) to login as root at the login screen, it says that the admin can't login fron that screen. So it must've recognized that I used the root password.
 
Old 09-18-2012, 09:57 AM   #3
byrnify
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Just checking, it's not that you're not in the sudoers list? Like, the error message definitely says that the password is wrong and not that you don't have access or privileges to do that?
 
Old 09-18-2012, 10:05 AM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,136

Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
Quote:
Originally Posted by rayyu View Post
Um, if I'm being unclear--
when I type sudo and it asks for the password, it says that the password is wrong. But I'm 100% sure that I have the right root password
sudo needs your user password, not the root password.

Salix (like most distros) wisely does not accept GUI login as root!
 
Old 09-18-2012, 10:26 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,112

Rep: Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528
I haven't run into pre-packaged broadcom support. But with a little hunting, its fairly easy to get up and running -- In centos/sl6/arch -- provided you have a supported card.
 
Old 09-18-2012, 10:34 AM   #6
rayyu
LQ Newbie
 
Registered: Jul 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by byrnify View Post
Just checking, it's not that you're not in the sudoers list? Like, the error message definitely says that the password is wrong and not that you don't have access or privileges to do that?
It says that the password is wrong, try again. This is as a normal user. Uhhh I have no idea about the sudoers list. . . I've never had this problem before U^_^

Quote:
Originally Posted by snowpine View Post
sudo needs your user password, not the root password.

Salix (like most distros) wisely does not accept GUI login as root!
Ohhhh! I tried using the user password though, it says I'm not on the sudoer's list and this incident will be reported o_O (to me, I guess, being the -very inexperienced- admin and sole user XD)

Quote:
Originally Posted by szboardstretcher View Post
I haven't run into pre-packaged broadcom support. But with a little hunting, its fairly easy to get up and running -- In centos/sl6/arch -- provided you have a supported card.
I've tried arch and got wifi up on that, but I don't really like arch XD not a fan of cent either. Sabayon probably has the most hardware support aside from ubuntu, but I'm sticking to slack derivatives
 
Old 09-18-2012, 10:38 AM   #7
rayyu
LQ Newbie
 
Registered: Jul 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
So I'm guessing this has something to do w/ the sudoers list?
 
Old 09-18-2012, 11:17 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Salix, as most (all?) Slackware derivatives does not use sudo by default, so you can't start your programs with sudo. Nonetheless you should be able to either use the GSlapt package manager from the menu (you will be asked for the root password) or slapt-get with authenticating as root via su - before.
Alternatively you can press Ctrl+Alt+F1 to get to a virtual console where you can log in as root (back to the GUI with Alt+F7).
If none of these things work there is either a misconfiguration or you don't use the correct password.
 
Old 09-18-2012, 02:02 PM   #9
rayyu
LQ Newbie
 
Registered: Jul 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I keep getting "command not found" if I use slapt-get ohwell, I guess I'll try again tomorrow. I can't imagine there being a misconfiguration; salix installation is very straightforward, not much room for error except maybe in the partitioning. And I'm pretty sure the password is right, because the system recognizes it as the root password. . . it just won't let me log in as root in the terminal U=_=
 
Old 09-18-2012, 02:13 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
You can start slapt-get only as root, very likely is it not in the path of an unprivileged user. If you neither can login as root nor switch to root with su then the chance that you use the wrong password is about 99%.
What exactly do you mean with "it recognizes it as root password" and "won't let me log in as root on the terminal"?
Please give us exact information here, what exactly have you tried (which commands exactly have you used?) and which error-messages exactly do you get?
 
Old 09-18-2012, 04:11 PM   #11
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
1) Use visudo to edit your sudoers file
2) Add your user to the sudo group
3) Or you can use gksu

Visudo Manual - http://www.gratisoft.us/sudo/visudo.man.html

Add a User To Group - http://www.cyberciti.biz/faq/ubuntu-add-user-to-group/

Proper way to open apps as root in X - http://forums.debian.net/viewtopic.php?f=16&t=53366
 
Old 09-18-2012, 04:50 PM   #12
gacanepa
Member
 
Registered: May 2012
Location: San Luis, Argentina
Distribution: Debian
Posts: 203

Rep: Reputation: 26
This might be a long shot but... are you trying to log in remotely as root via SSH (for example) to this computer? If so, maybe the access as root via SSH has been disabled as a security feature (I don't really know much about Salix, just suggesting).
Otherwise, you can try to change root's password in that machine and see if it works.
 
Old 09-19-2012, 10:22 AM   #13
byrnify
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Sounds like craigevil has nailed it.

Rayyu let us know if you're still having problems after you add yourself to the sudoers list, or if you can't work out how to do it.
 
Old 09-19-2012, 10:40 AM   #14
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
If root access is not permitted, changing sudoers file won't be possible...seeing as you have to be root to change it. Just to clarify - when you try to "su -" and you give it the root password what error message does it give you? If it is telling you password is incorrect you may need to go into maintenance mode to reset root password -- you can only do this if it is not set to prompt for root password in maintenance mode.

Also, if it is set so only the wheel group can su to root (Which is not default it has to be set) then you may want to log directly into the console as root instead of logging in as yourself first.
 
  


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
[SOLVED] Some application installation questions: log in as root or log in as 'user' & do 'su' Robert.Thompson Slackware 9 02-25-2011 09:19 AM
Fedora 12 cannot log in as root, cannot su nor log into bash Neo-New Fedora 7 06-24-2010 01:48 PM
problems with passwordless log in as root with SSH Mountain Linux - Software 1 05-05-2009 02:28 PM
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 05:31 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM


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