LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-29-2004, 05:24 AM   #1
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Rep: Reputation: 15
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 ?
 
Old 07-29-2004, 08:13 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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 08:15 AM.
 
Old 07-29-2004, 08:50 AM   #3
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Original Poster
Rep: Reputation: 15
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 !!!
 
Old 07-29-2004, 09:27 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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

=)
 
Old 07-29-2004, 09:39 AM   #5
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Original Poster
Rep: Reputation: 15
Thx !
Let me try
 
Old 08-02-2004, 11:22 AM   #6
acbenny
Member
 
Registered: Jul 2004
Posts: 44

Original Poster
Rep: Reputation: 15
sorry. if I create one vsftpd.conf for each user, then how can I define what user belongs to what vsftpd.conf
 
Old 08-02-2004, 12:28 PM   #7
BrianWGray
Member
 
Registered: Oct 2003
Posts: 54

Rep: Reputation: 15
?

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?
 
Old 08-02-2004, 03:31 PM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
<hint>user_config_dir</hint>
 
  


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
vsftp 550 Permission denied and upload limitation problem jchibbra Linux - Networking 1 02-16-2007 02:25 PM
vsftp not allowing upload Fredstar Linux - Newbie 2 11-28-2004 03:50 PM
Vsftp upload/download permission acbenny Linux - General 0 07-28-2004 10:17 AM
VSFTP allowing upload/download but not DELETE joelf Red Hat 2 09-25-2003 12:05 PM
Upload with VSFTP Rage79 Linux - Security 5 01-21-2003 08:45 AM

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

All times are GMT -5. The time now is 08:21 PM.

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