Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
|
10-26-2006, 12:52 PM
|
#1
|
Member
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316
Rep:
|
Giving write permissions/revoking deleting ability
I need to give users access to an ftp dir. All users will be able to write files/dirs to the ftp dir but only certain ones will be given delete abilities. Is there even a way to get this done? If so, how? "How" being the real question.
thanks,
Harlin
|
|
|
10-26-2006, 01:34 PM
|
#2
|
Member
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700
Rep:
|
Yes, this is possible. For example, with Pure-FTPd ( documentation):
Quote:
- '-K': Allow users to resume and upload files, but *NOT* to delete or rename
them. Directories can be removed, but only if they are empty. However,
overwriting existing files is still allowed (to support upload resume) . If
you want to disable this too, add -r (--autorename) .
|
I don't know if you can do this on a per-user basis, but that might get you started. I'll keep looking
|
|
|
10-30-2006, 07:20 AM
|
#3
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
Using vsftpd, you should be able to use a conjunction of cmds_allowed and user_config_dir to make this happen.
If you only want the owner of the file to be able to delete/rename the file, you could check out the "sticky bit" on directories. See "man chmod" for details. Many FTP daemons, like vsftpd, have some options to play around with the file ownership of uploaded files. Using that in conjunction with the sticky bit may prevent certain users from deleting/renaming specific files.
|
|
|
All times are GMT -5. The time now is 10:51 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
|
|