LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 09: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, 10:51 AM   #2
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 189

Rep: Reputation: 62
Why did you start the 2nd thread on the same subject? The first one is here.
 
Old 01-20-2015, 10: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, 11:01 AM   #4
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 189

Rep: Reputation: 62
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, 11: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 11:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:42 PM
ftp or sftp earthy Linux - Software 2 02-12-2011 12:22 PM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 09:10 AM
FTP and SFTP christopher_c Linux - Newbie 2 08-21-2008 12:07 AM
Using SFTP instead of FTP cliffyman Linux - Software 0 01-19-2003 11:41 AM


All times are GMT -5. The time now is 08:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration