adduser set passwd for ssh

Discussion in 'General' started by FastS, Mar 25, 2007.

  1. FastS

    FastS New Member

    Hello everyone!

    I am not sure if this question is appropiate in the ISPConfig. Maybe my problem is not specific to ISPConfig. I have installed ISPConfig version 2.2.7 on an Ubuntu server. If i add users though the ISPConfig interface they are able to login into SSH. However i want to add some specific users in Linux directly. I have done this:

    # add a tomcat user
    > adduser -m tomcat

    # unlock the tomcat account
    > passwd -u tomcat

    # query status
    > passwd -S tomcat
    tomcat NP 03/21/2007 0 99999 7 -1

    # notice the NP = no password
    > passwd tomcat
    Enter new password:
    Re-type new password:
    passwd: password updated successfully

    # however the status stays the same
    > passwd -S tomcat
    tomcat NP 03/21/2007 0 99999 7 -1

    # add ssh login is not possible
    > ssh tomcat@localhost
    tomcat@localhost's password:
    Permission denied, please try again.
    tomcat@localhost's password:

    How can i assign a passwd to the tomcat user and login through ssh?

    Best regards,
    FastS
     
  2. falko

    falko Super Moderator

    The command is
    Code:
    passwd tomcat
    But you must make sure that tomcat has a valid shell like /bin/bash in /etc/passwd. Also make sure you use a uid that doesn't conflict with the uids ISPConfig uses for its users. If possible, use a uid below 10000.
     

Share This Page