• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6588
  • Last Modified:

SFTP Configuration on Ubuntu OpenSSH

I want to configure sftp with ubuntu. I have it install and working with a regular user. I would like to make it so the user can only sftp and nothing else. I would also like to set the users home dir to /home/share

How can I do this?
0
jjmartineziii
Asked:
jjmartineziii
1 Solution
 
albuitraCommented:
modify the user home in /etc/passwd
0
 
jjmartineziiiAuthor Commented:
thanks albuitra.

how can i prevent them from leaving the userhome? and accessing /etc/
0
 
http:// thevpn.guruCommented:
what ftp server are you using..you can jail users into their home dirs using the ftp server.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
jjmartineziiiAuthor Commented:
I am using openssh-server sftp. Can you do that with that one? I can't use a regular ftp, it has to be sftp.
0
 
nociSoftware EngineerCommented:
Are you aware of the scponly package?
scponly can also handle sftp access as it is a special shell for restricting ssh access, see:
http://www.sublimation.org/scponly/

for more info
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now