LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-16-2004, 02:47 PM   #1
steve7575
LQ Newbie
 
Registered: Feb 2004
Location: Colorado
Posts: 15

Rep: Reputation: 0
Question file permissions/vsftp/incoming directory


I'm using vsftp and here is what is happening and what I want it to do.....

I have anonymous user setup so that files can be uploaded to my incoming directory but not downloaded or changed (as usual). The problem is that when the file is uploaded it is given permissions as follows:

-rw------- 1 ftp steve 936 Jul 16 13:02 file.txt

I have many users who want files uploaded to the system from outside so within the incoming directory, I have directories for each user receiving files. So the above example is in the /incoming/steve directory. I want to make it so that when a file is uploaded, the user is changed to the correct authorized user whos directory the file is being uploaded to. Basically, I want it so that when the above file is uploaded by an anonymous user, it looks like this:

-rw------- 1 steve steve 936 Jul 16 13:02 file.txt

so that the authorized user can go in and retrieve the file once it's uploaded.

Right now, files can be uploaded but my authorized users can't get to them unless I go in and manually change the permission. Hope this makes sense and that someone can give me some idea how to accomplish this using the /etc/vsftpd/vsftpd.conf file.

Thanks!
 
  


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
Default directory and file permissions kodon Slackware 12 02-13-2020 01:49 PM
samba file/directory permissions jonfa Linux - Networking 2 06-29-2005 08:03 AM
File/Directory Permissions waynevnc Debian 1 05-23-2005 04:23 PM
File and Directory permissions plasmapudding Red Hat 3 09-09-2003 10:26 AM
Directory and file permissions ryan Linux - Security 2 12-06-2000 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration