3.3.1 新增與刪除使用者在 Linux 底下跟使用者帳號管理相關的指令有:useradd USERNAME 增加一名為USERNAME的帳號 userdel USERNAME 刪除USERNAME這個帳號 passwd [USERNAME] 更改USERNAME的密碼,若無參數,則改自己的密碼。 finger USERNAME[@HOSTNAME] 查詢使用者資料 chfn [USERNAME] 更動使用者USERNAME的資料,若無參數,則改自己的資料。 ======================================================== [root@h2 /root]# useradd cle [root@h2 /root]# passwd cle Changing password for user cle New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated suc cessfully [root@h2 /root]# "finger" 指令則可以查詢使用者的基本資料,例如: [root@h2 /root]# finger cle Login: cle Name: Directory: /home/cle Shell: /bin/bash Never logged in. No mail. No Plan. [root@h2 /root]# |
沒有留言:
張貼留言