LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i login as root in salix 13.37 (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-login-as-root-in-salix-13-37-a-4175511403/)

Roy_SRC 07-17-2014 11:40 AM

how do i login as root in salix 13.37
 
i recently ran the salix 13.37 LiveCD on VirtualBox but i can only login to "one" user account with no password but i can't seem to login to root.. when i type "root" as username and "live" as the password all i get is "The system administrator is not allowed to login from this screen". so how do i login as a root user with a GUI.thanks

dolphin_oracle 07-17-2014 11:46 AM

a lot of distributions do not allow you to log in as root, as many consider it to be bad practice. That said, you can run gui tools as root usually simply using the terminal, logging in as root with su, and then running whatever app you wanted. Depending on the system, you may also have ways to run apps as root from the command line. For instance, in antiX we have gksu installed by default. So if I wanted to run a file manager like spacefm as root, as could say

Code:

gksu spacefm
and I should get a prompt for authentication and entry of the root password.

Roy_SRC 07-17-2014 11:53 AM

i appreciate your reply but i was talking about salix

yancek 07-17-2014 12:55 PM

The root password is "live", and as the message says you are not allowed to log in from that screen. If you need that, use another distribution. You can open a filemanager with: gksu thunar.

Roy_SRC 07-17-2014 01:11 PM

which live cd distro would you recommend to build LFS 7.5 with the requirements stated here

suicidaleggroll 07-17-2014 02:14 PM

Maybe you should back up and explain what it is you're trying to do here? Is your end goal to build LFS? If so, then why not use Salix? Or are you asking about compiling LFS because you don't believe Salix will let you do what it is you believe you need to do?

As was mentioned above, logging into the DE as root is a very, very bad idea, and is [almost] never required. Since it's not required and it's a terrible idea, just about all modern distros will block you from doing it, for your own good. There are plenty of ways to obtain root permission and do whatever it is you need doing, using command line tools or GUIs, without logging into the DE as root.

To answer your question "how do i login as root in salix", the answer is "you don't, not in salix or any other distribution, at least not from the login screen".

Roy_SRC 07-17-2014 10:12 PM

i'm just following the instructions as listed on this page.

suicidaleggroll 07-18-2014 08:01 AM

Which section says you need to log into the DE as root, because I'm not seeing it?

sidzen 07-18-2014 08:24 PM

Boot to install disk of Salix 13.37 and proceed as if installing until reaching partitioning. Cancel the install, which will put you at the root prompt.
PHP Code:

mkdir /tmp/mainlinux 

PHP Code:

mount /dev/sda1 /tmp/mainlinux

PHP Code:

chroot /tmp/mainlinux passwd 

This will be your root password when rebooting from /dev/sda1 (your hard drive boot partition)

just passing it on as i learned it. your new directory may be named anything and placed elsewhere, but this works for me.


All times are GMT -5. The time now is 09:35 AM.