1 |
On 2012-03-17 11:19, Dale wrote: |
2 |
|
3 |
> The program 'su' could not be found. |
4 |
> Ensure your PATH is set correctly. |
5 |
|
6 |
What does 'echo $PATH' give you? /bin should be in your path (that's |
7 |
where 'su' is located, or should be)... My $PATH looks like this: |
8 |
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin |
9 |
|
10 |
I don't know if this is the case but maybe, you're using some of the |
11 |
new-fangled screw up'ed tools like, dracut, systemd etc. that wants to |
12 |
move everything into /usr (on the same partition as /) and as such |
13 |
changes your $PATH accordingly (without checking perhaps - which would |
14 |
be consistent with the arrogance of the coders). |
15 |
|
16 |
> -rws--x--x 1 root root 36680 Mar 16 23:36 su |
17 |
> -rws--x--x 1 root root 52416 Mar 16 23:19 umount |
18 |
> -rws--x--x 1 root root 42592 Mar 16 23:36 passwd |
19 |
|
20 |
The 's' part is for the SetUID bit which gives the root-owned command in |
21 |
question root privileges, in order to switch user... See: |
22 |
http://blog.superuser.com/2011/04/22/linux-permissions-demystified/ |
23 |
|
24 |
(esp. the "Getting sticky!" chapter). |
25 |
|
26 |
That's not all though...: |
27 |
|
28 |
> it, then what? I am in the wheel group. I'm also in the tty group. |
29 |
|
30 |
Check your /etc/pam.d/su file... it should contain (at least) this line: |
31 |
auth required pam_wheel.so use_uid |
32 |
|
33 |
That's what gives you permission to use 'su' as a member of the 'wheel' |
34 |
group ('su' is controlled by 'pam'). |
35 |
|
36 |
Best regards |
37 |
|
38 |
Peter K |