How do I create another account with ssh access to a folder?

Support for security such as Firewalls and securing linux
Post Reply
nsw448
Posts: 6
Joined: 2015/03/02 01:30:31

How do I create another account with ssh access to a folder?

Post by nsw448 » 2015/05/24 21:37:41

I am trying to create a user 'xxx' that has access to /home/minecraft/serv

I know /home/ by default is owned by root. I am trying to figure out if it would be easier to make a new directory in root for this user or set it up so they can access /home/minecraft/serv. I have no clue how groups work and I understand very little about user perms. Anyone mind explaining this for me in a step by step process so I can get the above done correctly?

My plan is to have the be able to login through ssh and winscp to edit files and start the server.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: How do I create another account with ssh access to a fol

Post by gerald_clark » 2015/05/24 23:10:19


igsmigs88
Posts: 29
Joined: 2014/07/23 20:46:29

Re: How do I create another account with ssh access to a fol

Post by igsmigs88 » 2015/06/03 08:36:56

hi,

useradd -d /home/minecraft/serv xxx

passwd xxx

you can create default home directory for that user

Post Reply