Wednesday, February 20, 2008

add a nice user

Add a nice unprivileged user to specific group..

First add a group called lfs

# groupadd lfs
then add a user with valid shell,home,member of group lfs called lfs
# useradd -s /bin/bash -g lfs -m -k /dev/null lfs
-m creates home directory..
-k give alternate /skel dir..if you specify it to /dev/null that means you won't use any preconfig value of user lfs
-g add user to group lfs

that's all..

No comments:

Registred Linux User

Registred Linux User

HitCounter