1833437 Members
3271 Online
110052 Solutions
New Discussion

Unable to set uid/gid

 
SOLVED
Go to solution
Ravi_8
Honored Contributor

Unable to set uid/gid

Hi,

In one of my machine running 11i, when a user tried to login after the passwd entry it throws the error "Unable to set uid/gid" and closes the connection. whereas for root it work fine. what could be the problem?
( system is not trusted)
never give up
6 REPLIES 6
Mark Grant
Honored Contributor
Solution

Re: Unable to set uid/gid

Is it possible that you have "sudo" somewhere in the users login scripts? If so, I would imagine this error comes from not being able to change the ownership od the tempory sudoers file. At least that's what it looks like from the source of visudo.
Never preceed any demonstration with anything more predictive than "watch this"
Pete Randall
Outstanding Contributor

Re: Unable to set uid/gid

Ravi,

Corrupted password file??? Try running pwchk/grpchk.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Unable to set uid/gid

Ravi,

Sorry, make that pwck/grpck!!

Pete

Pete
Sunil Sharma_1
Honored Contributor

Re: Unable to set uid/gid

Check the permission of passwd file not /etc/passwd but on /usr/bin/passwd it should have permission like this

-r-sr-xr-x 5 root bin 45056 Nov 14 2000 passwd

in your passwd file set uid may not be there.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sanjay Kumar Suri
Honored Contributor

Re: Unable to set uid/gid

If you are using NIS, pwck and grpck check only the local password and group files.

The NIS database for password and group files is not checked.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Ravi_8
Honored Contributor

Re: Unable to set uid/gid

Thanx Mark/Pete

I have AFS in the machine, since AFS was down it's giving me the error.

thanx for the help
never give up