LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why can't I log into root? (. . . and a few other problems U^_^) (https://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-log-into-root-and-a-few-other-problems-u%5E_%5E-4175427817/)

rayyu 09-18-2012 09:42 AM

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?

rayyu 09-18-2012 09:44 AM

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.

byrnify 09-18-2012 09:57 AM

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?

snowday 09-18-2012 10:05 AM

Quote:

Originally Posted by rayyu (Post 4783264)
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!

szboardstretcher 09-18-2012 10:26 AM

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.

rayyu 09-18-2012 10:34 AM

Quote:

Originally Posted by byrnify (Post 4783284)
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 (Post 4783292)
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 (Post 4783306)
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 :)

rayyu 09-18-2012 10:38 AM

So I'm guessing this has something to do w/ the sudoers list?

TobiSGD 09-18-2012 11:17 AM

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.

rayyu 09-18-2012 02:02 PM

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=_=

TobiSGD 09-18-2012 02:13 PM

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?

craigevil 09-18-2012 04:11 PM

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

gacanepa 09-18-2012 04:50 PM

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.

byrnify 09-19-2012 10:22 AM

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.

kbscores 09-19-2012 10:40 AM

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.


All times are GMT -5. The time now is 02:30 PM.