Sunday, March 15, 2020

Adding existing user to a group in Ubuntu

Example below adds user timus to the group www-authors

$: sudo usermod -a -G www-authors timus

To add user timus to sudoers group, do:

$: sudo usermod -a -G sudo timus

Note:

  • That for the sudo to take effect you have to logout and log back in.
  • In Debian Buster (10.3), need to reboot for it to take effect


Tested on:
- Lubuntu (13.04)
- Ubuntu (12.04 - 13.04)
- Debian Buster (10.3)

References:
http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer-using-the-command-line


No comments:

Using Emacs as editor for SBCL on Ubuntu 26.04

Using Emacs as editor for SBCL on Ubuntu 26.04 Version info: OS: Ubuntu 26.04 Emacs: 30.2 SBCL: 2.6.0 Install Emacs and SBCL...