UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sudo is a command that allows you to run commands as another user.
ie .. user1 can use sudo to run a command as user2, but it is only temporar for that command (unless you use sudo to call su )
however you will need to set permissions in the sudo cfg file.. /etc/sudoers
in the shell
u type
su
then it will ask u for the password
You don’t have to enable it. Just do “sudo bash” (or whatever shell you wish to use). It will probably ask for your password (unless you had already done a sudo recently).
You don’t have to enable it. Just do “sudo bash” (or whatever shell you wish to use). It will probably ask for your password (unless you had already done a sudo recently).
thanks done that now I can get a root shell but how do I log in as root as the ubuntu login screen says administrators must not use this to login.
you can change log in as root. simply change the password by doing:
you will then be prompted to enter the new password twice (after you type in your sudo password of course)
Yes that is OK but I am using Ubuntu and I am trying to login as root to run apache. (Noting you maybe are using Fedora4 that does not have this kind of protection.)
Do you know how to overcome the Ubuntu login screen and login as root. It says the administartor is not allowed to login at this screen. If this is the case what screen can he login on.
There are so many ways to execute root level apps that don't leave your system wide open to all the strange little cracker-heads out there. Ubuntu is set up specifically to give a great deal of latitude to run root level apps as a "normal" user.
thanks done that now I can get a root shell but how do I log in as root as the ubuntu login screen says administrators must not use this to login.
Why do you need to login to a GUI desktop as root?
I can't think of a single reason for doing that, and it's much more dangourous that just running a shell as root (which, by the way is done by "sudo -i")
Yes that is OK but I am using Ubuntu and I am trying to login as root to run apache. (Noting you maybe are using Fedora4 that does not have this kind of protection.)
Do you know how to overcome the Ubuntu login screen and login as root. It says the administartor is not allowed to login at this screen. If this is the case what screen can he login on.
What I first stated was the commands for Ubuntu. Ubuntu disables logging into the root account by default. In order to do so (either from the terminal or from the Ubuntu sign in screen), you open a terminal window, type in:
Quote:
sudo passwd root
You will then be prompted with "Password:" at which point you enter the password for your account. Once that is done, you then enter the new password for root.
This will allow you to use the "su -" command in the terminal to run as root as well as at the sign on screen login as root.
*Side Note* Runing Fedora Core 5 really doesn't have that much to do with commenting on a Ubuntu post. After all, once you've used Linux for a while, it becomes easy to manuver in other distros
What I first stated was the commands for Ubuntu. Ubuntu disables logging into the root account by default. In order to do so (either from the terminal or from the Ubuntu sign in screen), you open a terminal window, type in:
You will then be prompted with "Password:" at which point you enter the password for your account. Once that is done, you then enter the new password for root.
This will allow you to use the "su -" command in the terminal to run as root as well as at the sign on screen login as root.
*Side Note* Runing Fedora Core 5 really doesn't have that much to do with commenting on a Ubuntu post. After all, once you've used Linux for a while, it becomes easy to manuver in other distros
Good luck.
That is the point you can use a terminal as root but you cannot repeat cannot, sign in on the gui screen as root. Having done all you say. you can do all that with, Mandrake, Fedora, redhat, Susi but not to my knowledge in Ubuntu.
the reason I want to run a full LAMP website and without access as root it appears at the moment to be impossible.
This distro is good and far better than Fedora 5 which still will not run 64bit Apache php websites. I am hoping to get Ubuntu to do it but I need to login in a graphics window as root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.