LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-13-2005, 03:25 PM   #1
yrfonfria
LQ Newbie
 
Registered: Jun 2005
Location: Santa Clara Cuba
Posts: 6

Rep: Reputation: 0
Question vsftpd and file system security issue


Hi all:

I want to use vsftpd server to handle uploads to certain folder on my linux box and later publish the contents of upload folders with apache using virtual hosts. The probem I got is the following: I upload a file and vsftpd writes it on disk with the following permission set
-rw-r--r-- and thats fine for me. Later apache can access this file to publish it, but when I try to upload a directory vsftpd writes it on disk with this permission set drwx------ and this latter form forbids apache to access the directory, so is not possible publish it

I got vsftpd working with virtual users. I mean create a real user on my box and set in vsftpd.conf guest_enable=yes and guest_username=myuser. The "virtual users" are real users on my box and the authentication for vsftpd is based on pam_listfile.so because pam_userdb.do does not work for me due to incompatibility witn berkeley db. For this purpose i write an /etc/ftplogins file with allowed users to log on my ftp.

I somebody got a solution for my problem I 'll be grateful
I'm using SuSE Linux 9.3 professional

Best regards
 
Old 10-15-2005, 07:05 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
If you still need solving this issue, please post your vsftp config, and owner and permissions of the upload root.
 
Old 10-19-2005, 02:20 PM   #3
yrfonfria
LQ Newbie
 
Registered: Jun 2005
Location: Santa Clara Cuba
Posts: 6

Original Poster
Rep: Reputation: 0
thank you I already solve my problem
just setting local_umask=022
 
  


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
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
File System / Permission Issue anand_kt Linux - Security 5 09-15-2005 01:11 PM
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM
security on sub folders vsftpd randybell Linux - Security 3 09-29-2004 03:15 AM
vsFTPd Security SolidSnake Linux - Software 0 12-16-2003 12:55 PM

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

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