LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 10-04-2004, 12:34 AM   #1
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Rep: Reputation: 30
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?
 
Old 10-04-2004, 12:41 AM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
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).
 
Old 10-04-2004, 12:43 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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.
 
Old 10-04-2004, 12:58 AM   #4
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 10-04-2004, 01:20 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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.)
 
Old 10-04-2004, 01:33 AM   #6
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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?
 
Old 10-04-2004, 01:34 AM   #7
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
For more info, take a look at the passwd manpage.
 
Old 10-04-2004, 01:39 AM   #8
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
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.
 
Old 10-04-2004, 07:32 AM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
good for you, I was kinda getting worried that I wasn't explaining things right.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mainly out of curiousity, is it possible to change the username of the root account? microsoft/linux Debian 3 07-21-2005 03:11 PM
username change...... roshu Linux - Software 2 03-10-2005 03:31 AM
Change username? theonebeyond LQ Suggestions & Feedback 3 12-05-2004 12:32 PM
Password Check is Passwords Skipped in Login Screen, Root System Settings Change in X edwardt Red Hat 1 07-06-2004 11:46 PM
Possible to change the root username? Thaidog Linux - Security 1 05-15-2003 07:59 PM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration