LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-11-2008, 05:48 AM   #1
drpeck
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
usermod but pwd not encrypted


Hi,

I'm an idiot and didn't read the usermod documentation correctly. I changed the password but entered it in clear text, but I'm guessing I should have used passwd to enter it in an encrypted state right? WAA WAA!

I know what password I entered, but is this of any use or do I have to reset the password as per other threads on this site (Can't submit URL as it is my first post).

I might just reinstall linux if so, as it is almost a fresh install anyway.

Thanks,

Dave
 
Old 11-11-2008, 07:37 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If you can login as root, you can change it with

passwd <username>

ie if you supply a username to the passwd cmd, it'll change the passwd for that user
 
Old 11-12-2008, 04:57 AM   #3
drpeck
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Not sure I can

What I actually ran was:
usermod -p clearTextPwd root

or something like that. Now I can't log in as root, so I guess I'm bummed?!
 
Old 11-12-2008, 05:33 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try http://www.linuxquestions.org/questi...ssword-635672/
 
Old 11-13-2008, 04:39 AM   #5
drpeck
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Sorted - by insecure linux

Thanks guys.

I've been able to resolve this as it seems Linpus (Fedora based) is not very secure. I wrote:
Code:
sudo su
which got me logged in as root, without any password!!!!

and then
Code:
passwd root
Huzzah!
 
Old 11-13-2008, 08:10 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
That's a setting in sudo. You can set it to not ask for a passwd (not recommended).
As far as root goes, I ALWAYS change the passwd manually using the passwd cmd. Its only one acct and it has to work.(!)
 
  


Reply

Tags
root login, rootpasswordetc


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
Usermod carlosinfl Linux - General 8 09-19-2006 09:26 PM
usermod and groupadd meDream Linux - Newbie 0 10-05-2005 06:01 AM
reset pwd to root's current pwd? ataraktos2 Linux - General 10 04-26-2005 05:13 AM
usermod shanenin Linux - Software 4 12-08-2003 09:49 AM
usermod thelight1 Linux - Newbie 1 07-24-2003 01:00 PM


All times are GMT -5. The time now is 03:09 PM.

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