elementaryOS adduser

 ユーザー追加
root@moco:~# adduser caco
Adding user `caco' ...
Adding new group `caco' (1001) ...
Adding new user `caco' (1001) with group `caco' ...
Creating home directory `/home/caco' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for caco
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y


lightdm=デスクトップマネジャーグループに登録
root@moco:~# gpasswd -a caco lightdm
Adding user caco to group lightdm


管理者権限を与える
root@moco:~# usermod -G adm caco


確認
root@moco:~# id caco
uid=1001(caco) gid=1001(caco) groups=1001(caco),4(adm)


rootとしてのすべてのコマンドを実行する権限を与える
root@moco:~# vi /etc/sudoers

# User privilege specification
root ALL=(ALL:ALL) ALL
moco ALL=(ALL:ALL) ALL
caco ALL=(ALL:ALL) ALL



-----------------------------------

投票数:1 平均点:10.00

 
Back to Top