Create new SSH (non-root) user

PlymWS

Verified User
Joined
Oct 28, 2006
Messages
6
I'm tryinf to install java on my Debian Sarge server. I need to run the command :

fakeroot make-jpkg javapackage

but I need to do this from a non-root ssh account. I have tried to adduser but the password file can't be locked, I presume a measure taken by DA.

How can I create a new account that I can give non-root SSH access to ?
 
PlymWS said:
I'm tryinf to install java on my Debian Sarge server. I need to run the command :

fakeroot make-jpkg javapackage

but I need to do this from a non-root ssh account. I have tried to adduser but the password file can't be locked, I presume a measure taken by DA.

How can I create a new account that I can give non-root SSH access to ?

You can grant an SSH access to any DA account as follows:
  • Login into DA as admin
  • Get a list of all users
  • Select the user you want to grant SSH access to
  • Click "Modify user"
  • Check "SSH Access" checkbox
  • Click "Save" to confirm the change

You might need to restart SSH maually (either via DA or command line), though, I think newer versions of DA do that for you as well.
 
adduser works fine for me with CentOS. Is anyone else having a problem with it on any other distribution?

For highest security you should never allow root logins through ssh; you should always log in as a nonprivileged account and then run su -, sudo, fakeroot, etc., as necessary.

Jeff
 
jlasman said:
adduser works fine for me with CentOS. Is anyone else having a problem with it on any other distribution?
Works fine for us with both CentOS and FreeBSD, however, accounts created this way do not appear on DA 'List All Users' page.
I am a strong believer of KISS approach
For highest security you should never allow root logins through ssh; you should always log in as a nonprivileged account and then run su -, sudo, fakeroot, etc., as necessary.
That's true, but so far noone in this thread said they did otherwise ;)
 
Webcart said:
Works fine for us with both CentOS and FreeBSD, however, accounts created this way do not appear on DA 'List All Users' page.
I am a strong believer of KISS approach
That's correct. I was referring to the original post; he mentioned a problem with adduser.
That's true, but so far noone in this thread said they did otherwise ;)
The original poster wrote:
How can I create a new account that I can give non-root SSH access to ?
From that I presumed he had root SSH access.

Jeff
 
jlasman said:
From that I presumed he had root SSH access.
That's correct, just not necessarily via direct root login ;)
In your post above
For highest security you should never allow root logins through ssh; you should always log in as a nonprivileged account and then run su -, sudo, fakeroot, etc., as necessary.
it looked like you were referring to direct root logins specifically.
 
Back
Top