Dap_An_-_User_and_Group

Dap_An_-_User_and_Group - Bài 3: Qu n tr Users &...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Bài 3: Qu n tr Users & Groups 1. T o user sv useradd sv 2. t password cho user sv là 123456 passwd sv 3. Cho bi t user sv thu c group nào ( c trong file /etc/group) groups sv 4. Cho bi t home directory c a user sv ( c trong file /etc/passwd) cat /etc/passwd | grep ^sv 5. T o group hocvien groupadd hocvien 6. S a thông tin cho user sv thu c group hocvien (group chính) và group root (group ph ) groupadd hocvien usermod –g hocvien –G root sv 7. S a ghi chú cho user sv là “Nguyen Van A” usermod –c “Nguyen Van A” sv 8. Log in b ng user sv (s d ng l nh logout n u n u mode GUI thoát kh i user hi n t i) command line, dùng menu logout 9. S d ng quy n root, lock account sv usermod –L sv 10. Log in b ng user sv, cho bi t k t qu 11. Unlock account sv, login th b ng user này usermod –U sv 12. Yêu c u user sv ph i thay chage –M 7 sv i password trong 7 ngày t i 13. Set th i gian h t h n cho account sv là ngày 30/09/2008 chage –E 2008-09-30 sv 14. S a l i gi h th ng: date –s “1 Oct 2008”, login b ng user sv. Cho bi t k t qu ...
View Full Document

Ask a homework question - tutors are online