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.
Just installed Xubuntu and when I log in as the user I created, It uses the same password as the root password. I am confused, why would the user have the same password as root? also.... When I try to login as root either in the GUI or from command line I cannot.
Just installed Xubuntu and when I log in as the user I created, It uses the same password as the root password. I am confused, also.... When I try to login as root either in the GUI or from command line I cannot.
Any ideas why this is?
The user you created does not have the same password as root. In Xubuntu, root has no password. This in effect disables logging in to root. This is why you cannot log in to root.
In that line you posted from /etc/passwd, that x in the second field indicates the password is stored in /etc/shadow. If you look at shadow (root access needed) you will see the encrypted password in the second field. If you look at root, you will see a "!" in that field.
In *ubuntu flavors, root login is disabled by default. It easy to fix, add a password to root.
As for the question why would the user have the same password as root? Why not? I do this on all my personal systems. I am the only one who accesses them.
On many distro's, including Ubuntu and Fedora, the sudoers file is configured so that a person in a particular user group is allowed to sudo to root. It it configured so that you use your own password, to prove you are that person.
The advantage to this is that you can assign someone to the group who needs to run a root command, without giving that person the root password. So here the advantage is when there are several people administering the computer. Also, sudo commands are logged telling you who executed a command if you have a question later.
Oh, so in Ubuntu you cannot log into Root under a GUI as if its a separate user like in slackware?
Well it's possible, but you need to cheat your way in, and go against their administrative model which generally works very well. You should never need to run X as root, absolutely never.
Well it's possible, but you need to cheat your way in, and go against their administrative model which generally works very well. You should never need to run X as root, absolutely never.
I always run X as root (In slackware) because alot of times what I am trying to do (like mount a drive or copy files) as a user I cannot, because of permssions problems.
I guess in Ubuntu I wont be able to login as root under X.
I always run X as root (In slackware) because alot of times what I am trying to do (like mount a drive or copy files) as a user I cannot, because of permssions problems.
I guess in Ubuntu I wont be able to login as root under X.
You're doing it wrong. That's what sudo is for. Again, there's no need to run X as root.
When I first startup Ubuntu I enter my password and I log in, but when I need to do something that requires root priveledges I enter the same password and am given access.
Again, using "TargetPW" in the sudoers file wouldn't make sense in Ubuntu since the target (root) has no password.
One may wish a certain group of users to only perform certain root commands. Letting them know the root password would allow them to do anything.
For mounting external drives, look at the "users" mount option in your fstab file. It allows mounting an unmounting those filesystems as a normal user.
Also look at installing the ivman package. Then you could use the `halmount' command to mount, unmount & eject removable drives. If your system uses policykit, look at adding the policy allowing the desktop session user mounting removable drives.
The "sudo" is configurable and quite flexible. There is no possibility to make default configuration applicable for everyone. Administrator of computer need to adjust configuration for their needs if default does not match. The default for Ubuntu is good for home usage. If you want to give for administration root or other user password read "man sudoers".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.