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-17-2015, 04: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, 06:48 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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



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 12:28 PM
Can sftp into root account, but not created user? ashamanmiller Linux - Server 23 02-04-2012 11:51 AM
[SOLVED] SFTP/SCP only per account td3201 Linux - Server 7 01-04-2012 08:58 PM
User account with SFTP access only nsfx Linux - General 3 01-06-2008 06: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 10:02 AM

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

All times are GMT -5. The time now is 06:50 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