Thursday, December 27, 2007

user dan group dalam linux

emmm simple tapi sering lupa...

nak tambah user dengan group sendiri

adduser mamat

nak tambah user ke group admin

useradd -G admin mamat

nak buat group editor dan tambah mamat ke group editor

groupadd editor
usermod -g editor mamat ( akan tukar mamat dari mana-mana group ke group editor )
usermod -a -G editor mamat ( akan tambah mamat dalam group editor disamping kekalkan group yang ada sedia ada)
useradd -G editor mamat ( kalau mamat masih belum ada )

untuk lihat status user/group

id mamat

No comments:

 Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...