Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #188776 > unrolled thread
| Started by | "Josh W." <joshw8104@gmail.com> |
|---|---|
| First post | 2017-11-08 22:20 +0100 |
| Last post | 2017-11-09 00:10 +0100 |
| Articles | 7 — 7 participants |
Back to article view | Back to linux.debian.user
sudo "Josh W." <joshw8104@gmail.com> - 2017-11-08 22:20 +0100
Re: sudo Will Mengarini <seldon@eskimo.com> - 2017-11-08 22:30 +0100
Re: sudo Greg Wooledge <wooledg@eeg.ccf.org> - 2017-11-08 22:30 +0100
Re: sudo Tom Furie <tom@furie.org.uk> - 2017-11-08 22:30 +0100
Re: sudo <tomas@tuxteam.de> - 2017-11-08 22:30 +0100
Re: sudo Joe <joe@jretrading.com> - 2017-11-08 22:40 +0100
Re: sudo David Christensen <dpchrist@holgerdanske.com> - 2017-11-09 00:10 +0100
| From | "Josh W." <joshw8104@gmail.com> |
|---|---|
| Date | 2017-11-08 22:20 +0100 |
| Subject | sudo |
| Message-ID | <uJFVn-456-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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! Joshua <joshw8104@gmail.com>
[toc] | [next] | [standalone]
| From | Will Mengarini <seldon@eskimo.com> |
|---|---|
| Date | 2017-11-08 22:30 +0100 |
| Message-ID | <uJG53-48j-3@gated-at.bofh.it> |
| In reply to | #188776 |
* Josh W. <joshw8104@gmail.com> [17-11/08=We 14:56 -0600]: > 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! sudo adduser beeblebrox sudo # man adduser
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2017-11-08 22:30 +0100 |
| Message-ID | <uJG53-48j-1@gated-at.bofh.it> |
| In reply to | #188776 |
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! Add the user to the "sudo" group. Either by editing /etc/group directly, or by using "adduser username sudo".
[toc] | [prev] | [next] | [standalone]
| From | Tom Furie <tom@furie.org.uk> |
|---|---|
| Date | 2017-11-08 22:30 +0100 |
| Message-ID | <uJG54-48j-9@gated-at.bofh.it> |
| In reply to | #188776 |
[Multipart message — attachments visible in raw view] — view raw
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! If you just want to allow a user to use sudo in the default Debian configuration, it's as simple as adding the user to the sudo group: # adduser <username> sudo where <username> is the user you want to add. The user will be in the group the next time they log in. Cheers, Tom -- I have always noticed that whenever a radical takes to Imperialism, he catches it in a very acute form. -- Winston Churchill, 1903
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2017-11-08 22:30 +0100 |
| Message-ID | <uJG54-48j-11@gated-at.bofh.it> |
| In reply to | #188776 |
-----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-----
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2017-11-08 22:40 +0100 |
| Message-ID | <uJGeJ-4dq-1@gated-at.bofh.it> |
| In reply to | #188776 |
On Wed, 8 Nov 2017 14:56:36 -0600 "Josh W." <joshw8104@gmail.com> 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! Try Google with sudo tutorial debian In Debian, you can do this the quick and (very) dirty way, by effectively making yourself root after the entry of your user password: https://wiki.debian.org/sudo This is fine for a one-user home computer that's not likely to attract the attention of serious human hackers. Or you can do it the 'proper' way, by defining what commands you want to run, and creating /etc/sudoers (better, new files in /etc/sudoers.d) entries to suit using the visudo program as root. This is harder, and requires you to know in advance what you want to do as root, but the correct way with multiple users with varying duties, and/or a business environment. -- Joe
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2017-11-09 00:10 +0100 |
| Message-ID | <uJHDP-5iu-5@gated-at.bofh.it> |
| In reply to | #188776 |
On 11/08/17 12:56, 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! https://www.michaelwlucas.com/tools/sudo David
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web