Confused Development

I develop software and I often get confused in the process. I usually find the answers after a while, but a month later I can't remember them. So from now on, I will write them down here.

Monday, May 12, 2008

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 AllowUsers in /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