From: pk <peterk2@coolmail.se>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] KDE and permissions problems
Date: Sat, 17 Mar 2012 14:11:04 +0100 [thread overview]
Message-ID: <4F648D68.4040008@coolmail.se> (raw)
In-Reply-To: <4F64651E.6050803@gmail.com>
On 2012-03-17 11:19, Dale wrote:
> The program 'su' could not be found.
> Ensure your PATH is set correctly.
What does 'echo $PATH' give you? /bin should be in your path (that's
where 'su' is located, or should be)... My $PATH looks like this:
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
I don't know if this is the case but maybe, you're using some of the
new-fangled screw up'ed tools like, dracut, systemd etc. that wants to
move everything into /usr (on the same partition as /) and as such
changes your $PATH accordingly (without checking perhaps - which would
be consistent with the arrogance of the coders).
> -rws--x--x 1 root root 36680 Mar 16 23:36 su
> -rws--x--x 1 root root 52416 Mar 16 23:19 umount
> -rws--x--x 1 root root 42592 Mar 16 23:36 passwd
The 's' part is for the SetUID bit which gives the root-owned command in
question root privileges, in order to switch user... See:
http://blog.superuser.com/2011/04/22/linux-permissions-demystified/
(esp. the "Getting sticky!" chapter).
That's not all though...:
> it, then what? I am in the wheel group. I'm also in the tty group.
Check your /etc/pam.d/su file... it should contain (at least) this line:
auth required pam_wheel.so use_uid
That's what gives you permission to use 'su' as a member of the 'wheel'
group ('su' is controlled by 'pam').
Best regards
Peter K
next prev parent reply other threads:[~2012-03-17 13:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 10:19 [gentoo-user] KDE and permissions problems Dale
2012-03-17 13:11 ` pk [this message]
2012-03-18 2:47 ` Dale
2012-03-18 8:24 ` Dale
2012-03-18 3:11 ` Bruce Hill, Jr.
2012-03-18 10:22 ` pk
2012-03-18 12:56 ` Bruce Hill, Jr.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F648D68.4040008@coolmail.se \
--to=peterk2@coolmail.se \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox