HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   adduser set passwd for ssh (http://www.howtoforge.com/forums/showthread.php?t=11634)

FastS 25th March 2007 00:27

adduser set passwd for ssh
 
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

falko 26th March 2007 16:28

Quote:

Originally Posted by FastS
How can i assign a passwd to the tomcat user and login through ssh?

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.


All times are GMT +2. The time now is 02:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.