Adding a User, adding to sudoers, enabling ssh access
I don't do this very often and always forget something. So:
(on Fedora Core 3)
- add user:
/usr/sbin/useradd - set password:
passwd - add to sudoers:
/usr/sbin/visudo - enable ssh access: modify
AllowUsersin/etc/ssh/sshd_config(or disable it) - restart ssh:
sudo /etc/init.d/sshd restart
On Debian
- add user, password, etc:
/usr/sbin/adduser - add new user to admin group:
usermod -a -G admin tony... if the sudoers file allows sudo for the admin group ... - enable ssh access: seems to be enabled already on the box I was working


