I have come across some of the useradd options. Check out !!!
To create the user ‘nobs’ with home directory
# useradd -d /home/nobs nobs
To create a user with root privilage
# useradd -u 0 -o nobs
-u : UID 0 -> root
-o : Duplicate UID
# id nobs
uid=0(root) gid=502(nobs) groups=0(root)
The default home directory would be /home ; You can change it by editing the HOME directive on the file : “/etc/default/useradd”
HOME=/nobs
Regards
Nobs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment