Thomas De Reyck schreef:
Good morning/noon/evening my fellow LFS'rs,
I was hoping that someone might be able to help me out wih the
following problem:
I was working on my second LFS installation (6.1) (the first one (5.x)
went flawlessly) and have chosen to use the user package system. So,
to install packages, i frequently have to switch users, by using su.
Some time ago, I installed the package "shadow", and from this moment
on, my su binary refuses to work with me any longer. I have followed
the guidelines in the LFS book and the user-package-system very
precise. Whenever i try to use su (even as root), I get the error
"initgroups: Operation not permitted". I think this is very strange,
since root should normally be permitted to perform all actions, as far
as I know of (except maybe SElinux, which i don't use).
I did some research and found that initgroups is a function that reads
from the groups file. Maybe this function didn't compile as it should?
Or might this just be a permissions problem?
I cannot continue my installation like this, since i have to be able
to switch users.
You have my thanks in advance
Thomas De Reyck
I was already able to solve the problem myself: the su binary was owned
by package user "shadow" and the setuid bit was set. User shadow was not
permitted to view the password file. I made root the owner of the su
binary, which solved my problem. (I guess i must have accidentally
ignored this..). One weird thing though: the package user system's
wrapper script normally don't allow a setuid bit to be set...how this
happened will probably remain a riddle.
Thanks anyway, and forgive my for my ignorance ;-)
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page