linuxユーザーの追加

669 ワード

ユーザーの追加:
adduser testusername

初期パスワードの設定:
passwd testusername

#         
New password: (enter your password)
BAD PASSWORD: The password contains the user name in some form
Retype new password: (retype password)

新しいユーザーにsudo使用権限を追加するには、次の手順に従います.
#       
whereis sudoers
#       
ls -l /etc/sudoers
#      (    )
chmod -v u+w /etc/sudoers
#       ,    
vim /etc/sudoers

## Allow root to run any commands anywher  
root    ALL=(ALL)       ALL  
testuser  ALL=(ALL)       ALL  #        

#      ,       
chmod -v u-w /etc/sudoers

ユーザーの削除:
userdel testuser