Command Linux..

Wednesday, September 24, 2008
*Ubuntu*

(adduser)
root@servername:~# adduser (username)
e.g :
root@servername:~# adduser shah

(addgroup)
root@servername:~# addgroup (groupname)
e.g :
root@sername:~# addgroup kitchen

(deluser)
root@servername:~# deluser (username)
root@servername:~# rm -r /home/username
root@servername:~# deluser --remove-home (username)
e.g :
root@servername:~# deluser shah
root@servername:~# rm -r /home/shah
root@servername:~# deluser --remove-home shah

(delgroup)
root@servername:~# delgroup (groupname)
e.g :
root@servername:~# delgroup (kitchen)

(list group)
root@servername:~# cat /etc/group

(command list delete user)
root@servername:~# man deluser

(rename user)
root@servername:~# usermod -l (new user) (old user)
e.g :
root@servername:~# usermod izal shah

(add group dalam user)
root@servername:~# usermod -G "group name" (username)
e.g :
root@servername:~ # usermod -G "ubuntu,mandriva" shah

0 comments: