Results 1 to 10 of 11
I am running ubuntu 11.04 on an hp pavilion 742n. When i installed ubuntu i only installed one user on so my password is the root password Well everytime i ...
- 10-14-2011 #1
root password problems
I am running ubuntu 11.04 on an hp pavilion 742n. When i installed ubuntu i only installed one user on so my password is the root password Well everytime i ran the sudo command it asked for the password and it worked perfectly well i go to make a directory in the /usr/games directory and my root password wont work at all now what do i do
- 10-14-2011 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
How did you try to create the directory? Were you using a terminal to create a newdirectory like:
If you used the terminal as above, was there any warning/error message?sudo mkdir /usr/games/newdirectory
or were you doing it from the file manager? No reason sudo would not work in the example above.
- 10-14-2011 #3
i did it exactly as you had it above in terminal and when i put my password in it didnt say anything but it did not make the directory but when i tried to make myself root with su and i put my password in i recieved the message "su: Authentication failure
"
- 10-14-2011 #4Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 10-14-2011 #5Just Joined!
- Join Date
- Jul 2008
- Location
- Jamshedpur.
- Posts
- 2
You can't use `su` to alivate yourself as root user in Ubuntu, by default root user is locked. You need to set it's password to login or use su to be as root.
- 10-14-2011 #6
Right. Which is why I was asking if that was the issue.
Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 10-14-2011 #7Just Joined!
- Join Date
- Jul 2008
- Location
- Jamshedpur.
- Posts
- 2
it's not an issue, it's a normal behavior. When you after installing first time open the terminal, you can read something about it.
you can set login password for root using `$ sudo passwd root`,
after this you will be able to login as root and also use the su command.
- 10-14-2011 #8Just Joined!
- Join Date
- May 2007
- Posts
- 15
- 10-14-2011 #9Just Joined!
- Join Date
- Sep 2010
- Posts
- 1
No need to set root password
My dear friend,
As you know there is no default root password for Ubuntu.But the installed user have the full privilege of root.We use the sudo command for getting the root power.So it is not necessary to set the root password.It is not recommended by Ubuntu to set it because of some valid security reasons.You can perform all the jobs that can be done by root with this simple sudo command at the very beginning of all terminal commands that require permission.In your case you can create the folder Games in the usr/games folder by just changing into the same folder through terminal by the cd command.And while inside that folder use the command
sudo mkdir folder_name
Now it will ask for your password(not the root password).Enter the password and you are done.
Note:-Only the installed user can use the sudo command unless other users are added by the installed user into the sudoers file.Last edited by freesoftware; 10-14-2011 at 07:48 AM.
- 10-14-2011 #10


Reply With Quote
