How to quickly create an SCP account with limitted permissions?

P

postcd

Guest
Hello,

im having a linux (redhat) vps with root ssh access. i want to quickly create a new account for scp connections.

example i want to temporarilly give the credentials to some person which i dont know good. And i want him to have only access to folder lets say /home/peter ? and dont allow him to to consume more than 20gb of disk space or anyhow breach the security of the linux system.

is there any quick secure way to allow such scp access?
 


OP
R

ryanvade

Guest
You can just use the useradd command:
Code:
useradd -m -d /home/peter -p PASSWORD_HERE peter
will create /home/peter, a group called peter, a user named peter, and a password of PASSWORD_HERE. By default this account should only be able to access it's home folder.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

No members online now.

Latest posts

Top