LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Vsftp Upload/Download permission (https://www.linuxquestions.org/questions/linux-networking-3/vsftp-upload-download-permission-210954/)

acbenny 07-29-2004 05:24 AM

Vsftp Upload/Download permission
 
I am using Redhat 8 Vsftpd. Now I have two user accounts ("Download" , "Upload" ) . Can I set permission that "Download account" is only for download whereas "Upload accout" is only for upload ?
I have set (write_enable=YES ) in vsftpd.conf, both account now can upload and download. How Can I do ?

win32sux 07-29-2004 08:13 AM

you can create two separate vsftpd.conf files, and start two vsftpd instances...

each instance would use it's own configuration...

for example, vsftpd.download.conf and vsftpd.upload.conf

then you could start the two vsftpd instances:

vsftpd /etc/vsftpd.download.conf

vsftpd /etc/vsftpd.upload.conf



acbenny 07-29-2004 08:50 AM

Sorry, is it a special method since suppose I have ten user accounts ( e.g. A, B. C ,D ,E .... ).
Then if I want to set some permision ( e.g. Read, Write, Excuate ) for each account. Then How can I do it ?

Thanks !!!

win32sux 07-29-2004 09:27 AM

Quote:

Originally posted by acbenny
Sorry, is it a special method since suppose I have ten user accounts ( e.g. A, B. C ,D ,E .... ).
Then if I want to set some permision ( e.g. Read, Write, Excuate ) for each account. Then How can I do it ?

Thanks !!!

you can't "execute" a file using ftp...

=)


if you want each user to have different configurations, then you must create different configuration files for each user...

to let a user upload, you need the write_enable=YES option...

you can chroot users to their home directory using chroot_local_user=YES...


here's all the vsftpd options:

http://vsftpd.beasts.org/vsftpd_conf.html


keep in mind that it's recommended that you DO NOT allow your local users ftp access to the server, as ftp is an insecure protocol, and your users would be transmitting their passwords and files without any security whatsoever...

vsftpd comes pre-configured for anonymous ftp for a reason...

here's a good article on this:

http://www.linuxjournal.com/article.php?sid=7520

=)

acbenny 07-29-2004 09:39 AM

Thx !
Let me try

acbenny 08-02-2004 11:22 AM

sorry. if I create one vsftpd.conf for each user, then how can I define what user belongs to what vsftpd.conf

BrianWGray 08-02-2004 12:28 PM

?
 
maybe I'm crazy, but why don't you create locked down user accounts and set file permissions in cunjuction with the main conf file?

Demonbane 08-02-2004 03:31 PM

<hint>user_config_dir</hint>


All times are GMT -5. The time now is 04:05 AM.