Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] KDE and permissions problems
Date: Sun, 18 Mar 2012 02:49:25
Message-Id: 4F654CD6.5040309@gmail.com
In Reply to: Re: [gentoo-user] KDE and permissions problems by pk
1 pk wrote:
2 > On 2012-03-17 11:19, Dale wrote:
3 >
4 >> The program 'su' could not be found.
5 >> Ensure your PATH is set correctly.
6 >
7 > What does 'echo $PATH' give you? /bin should be in your path (that's
8 > where 'su' is located, or should be)... My $PATH looks like this:
9 > /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
10
11
12 I went to a console, the only place I can log in, and I got nothing for
13 my paths. It is empty.
14
15
16 >
17 > I don't know if this is the case but maybe, you're using some of the
18 > new-fangled screw up'ed tools like, dracut, systemd etc. that wants to
19 > move everything into /usr (on the same partition as /) and as such
20 > changes your $PATH accordingly (without checking perhaps - which would
21 > be consistent with the arrogance of the coders).
22 >
23 >> -rws--x--x 1 root root 36680 Mar 16 23:36 su
24 >> -rws--x--x 1 root root 52416 Mar 16 23:19 umount
25 >> -rws--x--x 1 root root 42592 Mar 16 23:36 passwd
26 >
27 > The 's' part is for the SetUID bit which gives the root-owned command in
28 > question root privileges, in order to switch user... See:
29 > http://blog.superuser.com/2011/04/22/linux-permissions-demystified/
30
31 I am using the dracut thingy to boot with. I hope that thingy has not
32 screwed up my system. :-@
33
34
35 >
36 > (esp. the "Getting sticky!" chapter).
37 >
38 > That's not all though...:
39 >
40 >> it, then what? I am in the wheel group. I'm also in the tty group.
41 >
42 > Check your /etc/pam.d/su file... it should contain (at least) this line:
43 > auth required pam_wheel.so use_uid
44 >
45 > That's what gives you permission to use 'su' as a member of the 'wheel'
46 > group ('su' is controlled by 'pam').
47 >
48 > Best regards
49 >
50 > Peter K
51 >
52 >
53
54 I do have that line in there. There are a few others too so I guess it
55 is normal.
56
57 I'm going to check out that linky.
58
59 Dale
60
61 :-) :-)
62
63
64 --
65 I am only responsible for what I said ... Not for what you understood or
66 how you interpreted my words!
67
68 Miss the compile output? Hint:
69 EMERGE_DEFAULT_OPTS="--quiet-build=n"

Replies

Subject Author
Re: [gentoo-user] KDE and permissions problems Dale <rdalek1967@×××××.com>