View previous topic :: View next topic |
Author |
Message |
sutekh n00b
Joined: 11 Feb 2003 Posts: 6 Location: Melbourne, Australia
|
Posted: Sat May 10, 2003 11:36 pm Post subject: can't su, can't login, bad group ID |
|
|
Hey,
I did a search for this and came up blank hopefully someone can help
As of yesterday I was getting an error trying to su to another user
specifically
rich $ su
Password:
setgid: Operation not permitted
in the logs I get the following
May 11 09:07:00 [su] bad group ID `0' for user `root': Operation not permitted
May 11 09:07:16 [su] bad group ID `100' for user `rich': Illegal seek
May 11 09:08:10 [login] initgroups: Operation not permitted
May 11 09:15:00 [fcron] initgroups failed: root: Operation not permitted
so the first one was a su to root, second a su to user rich, third was a login from a console (which reported session setup problem, abort.) and the last was cron trying to do it's thing.
I did an emerge -u world about a week ago but there is no evidence of any trouble until yesterday when I sat down to do some work. (I was thinking maybe I had stuffed something up doing the last etc-update but it doesn't seem that way). I also read of problems related to pam that can cause these symptoms so i emerged pam just in case, no difference.
So I am wondering if this has happened to anyone else, I am also wondering what file login and su live in so I can check the source to see if that gives me an hints, and lastly I am wondering if I have posted this in the appropriate spot.
Any help greatly appreciated
Rich |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun May 11, 2003 12:06 am Post subject: |
|
|
Have you checked the FAQs and/or the sticky thread in Installing Gentoo? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sun May 11, 2003 12:31 am Post subject: |
|
|
can you post your /etc/passwd and /etc/group files. etc-update could well be responsible for this problem.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
sutekh n00b
Joined: 11 Feb 2003 Posts: 6 Location: Melbourne, Australia
|
Posted: Sun May 11, 2003 1:20 am Post subject: |
|
|
pjp wrote: | Have you checked the FAQs and/or the sticky thread in Installing Gentoo? |
yup I did. the prob seems to be with setgid32 rathe than an auth problem (changing groups in any way brings up that invalid seek)
I get this sort of thing from strace'ing su (as root to a user)
Code: |
setgid32(0x64) = -1 EPERM (Operation not permitted)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(3) = 0
write(2, "setgid: Operation not permitted\n", 32setgid: Operation not permitted
|
As i understand it EPERM is related to trying to affect a process for which you don't have appropriate priviledge, or to being the owner of a particular file. I was wondering whether this was related to GSecurity.
I haven't done is to try disabling GSecurity (currently set to medium) only becasue if I reboot I may not be able to log back in.
Rich |
|
Back to top |
|
|
sutekh n00b
Joined: 11 Feb 2003 Posts: 6 Location: Melbourne, Australia
|
Posted: Sun May 11, 2003 2:09 am Post subject: |
|
|
well the power just went out so that was one way to find out if a reboot would fix the problem. As it turns out it did, thanks for the help |
|
Back to top |
|
|
|