Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Arch This Forum is for the discussion of Arch Linux.


  Search this Thread
Old 03-10-2006, 08:08 AM   #1
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Rep: Reputation: 15
no ****ing way! this is too much, i am really annoyed now

ok, so maybe this page i was looking at was just blatantly lieing, but it gave me the impression that to add a user you type useradd [options] [username]

so i typed, as root

useradd -gusers -pmypassword -d/home/Richard -m richard

but i cant log on.

always says password is incorrect.

so i then (admitedly stupidly) used usermod. i wanted to change the root password so that it wasnt just auto login, to make it more secure.

usermod -prootpassword root

now guess what? i cant login as root either!!!!

have i just broken everything? what the **** is up with this? i have never had any problems command line administrating stuff before

Old 03-10-2006, 08:28 AM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
To change the password of a user you use
man passwd
for more details
Old 03-10-2006, 09:36 AM   #3
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
hmmm so i found out. i had to boot up a live ubuntu cd and delete the password from /etc/shadow
Old 03-10-2006, 10:40 AM   #4
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,465
Blog Entries: 1

Rep: Reputation: 66
Just to explain why you was unlucky with "useradd -p mypassword":
the "-p" argument expects a _encrypted_ password, not a plain password.
You can get this encrypted password with "mkpasswd" command and uses the result as argument to "-p".

Old 03-10-2006, 06:04 PM   #5
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
just use adduser, instead

Old 03-14-2006, 08:06 AM   #6
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
@ marozsas

yeah i noticed that as i was deleting it from the shadow file
Old 03-14-2006, 04:33 PM   #7
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
This was a really really awful thread title. Try not to repeat the mistake. Having a correctly descriptive thread title helps our members to identify your thread and to know if they wish to post in it. It also makes it easier for people to search for this problem.


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
I am annoyed with suse paschim General 11 06-29-2004 06:33 AM
S*[t-r]+[ing]?g gr33ndata Programming 10 03-13-2004 05:15 AM
2 problems. boy im annoyed! any good books? e1000 Slackware 2 10-17-2003 11:46 PM
An annoyed small problem with Emacs jiey Linux - General 2 09-01-2003 04:01 PM
just a quicky...(su-ing) salparadise Linux - Newbie 2 01-24-2003 04:40 PM > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 12:02 PM.

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