Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't su, can't login, bad group ID
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sutekh
n00b
n00b


Joined: 11 Feb 2003
Posts: 6
Location: Melbourne, Australia

PostPosted: Sat May 10, 2003 11:36 pm    Post subject: can't su, can't login, bad group ID Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun May 11, 2003 12:06 am    Post subject: Reply with quote

Have you checked the FAQs and/or the sticky thread in Installing Gentoo?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun May 11, 2003 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
sutekh
n00b
n00b


Joined: 11 Feb 2003
Posts: 6
Location: Melbourne, Australia

PostPosted: Sun May 11, 2003 1:20 am    Post subject: Reply with quote

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
View user's profile Send private message
sutekh
n00b
n00b


Joined: 11 Feb 2003
Posts: 6
Location: Melbourne, Australia

PostPosted: Sun May 11, 2003 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum