VMware Cloud Community
chenrui39
Enthusiast
Enthusiast
Jump to solution

VCSA6.0 root shell can not log in,but The password is correct

VCSA6.0 root shell can not log in,but The password is correct。No error。

微信截图_20190424160332.png

Gui can log in

微信截图_20190424160858.png

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
chenrui39
Enthusiast
Enthusiast
Jump to solution

The problem has been solved

微信截图_20190429185353.png

Reason: "/bin/bash/" in /etc/passwd is more /

Correct: root:x:0:0:root:/root:/bin/bash

微信截图_20190429184500.png

Thank you very much for your help!

View solution in original post

0 Kudos
10 Replies
johncol
VMware Employee
VMware Employee
Jump to solution

Can you ssh in with the same credentials? If its 6.0 it has the usual symptoms of a full partition potentially VMware Knowledge Base

If so you may have to log in with the grub as per VMware Knowledge Base

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

Used the same credentials。

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

Used the same credentials。

0 Kudos
johncol
VMware Employee
VMware Employee
Jump to solution

so SSh works or not

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

I did not log in via ssh, And ssh is normal。 I can log in through other users, other users can log in through ssh。

0 Kudos
johncol
VMware Employee
VMware Employee
Jump to solution

ok, to clarify

ssh is normal, is this with root user or another user?

Other users can log in with ssh, are they using root or another user?

Can these other users log into the shell as well as ssh or is it just you experiencing the issue?

When you/ or (another user) run df -h when logged in what do you get ?

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

ssh is normal, is this with root user or another user?

another user

Other users can log in with ssh, are they using root or another user?

another user

Can these other users log into the shell as well as ssh or is it just you experiencing the issue?

root can't log in to the shell, other users can

When you/ or (another user) run df -h when logged in what do you get ?

微信截图_20190425113246.png

0 Kudos
johncol
VMware Employee
VMware Employee
Jump to solution

can you run the command below to check the root password

chage -l root

chage.png

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

QQ图片20190429173418.png

The root user's permissions are no problem, and the password has not expired.

I found that it is root to log in and it will automatically exit.

0 Kudos
chenrui39
Enthusiast
Enthusiast
Jump to solution

The problem has been solved

微信截图_20190429185353.png

Reason: "/bin/bash/" in /etc/passwd is more /

Correct: root:x:0:0:root:/root:/bin/bash

微信截图_20190429184500.png

Thank you very much for your help!

0 Kudos