Results 1 to 10 of 15
Hi everyone
i am using ubuntu 8.4 hardy ubuntu
i dont know what my root password is
i always use client account but i need to use root now
actually ...
- 01-15-2009 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
[SOLVED] I cant change passwords?
Hi everyone
i am using ubuntu 8.4 hardy ubuntu
i dont know what my root password is
i always use client account but i need to use root now
actually i know the password but it isnt work
i have tried
system>administration>users and groups
but i could do anyway
- 01-15-2009 #2
Ubuntu doesn't set a root password by default. Everything requiring root privileges is done using "sudo" and the regular user's password.
If you need to be able to log in as root, you need to set the root password first. You can do this with:
Then log in as root with:Code:sudo passwd root Enter Password: <enter your user password> New UNIX Password: <enter desired root password> Password set.
Code:su <enter> Password: <enter root password>
Registered Linux user #270181
TechieMoe's Tech Rants
- 01-15-2009 #3Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
There's also this little trick:
sudo su
- 01-15-2009 #4forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
...in addition to what the others have posted, you can check this short article regarding su vs sudo for more information:
http://www.linuxforums.org/forum/ubu...in-ubuntu.htmloz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 01-15-2009 #5Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Well, that's more about Ubuntu's usage of sudo, doesn't really explain the difference between su and sudo...
...the largest is that sudo does not adjust the environment variables from the user running it to root's, which su does (mostly). This is why Ubuntu has to add the sbin dirs to user paths in order to make sudo run smoothly. In other distros, running something like sudo lspci will still come up with a bash "command not found" error, you'd have to actually run su to get in there and run sbin commands. IOW, sudo runs commands with roots permissions in the user's environment.
- 01-16-2009 #6Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
i have done all of your says but i want to be root when ubuntu open
i wrote username :root
and then i wrote the password but it didnt work
- 01-16-2009 #7forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 01-16-2009 #8Registered Linux user #270181
TechieMoe's Tech Rants
- 01-16-2009 #9Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Ozar's right. The "always log in as admin" is a (until recently) Microsoft mentality that undermines the security of any computer running any operating system. Only certiain tasks require administrative (root) rights and only when running a series of those specific tasks should anyone consider logging in as root, and with su, that can be effectively done from the user prompt.
- 01-17-2009 #10Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
i cant use many files like windows for example i want to edit crontab on gnome but it gives me error



