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 |
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.
|
|
03-02-2005, 04:38 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Posts: 28
Rep:
|
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.
|
|
|
03-02-2005, 05:01 PM
|
#2
|
Member
Registered: Jan 2005
Distribution: slackware
Posts: 83
Rep:
|
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
|
|
|
03-02-2005, 05:09 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
03-02-2005, 06:21 PM
|
#4
|
LQ Newbie
Registered: Jan 2005
Posts: 28
Original Poster
Rep:
|
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.
|
|
|
03-04-2005, 07:22 PM
|
#5
|
Member
Registered: Jan 2005
Distribution: slackware
Posts: 83
Rep:
|
sounds good
|
|
|
All times are GMT -5. The time now is 09:28 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
|
|