LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-03-2003, 04:07 PM   #1
Stex
LQ Newbie
 
Registered: Mar 2003
Posts: 13

Rep: Reputation: 0
ftp up/download permission prob


hi,

i got a question on vsftpd. i have a virtual user called "virtual" who got a directory called "ftp"(user=virtual, group=virtual) which is located in the apache serve directory.
If i upload files to the "ftp" directory the files have the following permissions: -rw------- . I think that means only the owner, here virtual can read and write the files.
Ok my intension is, if the user virutal uploads files i.e. html files everybody should be able to read these files.
How can i reach that. Is there a paramater for the vsftpd.conf file which let me do that? Or how can i do that.

Thanks for any help
Greetz from the newbie stex

Addition: I want the right -rw-r--r--

Last edited by Stex; 09-03-2003 at 04:09 PM.
 
Old 09-03-2003, 07:10 PM   #2
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
I set up exactly what you are trying to do...There are functions in the vsftpd.conf for changing wonership and permissions on upload, but I didnt have any luck getting it to work. So, I wrote a bash script to do a chown and chmod for everything in the html (or whatever) directory. I made it a cron job to run every 5 minutes. This worked for me, but I am sure there is a better way to do it.

hope this helps...
--dubman
 
Old 09-04-2003, 03:04 AM   #3
Stex
LQ Newbie
 
Registered: Mar 2003
Posts: 13

Original Poster
Rep: Reputation: 0
hi,

hmm a cronjob? Thats elaborately. And with a cronjob, the minimum time i can execute i think is one minute? Am I right? So if i sit in front of my server and has uploaded a test file (html, php) i must wait at least one minute Thats a bad workflow
But thanks for the reply. I hope theres another solution.

Do u know a site where are all vsftpd.conf functions shown? I think there must be one function for our
intension.

Thanks 4 help
 
Old 09-04-2003, 06:08 PM   #4
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
yeah, like i said i am sure there is a better way, but the file will still be available for web access imeadiatly upon upload.

--dubman
 
Old 09-04-2003, 06:10 PM   #5
Stex
LQ Newbie
 
Registered: Mar 2003
Posts: 13

Original Poster
Rep: Reputation: 0
hey i got the solution,

try depending on your config the functions
local_umask=022 or anon_umask=022

I think 4 u that must help. It solved my prob

greetz
 
Old 09-17-2003, 05:48 PM   #6
chintee
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Sorry to sidetrack, I need help from Stex.
I set up virtual users and map them to a local user, say virtualuser.
But now I want them to have different home directory.
ie:
user1 (after log in) -> chroot in /var/ftpuser1
user2 (after log in) -> chroot in /var/ftpuser2

Could you possibly show me the related vsftpd.conf configuration, the vsftpd_user_conf configuration and settings that need tweaking.

Thanks.

Sorry, I feel like it is not appropriate to interrupt here. Please ignore. I solved 90% of the problem already.

Last edited by chintee; 09-18-2003 at 08:02 AM.
 
Old 10-03-2003, 02:23 PM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
following posts answers everything: http://www.linuxquestions.org/questi...threadid=65393
 
  


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
Usb and other hardware permission prob artois_val Mandriva 1 09-30-2005 03:21 PM
winbind samba user vs. group permission denied prob pauljtester Linux - Software 1 09-30-2004 10:32 AM
Vsftp Upload/Download permission acbenny Linux - Networking 7 08-02-2004 04:31 PM
Vsftp upload/download permission acbenny Linux - General 0 07-28-2004 11:17 AM
permission prob crater Linux - Newbie 7 12-13-2002 05:34 AM

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

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