Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-29-2004, 06:24 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 44
Rep:
|
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 ?
|
|
|
07-29-2004, 09:13 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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
Last edited by win32sux; 07-29-2004 at 09:15 AM.
|
|
|
07-29-2004, 09:50 AM
|
#3
|
Member
Registered: Jul 2004
Posts: 44
Original Poster
Rep:
|
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 !!!
|
|
|
07-29-2004, 10:27 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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
=)
|
|
|
07-29-2004, 10:39 AM
|
#5
|
Member
Registered: Jul 2004
Posts: 44
Original Poster
Rep:
|
Thx !
Let me try
|
|
|
08-02-2004, 12:22 PM
|
#6
|
Member
Registered: Jul 2004
Posts: 44
Original Poster
Rep:
|
sorry. if I create one vsftpd.conf for each user, then how can I define what user belongs to what vsftpd.conf
|
|
|
08-02-2004, 01:28 PM
|
#7
|
Member
Registered: Oct 2003
Posts: 54
Rep:
|
?
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?
|
|
|
08-02-2004, 04:31 PM
|
#8
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
<hint>user_config_dir</hint>
|
|
|
All times are GMT -5. The time now is 05:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|