2011年11月20日日曜日

sudoer and ssh on ubuntu and prgmr.com


1. sudoer
(1) Add admin by executing the following command
addgroup admin

(2) Add user to admin group by executing the following command
add username admin

(3) Add the following line to /etc/sudoers for giving sudo rights to admin group
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

2. ssh
(1) On ubuntu, do ssh-keygen -t dsa and then remove generated files. This is just for creating .ssh directory under your home.
(2) Copy my public key to remote server:~/.ssh/authorized_keys
(3) Do chmod .ssh/authorized_keys.

0 件のコメント: