LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-26-2006, 12:52 PM   #1
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 38
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
 
Old 10-26-2006, 01:34 PM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
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
 
Old 10-30-2006, 07:20 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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.
 
  


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
Permissions: giving specific groups write access to a directory kinetik Linux - General 3 07-06-2006 08:30 AM
Xandros' ability to write to NTFS newbiesforever General 5 06-23-2006 12:23 AM
NTFS write ability in Mandrake 10.1 drew3 Mandriva 1 10-22-2004 04:38 AM
giving user ability to change all users passwords mp5 Linux - Newbie 1 06-28-2004 08:02 PM
giving a user the ability to use ports below 1024 surreal Linux - Networking 2 12-17-2003 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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