1820043 Members
3393 Online
109608 Solutions
New Discussion юеВ

not shutting down

 
SOLVED
Go to solution
Ravi_8
Honored Contributor

not shutting down

Hi,

Here is a strange message that i am seeing, when i issued shutdown command.
# id
uid=0() gid=3(sys) groups=0(root)
# shutdown -h now
getpwuid: Error 0
Unable to get username.
User not allowed to shut down this system -- exiting shutdown.

does anybody knows about this
never give up
7 REPLIES 7
John Palmer
Honored Contributor

Re: not shutting down

I'd check the root entry in your password file.

It appears that there's no valid entry for UID 0 - note the 'uid=0()'. It should say 'uid=0(root)'.

Regards,
John
Pete Randall
Outstanding Contributor

Re: not shutting down

Out of curiosity, what does your /etc/shutdown.allow file contain?

Pete

Pete
T G Manikandan
Honored Contributor
Solution

Re: not shutting down

James R. Ferguson
Acclaimed Contributor

Re: not shutting down

Hi:

If '/etc/shutdown.allow' exists and isn't empty, you must have 'root' declared in it for 'root' to be able to shutdown the system.

Regards!

...JRF...
U.SivaKumar_2
Honored Contributor

Re: not shutting down

Hi,

Check /etc/passwd /etc/group

#pwck

#grpck

regards,

U.SivaKumar
Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: not shutting down

If you are using 10.20

then you need to apply this patch

http://www1.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_26962
to overcome this

Thanks
Ravi_8
Honored Contributor

Re: not shutting down

Hi all

Thanx for all your responses.

Mani You are right.

Somebody from TX Series project, for their need they made a entry in passwd file :
rootl:nxdt.hT3Z7nqQ:0:3::/:/sbin/sh

after deleting this rootl user, i could do
never give up