admin/sudo confusion
Catalin Soare
lolinux.soare at gmail.com
Sun May 12 18:52:37 UTC 2013
On May 12, 2013 1:31 AM, "Sarunas Burdulis" <sarunas at math.dartmouth.edu>
wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/11/2013 02:34 PM, rikona wrote:
> > Just installed 12.04 on a newly built box. Mostly working fine. Has 2
> > users. The first/setup user is an admin, the second, user B, was set
> > up as not an admin. LOTS if files for B were copied from the old 10.04
> > box, and B will be the main user. But, in the meantime, it would be
> > nice if B could use sudo to help with the setup of the box. So, I
> > installed users and groups, and set B to be in the sudo group [it is
> > listed that way too] - doesn't work though. Then set B to be an
> > administrator [temporarily], and B is listed as an admin - sudo still
> > NG.
> >
> > To add to the confusion, 'user accounts' lists B as 'standard' even
> > though 'users and groups' has B as an admin. What's going on?
> >
> > How can I get B to have sudo and/or be a temporary admin?
>
> I would suggest comparing group memberships in the output of
>
> id userA
>
> and
>
> id userB
>
> commands. And also looking at /etc/sudoers. If needed, it can be edited
> with `visudo`.
>
> Of course, after group membership has been changed, the user has to log
> out and login again, for the change to take effect.
>
> Sarunas
> math.dartmouth.edu/~sarunas
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
>
> iEYEARECAAYFAlGOxnMACgkQejaFVltl6E8ekwCggUneITcDX+FUMFtktVZBJJHp
> KZ0AnjM71ffixTorMAQOp2JzJmbQwFKS
> =4HdQ
> -----END PGP SIGNATURE-----
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Hi Rikona,
As Sarunas mentioned, you will have to edit the sudoers file via visudo;
granted, you will have to be root first to be able to do that.
I must confess that, as you mentioned, at first, I also had the same
principle: add a user to a group and it will share the group's
privileges/restrictions. But that only happens in the Windows world. Since
I am confessing, I have to admit I have no idea how group membership takes
effect in the *nix world.
Hope this at least gets you need.
Good luck!
--
Sent from my Brick (TM)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130512/b880c5e2/attachment.html>
More information about the ubuntu-users
mailing list