Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
Unable to logging into my own account in oracle linux 6 server

Hi
I am trying to logging into my own account using "ssh [email protected]" and the result I have is
"Permission denied, please try again." But if I am root and do "su - user" I am able to login.
Please can you give me an hint in waht could be wrong?
Best Answer
-
Hi.
"su - user" - do not ask user password, but "ssh [email protected]" - should do it.
Check that you set user password.
Run command as root: "grep user /etc/shadow"
In case line start "user:*: " or "user:!:" - it's mean that password is not set.
Use command: "passwd user" for set password.
In case line start "user:!!" - it's mean that user is locked.
Use command: "passwd -u user" for unlock user.
Regards,
Nik
Answers
-
Hi.
"su - user" - do not ask user password, but "ssh [email protected]" - should do it.
Check that you set user password.
Run command as root: "grep user /etc/shadow"
In case line start "user:*: " or "user:!:" - it's mean that password is not set.
Use command: "passwd user" for set password.
In case line start "user:!!" - it's mean that user is locked.
Use command: "passwd -u user" for unlock user.
Regards,
Nik
-
Thank you very much, it worked.