Mandriva This Forum is for the discussion of Mandriva (Mandrake) 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-04-2004, 12:34 AM
|
#1
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Rep:
|
How to change root and username passwords?
If I go into a terminal what do I do to change the root and my username passwords? What are the exact commands for this in Mandrake?
|
|
|
10-04-2004, 12:41 AM
|
#2
|
Member
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397
Rep:
|
If you want to change your own password type passwd.
Now, if you want to change any user's password you type passwd user (as root of course).
|
|
|
10-04-2004, 12:43 AM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
If you are a logged in as any systenm user (including root) and you need to change your own password, just run "passwd" at the command prompt. You'll be asked for the current password and then you'll have to enter the new one twice. If you want to change other users paswords, you have to switch to the root use and run a commnad similar to the one below,
# passwd USERNAME
and you'll have to type in the new password. Hope this helps.
|
|
|
10-04-2004, 12:58 AM
|
#4
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
When I typed passwd it says changing password for user root.
Does that mean to change the 'root' or 'username' password??? Im confused.
Last edited by wardialer; 10-04-2004 at 01:02 AM.
|
|
|
10-04-2004, 01:20 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
1) if you are logged in as root and need to change the root password, just type in passwd and it'll change the root password.
2) if you are logged in as yourself, type "passwd" to change your password.
3) if you are logged in as yourself and need to change another users password, switch to root, then type passwd USERNAME (where username is the userid of the person whose password you want to change.)
|
|
|
10-04-2004, 01:33 AM
|
#6
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
I am not working as 'root'. I am logged in as myself (I have my own user ID to login). So, I go into the terminal and do an 'su' and then type passwd (to change the 'root' password and type passwd myusername (to change my username password)?
Am I correct?
|
|
|
10-04-2004, 01:34 AM
|
#7
|
Member
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397
Rep:
|
For more info, take a look at the passwd manpage.
|
|
|
10-04-2004, 01:39 AM
|
#8
|
Member
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375
Original Poster
Rep:
|
Ok I got it now...
I typed passwd without doing 'su' and it asked me to change my username password.
Then, I did an 'su' and typed passwd to change the 'root' password.
Yes,,, I got it.
|
|
|
10-04-2004, 07:32 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
good for you, I was kinda getting worried that I wasn't explaining things right.
|
|
|
All times are GMT -5. The time now is 05:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|