Thursday, January 3, 2013

How to create user & manage usergroups on Archlinux

After you install Archlinux, there's only root user by default, to run any desktop like KDE, LXDE, and another desktop environtment, you need a user. To create user. type it on terminal.


Add/Delete User:
Create User with userhome
#useradd -m yourname

Edit User Information:
#chfn yourname
Insert your user information

Add password to user
#passwd yourname

Delete Username:
#userdel yourname


How to create user & manage usergroups on Archlinux


Managing Group:

See available groups:
#cat /etc/group

Add/delete group to user
add:
#gpasswd -a yourusername [groups]  
delete:
#gpasswd -d yourusername [groups]
ex:
#gpasswd -a yourusername storage

To create/delete group:
create:
#groupadd [group]
delete
#groupdel [group]
ex
#groupadd android

More groups:
https://wiki.archlinux.org/index.php/Users_and_Groups#User_groups

Enjoy.
Share on Facebook
Share on Twitter
Share on Google+