[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dragora-bug] Howto: add user
From: |
Marek Buras |
Subject: |
Re: [Dragora-bug] Howto: add user |
Date: |
Thu, 28 Mar 2013 16:05:51 +0100 |
Hi!
Dnia 2013-03-28, czw o godzinie 10:45 -0100, address@hidden pisze:
> how to handle the user name tux in dragora?
adduser is a script which in the end calls useradd command (as far as I
remember), so maybe you should look at useradd? I always use this
command while adding users. For example, if you want to add this "tux"
user to your system try this:
useradd -d /home/tux -m -s /bin/bash -c "Tux User" -g users -G
audio,video,cdrom,power,plugdev,netdev tux
Where:
-d - default home directory (appending -m tells useradd to create the
directory)
-s - default shell for the user
-c - comment
-g - main group for the user
-G - additional groups - if the user is a member of them, he has
access to particular subsystems/features
Of course you should set password for tux: passwd tux
You can find a lot of information in: man useradd, man passwd
Happy hacking!