LinuxQuestions.org
Register a domain and help support LQ
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-17-2015, 05:55 PM   #1
KookosPahkina
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Rep: Reputation: Disabled
Creating a SFTP Account


Ok so, i want to create a SFTP 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.
 
Old 01-17-2015, 07:48 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by KookosPahkina View Post
Ok so, i want to create a SFTP 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.
Users usually have access to all directories and files in their own ~/.


Quote:
Originally Posted by KookosPahkina View Post
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..
The term you're looking for is "chroot".


Quote:
Originally Posted by KookosPahkina View Post
And the account should not be able to login to SSH.
See https://www.linuxquestions.org/quest...1/#post5290585 (with the addition that the user account you create must have an inert shell like "/bin/false" or "/sbin/nologin") or see 'scponly'.
 
  


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
chrooted sftp environment main account with several subaccounts b0oze Linux - Newbie 6 09-16-2014 01:28 PM
Can sftp into root account, but not created user? ashamanmiller Linux - Server 23 02-04-2012 12:51 PM
[SOLVED] SFTP/SCP only per account td3201 Linux - Server 7 01-04-2012 09:58 PM
User account with SFTP access only nsfx Linux - General 3 01-06-2008 07:52 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration