LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2005, 04:38 PM   #1
me3
LQ Newbie
 
Registered: Jan 2005
Posts: 28

Rep: Reputation: 15
vsftpd: allow users to write and delete files ?


I need to set up an ftp site to allow various users to read, write and delete files and directories. Basically it is a big file sharing area. (legal uses... we own the copyright of the files...)

The users are using a variety of platforms, so ftp and web-browser access has been chosen. We've got the firewall only allowing access from certain IPs and users at those IPs log in as anonymous. That part works fine.

I've got vsftpd installed and running on an FC3 computer. I've got permissions problems with several of the operations, such as uploading a file or folder, deleting files and rewriting files.

I'm confused about the permissions and settings that should be used with vsftp. Who/what should the owner and permission of the "pub" directory ? What user and permission does an anonymous user have ? What group does it belong to ?

Thanks for any and all help.

Last edited by me3; 03-02-2005 at 05:02 PM.
 
Old 03-02-2005, 05:01 PM   #2
swatward
Member
 
Registered: Jan 2005
Distribution: slackware
Posts: 83

Rep: Reputation: 15
You could Chmod the directory, "PUB"
chgrp ftp pub
(/\ /\ changes group associated w/ the ftp directory)
chmod -R u=rwx, o-rwx, pub
(/\ /\ Change the read, write, and execute files permissions)
and you create users using the command:
useradd -m -d /home/bradr
passwd whatever
(change the bradr to whatever you want as the user name and whatever for the password)
then, enable local user logins in here, if your doing this over a local network
/etc/vsftpd/vsftpd.conf
the line should be somthing like: local_enable=YES
if its set to no, and if it has a # before it, change those.
if you have any more questrions, or i wasnt clear enough, go ahead and post back here, ill check back, thanks
 
Old 03-02-2005, 05:09 PM   #3
me3
LQ Newbie
 
Registered: Jan 2005
Posts: 28

Original Poster
Rep: Reputation: 15
re:

You could Chmod the directory, "PUB"
chgrp ftp pub
(/\ /\ changes group associated w/ the ftp directory)

>> I did this.

chmod -R u=rwx, o-rwx, pub
(/\ /\ Change the read, write, and execute files permissions)

>> I did a chmod 777 pub

and you create users using the command:
useradd -m -d /home/bradr
passwd whatever

>> I wanted to have everyone use anonymous access. I've got about 10 people using this directory and I don't want to set up 10 users, or even one user if I don't have to. Do I have to ?

(change the bradr to whatever you want as the user name and whatever for the password)
then, enable local user logins in here, if your doing this over a local network
/etc/vsftpd/vsftpd.conf

>> that makes sense

the line should be somthing like: local_enable=YES
if its set to no, and if it has a # before it, change those.

>> and presumably disable anonymous access

if you have any more questrions, or i wasnt clear enough, go ahead and post back here, ill check back, thanks

>> Is it possible to allow deletes and updates with an anonymous user ?

>> Also, if I upload a file to /pub, it appears fine. If I upload a file to /pub/new, it doesn't appear. Any ideas ?

>> Thanks for your help.
 
Old 03-02-2005, 06:21 PM   #4
me3
LQ Newbie
 
Registered: Jan 2005
Posts: 28

Original Poster
Rep: Reputation: 15
I created an account for the entire company and disabled anonymous logins. Everything works fine now. Users can create, delete, edit and overwrite at will. Yes, I know about CVS...

Thanks for your help.
 
Old 03-04-2005, 07:22 PM   #5
swatward
Member
 
Registered: Jan 2005
Distribution: slackware
Posts: 83

Rep: Reputation: 15
sounds good
 
  


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
anonymous users can't upload files-vsftpd dx0r515t Linux - Networking 3 11-21-2012 12:09 AM
users of VSFTPD can't chmod files they uploaded tclwp Linux - Networking 4 09-05-2008 07:28 AM
Allow two users write access, but not delete jimieee Linux - General 4 03-29-2005 08:37 AM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 06:12 PM
clients can write to files but they cannot delete them sparsh Linux - Networking 1 05-10-2003 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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