PDA

View Full Version : SSH Passwords..



Anzix
12-01-2003, 07:45 PM
Hello Everyone,

I was woundering where are the ssh passwords located for direct admin users. Also I was woundering is it possible to have 2 passwords 1 for the direct admin cp and ftp and all that other stuff and 1 for ssh.

Since their is no ssh jail feature I would like to run ssh in their user accounts but with a diffrent password so that they may not login but I can to run their game servers and other stuff.

ProWebUK
12-01-2003, 09:50 PM
SSH passwords should be encrypted on the server.

If you want to get to their gameservers simply login as root. They can chnage the aSSH password whether you set it seperately or not without modifications.

Chris

Anzix
12-01-2003, 10:20 PM
well the thing is we run the game servers out of their accounts... As it is easier to monitor and is a secruity risk to run out of root. So I was woundering if their was away to make it so their was a seperate password for ssh.

ProWebUK
12-01-2003, 10:26 PM
The seperate users can most definately have thir own password, and for you to gain access there is root?

Chris

DirectAdmin Support
12-02-2003, 04:21 PM
Hello,

Just an FYI, DA uses the same system passwords as for ssh.
You *can* make an ssh alias.. just copy the user's line from the /etc/passwd and /etc/shadow and change the username (but leave the uid/gid #'s alone). Then just change the new users password with "passwd newuser". Then you have 2 users on the same account, and they can have different passwords. And you can just disable ssh for the original one (and manually enable the new one in the /etc/ssh/sshd_config file)

*only attempt this if you know what you're doing :)

John

Anzix
12-02-2003, 07:26 PM
hmm I did all those steps and when I type in password the window closes...

DirectAdmin Support
12-03-2003, 11:20 AM
That's odd... can you log back in?

ProWebUK
12-03-2003, 12:58 PM
I know this happens after you have disabled direct root login and type in root as your level 1 username.

Have you done that? either way try to login as admin then su - to root.

Chris