Re: sudo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Nov 08, 2017 at 02:56:36PM -0600, Josh W. wrote:
> Hello, I am trying to figure out how to add a user to sudo... Not sure of
> the process.. Could somebody point me in the right direction. Thanks!
In Debian, typically there's a group called 'sudo': user belonging to
this group have sudo capability (if the group is enabled for that in
the /etc/sudoers file). So:
- enable the 'sudo' group in the /etc/sudoers file, by editing
as root (there's a nice command visudo which calls your favourite
editor on this file and helps you making sure that you don't
break anything -- see man visudo for details). Make sure you
have a line like
%sudo ALL=(ALL:ALL) ALL
in that file (possibly you just have to remove a comment sign
'#' at its beginning)
- add your user to the sudo group:
adduser <your user here> sudo
Note that you have to login for that to take effect.
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAloDdXYACgkQBcgs9XrR2kaFHQCeJ7Iy8c8N5H11DSot5/9l3oLv
IogAni/KX5rU+8nuES4HN/iIcD7CqKcy
=0Oku
-----END PGP SIGNATURE-----
Reply to:
- References:
- sudo
- From: "Josh W." <joshw8104@gmail.com>