HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Please wait...checking for disk quotas No shell

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

Please wait...checking for disk quotas No shell

Hi All,

I have recently copied /etc/passwd and /etc/group from server A to server B..

To do this I did following steps:

a)First copied /etc/passwd and /etc/group from server A to server B.

b)Ran the command "cp passwd /etc/passwd" and "cp group /etc/group".

After this I am not able to log in to server B through console and SSH (putty).

I am getting follwoing error while logging through console.

#############################################

GenericSysName [HP Release B.11.31] (see /etc/issue)
Console Login: root
Password:
Last successful login: Wed Jan 12 11:48:34 CST 2011 /dev/console
Last authentication failure: Wed Jan 12 11:48:22 CST 2011 /dev/console
Please wait...checking for disk quotas
No shell

GenericSysName [HP Release B.11.31] (see /etc/issue)
Console Login:

############################################

But I have backed up /etc/passwd and /etc/group from server B before modifying that.

Now I am able to log in to single user mode.

My questions:

1)What is the issue?

2)How can restore my backed up file from single user mode, I am not able to vi or cp in single user mode?

3)How to solve the issue?


3 REPLIES
Rita C Workman
Honored Contributor
Solution

Re: Please wait...checking for disk quotas No shell

1) Just guessing:
If you are able to login to server B, go and check the /etc/passwd and /etc/group file. I'm thinking they may have gotten corrupted or overwritten by the "cp passwd /etc/passwd" command. Possibly you can copy from the backup copies you made if the running versions appear wrong.
Make sure they are 444 root:sys.

2) When you get into single user you just need to mount /usr manually and then you can run vi and cp.

Rgrds,
Rita



Manix
Honored Contributor

Re: Please wait...checking for disk quotas No shell

i believe we may get such error if login shell is set to "/bin/false " which might not be this
case ..As Rita said its good to mount the required file systems manually & do the restore.

In si mode only /stand & / would be mounted by default.
HP-UX been always lovable - Mani Kalra
senthil_kumar_2
Regular Advisor

Re: Please wait...checking for disk quotas No shell

Hi All,

I have resolved the issue using following steps:

1)Logged in to single user mode.

HPUX> boot -is

2)# fsck

3)# mount -a

4)Then copied back my original passwd and group file.