You are not logged in.
Hello,
Until now, I used to add users to my system using the adduser script. But I recently found out the useradd command which seem more convenient to me.
But I have a problem with it, even after reading the manpages.
The command I run as root is:
useradd -g users -G storage,optical,network,audio,video -m mylogin
Then I logout, and try to log in as mylogin, but the prompt ask me for a password (I haven't set it...). If I leave blank and type enter, it says that my password is incorrect.
I also tried:
useradd -g users -G storage,optical,network,audio,video -p mypassword -m mylogin
Then I logout, and try to log in as mylogin, the prompt ask me for a password, I type mypassword and type enter, but it says once again that my password is incorrect
The last question I would like to ask is: What are the groups that I really need for my desktop ? (I could add a lot of them, but I'm interested in understanding what I do)
Do I need storage for accessing my partitions ? Do I need optical to read/burn DVD ? Do I need network to use networkmanager ? Do I need audio to listen to music ? video to watch 1080p movies with VLC on my Intel i3 chipset ?
Thanks a lot :]
Last edited by Lowra (2011-03-07 13:49:51)
Offline
passwd: set/change user password.
usage:
passwd username
Arch64/DWM || My Dropbox referral link
Offline
I know about passwd, but it'll be much more easier if I could define the password while creating the account, and not have to change it afterward
Offline
How did you generate the password? According to the manpage it needs to be encrypted when you use the -p flag. If you enter a text string (e.g. mypassword), it will be added to shadow as text, which won't work.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
the preferred way is to use listed statements in the shell
useradd foo && passwd foo
to answer your questions on groups, it depends entirely on how you've set up your system
a good starting point is the wiki article linked to in JokerBoy's post
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
@loafer: You were right. I entered mypassword directly without any encryption, I guess it was the cause of the problem :]
@fsckd: Thank you, it worked perfectly !
Offline