Forum Stats

  • 3,826,799 Users
  • 2,260,708 Discussions
  • 7,897,074 Comments

Discussions

Unable to logging into my own account in oracle linux 6 server

Nandinho
Nandinho Member Posts: 161 Blue Ribbon

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

  • Nik
    Nik Blocked Member Posts: 2,879 Bronze Crown
    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

    Nandinho

Answers