On Sun, Oct 06, 2024 at 15:50:59 +0200, Roger Price wrote:
> On Sun, 6 Oct 2024, Greg Wooledge wrote:
> > Run the "id" command with no arguments to see your current group
> > memberships. You'll see that "sudo" is not one of them.
> 
> I found that if I then tried "id rprice" I could see "sudo".

Yes.  "id" with no arguments shows the privileges of the currently running
process (whatever id inherits its privileges from, in this case a shell).
Running id with a username argument shows the privileges a theoretical
login session opened for that user would have.

Both are useful, but you have to understand that they both exist and
have very different behaviors.

Reply via email to