LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   no ****ing way! this is too much, i am really annoyed now (https://www.linuxquestions.org/questions/arch-29/no-%2A%2A%2A%2Aing-way-this-is-too-much-i-am-really-annoyed-now-423486/)

jimjamjahaa 03-10-2006 08:08 AM

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

help!

perfect_circle 03-10-2006 08:28 AM

To change the password of a user you use
Code:

passwd
command
Type
Code:

man passwd
for more details

jimjamjahaa 03-10-2006 09:36 AM

hmmm so i found out. i had to boot up a live ubuntu cd and delete the password from /etc/shadow

marozsas 03-10-2006 10:40 AM

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".

cheers,

soulestream 03-10-2006 06:04 PM

just use adduser, instead

soule

jimjamjahaa 03-14-2006 08:06 AM

@ marozsas

yeah i noticed that as i was deleting it from the shadow file

XavierP 03-14-2006 04:33 PM

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.


All times are GMT -5. The time now is 05:43 PM.