LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2010, 02:54 PM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
What are the SFTP'd user permissions?


if lets say 'someuser' sftp's into the box what is he actually able to do?
Looking at my tests he can browse any directory to which he has read permissions but is only able to delete files in /home/someuser, even if they are owned by root. On the other hand in any folder above /home/someuser he would NOT be unable to delete a file even if its chmoded 777. Can anyone please confirm these findings.
 
Old 04-06-2010, 03:17 PM   #2
x0000000009
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
Does your vsftpd.conf got the following:

Quote:
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
chroot_local_user=YES
and the user logging in is just in a user group?
 
Old 04-06-2010, 03:21 PM   #3
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by x0000000009 View Post
Does your vsftpd.conf got the following:



and the user logging in is just in a user group?
Actually this will be an SFTP setup which is just ssh for transferring
of files.
 
Old 04-06-2010, 03:29 PM   #4
x0000000009
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
If i log in through ssh with a tunnelier I get the same effect. I would guess that you would want to create a chroot jail for the user if you want them to login through ssh for ftp session.
 
Old 04-10-2010, 03:49 PM   #5
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
By default the SFTP user has the same permissions as if they are logged in locally. In Unix (including Linux) one needs write permission to the directory to delete files within it.
 
  


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
how to automount usb drives with user owner and user r/w permissions mike11 Linux - Newbie 1 11-19-2009 03:59 PM
Giving user 'www-data' same permissions as normal user MikeOfAustin Linux - Software 5 06-08-2007 03:50 AM
User permissions VirtualDreams Linux - Security 2 02-27-2007 05:35 PM
User permissions Slayer097 Linux - Newbie 5 02-26-2005 06:55 PM
user permissions Vyeperman *BSD 6 10-06-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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