LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2015, 08:49 AM   #1
KookosPahkina
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Rep: Reputation: Disabled
Making a FTP/SFTP


Ok so, i want to create a SFTP/FTP account, that has access to edit/delete/move/upload/download files inside its homefolder and to all the other files/folders that are inside the homefolder.
The account should not be able to go back from the homefolder, like if the home folder is /home/servers it cannot go back to /home..
And the account should not be able to login to SSH.
Please help me.. i need to get this working...
I'm using CentOS 6.6 64bit
I've followed multiple tutorials, none of them have worked.
 
Old 01-20-2015, 09:51 AM   #2
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Why did you start the 2nd thread on the same subject? The first one is here.
 
Old 01-20-2015, 09:58 AM   #3
KookosPahkina
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
Why did you start the 2nd thread on the same subject? The first one is here.
Well mainly because i edited this a bit..
 
Old 01-20-2015, 10:01 AM   #4
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
You can add new information in old thread. BTW,
Quote:
none of them have worked.
is not a good description, be more specific
 
Old 01-20-2015, 10:07 AM   #5
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
I'm unclear on whether I should post on the old one or this one..

But what have you tried?
Quote:
I've followed multiple tutorials, none of them have worked.
That really doesn't say a whole lot.

Look through the first section of this link?


Code:
edit /etc/ssh/sshd_config (/etc/sshd_config on some distributions) and set the following options:

Subsystem sftp internal-sftp

Match Group sftp
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

More match statements


Quote:
like if the home folder is /home/servers it cannot go back to /home..
This is very unclear. Do you mean that they should not be able to access anything out of their ~/ directory?
That is what chroot is for, as unspawn said in your previous thread.

Last edited by Miati; 01-20-2015 at 10:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to SFTP and FTP to same directory ? ratotopi Linux - Newbie 2 09-06-2014 03:42 PM
ftp or sftp earthy Linux - Software 2 02-12-2011 11:22 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
FTP and SFTP christopher_c Linux - Newbie 2 08-20-2008 11:07 PM
Using SFTP instead of FTP cliffyman Linux - Software 0 01-19-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration