Gentoo Archives: gentoo-user

From: Mark Shields <laebshade@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] su doesn't work for me.
Date: Mon, 11 Apr 2011 00:48:37
Message-Id: BANLkTi=S=tTKSTjhd95SOdFwaZuZcuXC6w@mail.gmail.com
In Reply to: Re: [gentoo-user] su doesn't work for me. by Alan McKinnon
1 On Sun, Apr 10, 2011 at 5:48 PM, Alan McKinnon <alan.mckinnon@×××××.com>wrote:
2
3 > Apparently, though unproven, at 00:32 on Monday 11 April 2011, Mark Shields
4 > did opine thusly:
5 >
6 > > On Sun, Apr 10, 2011 at 10:08 AM, Alan McKinnon
7 > <alan.mckinnon@×××××.com>wrote:
8 > > > Apparently, though unproven, at 16:28 on Sunday 10 April 2011, Dale did
9 > > > opine
10 > > >
11 > > > thusly:
12 > > > > > That was it! I've now got su-ability from that normal user.
13 > > > > >
14 > > > > > Funny, though, on my (very) old Debian system I don't seem to have
15 > a
16 > > > > > wheel.
17 > > > > >
18 > > > > > Thanks.
19 > > > > >
20 > > > > >> Best regards,
21 > > > > >> Yann
22 > > > >
23 > > > > I think that is a Gentoo thing. It does add some security if you
24 > don't
25 > > > > want a user, like maybe some little kid, getting root access for any
26 > > > > reason.
27 > > >
28 > > > No, it's pretty standard across Unix.
29 > > >
30 > > > The BSD's for example have had it since forever - members of the wheel
31 > > > group
32 > > > being allowed to sudo anything only came along much later.
33 > > >
34 > > > Leaving it *out* is a Linux-distro thing, probably from the usual usage
35 > > > case
36 > > > for Linux for many years - a server on the web that actually only had
37 > one
38 > > > user
39 > > > even though it was capable of being fully multi-user. The concept of
40 > > > wheel for
41 > > > su is pretty redundant in that case.
42 > > >
43 > > >
44 > > > --
45 > > > alan dot mckinnon at gmail dot com
46 > >
47 > > Wheel has nothing to do with su; it has everything to do with sudo, but
48 > > only if /etc/sudoers is edited to allow the Wheel group sudo access. Su
49 > > is for changing to a different user, or running a command as another
50 > user;
51 > > doing either requires the password of that user; sudo, on the other hand,
52 > > only requires your password, if you're in the wheel group and the wheel
53 > > group is given full sudo access, and the sudo access for wheel requires
54 > > your password.
55 > >
56 > > Some examples, assuming your user (the one you're logged in as) is in
57 > wheel
58 > > and requires a password for sudo access (see: visudo):
59 > >
60 > > sudo su <--- escalates you to root user with your own password. This is
61 > > running "su" with "sudo".
62 > > su user <--- switches to "user" with their password required to be
63 > entered
64 > > sudo su user < -- switch to "user" with your password required to be
65 > > entered sudo <command> <-- runs command as root
66 > > sudo -u user <command> <--- runs command as "user"
67 > > sudo su - user <--- escalates you to "user" and cd's to their home
68 > > directory
69 > >
70 > > Please read the man pages for sudo and su for more info.
71 >
72 > Mark,
73 >
74 > You know better than that. Re-read my post, I said that *Unix*, most
75 > especially the BSDs, have had a concept of wheel for, well, since almost
76 > when
77 > Unix started. sudo came much later and for sudo, wheel is naturally a very
78 > useful pre-existing thing to use.
79 >
80 > If Linux distros, maintainers or the GNU folk chose to not implement wheel
81 > membership as a prerequisite for su, then that's fine. They can do what
82 > they
83 > want with their stuff but it doesn't change the fact that other operating
84 > systems can, and do, do it differently.
85 >
86 > I have read man su and man sudo. Many times. I see that the ones I have are
87 > very Linux-centric.
88 >
89 > Google "wheel su" for more info, keeping in mind that Linux != Unix
90 >
91 >
92 >
93 >
94 > --
95 > alan dot mckinnon at gmail dot com
96 >
97 >
98 That response wasn't really meant for you, your reply just happened to be
99 the one I clicked reply on.

Replies

Subject Author
Re: [gentoo-user] su doesn't work for me. Peter Humphrey <peter@××××××××××××××.org>