Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SFTP Configuration on Ubuntu OpenSSH

Posted on 2008-06-19
6
Medium Priority
?
6,564 Views
Last Modified: 2013-11-15
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
Comment
Question by:jjmartineziii
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21825212
modify the user home in /etc/passwd
0
 
LVL 12

Author Comment

by:jjmartineziii
ID: 21825873
thanks albuitra.

how can i prevent them from leaving the userhome? and accessing /etc/
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21828871
what ftp server are you using..you can jail users into their home dirs using the ftp server.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Author Comment

by:jjmartineziii
ID: 21830897
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
 
LVL 4

Expert Comment

by:albuitra
ID: 21830928
0
 
LVL 40

Accepted Solution

by:
noci earned 2000 total points
ID: 21832806
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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question