LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-20-2010, 05:26 AM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Rep: Reputation: 32
Prevent user from deleting files on pureftpd


How can I do this on a per user setup?

Code:
- '-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) .
This is pretty much what I want to do, but I only want this done to ONE user on the server. I have many user accounts, but only one of them I want to prevent users from issuing the "delete" command and deleting everything. Is this possible?
 
Old 02-20-2010, 05:39 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The problem is that the ability to delete a file is granted by giving
write permission to a directory. If you take away a user's permission
to delete a file, you also take away their ability to create any new
files.

You might want to consider having this user upload to a separate
directory, and then use rsync to copy any updated or new files to
the work directory which the user cannot access.
 
Old 02-21-2010, 12:29 AM   #3
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
I understand that, but using the -K option with pureftpd will prevent users from being able to delete files they've uploaded. The problem is, that's for ALL users. I just want one user to have this limit.
 
  


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
Pureftpd user restrictioning clustermagnet Linux - Software 1 07-15-2009 01:25 PM
pureftpd problem, unable to add virtual user - debian lenny kutlu Debian 1 12-01-2008 02:11 PM
Prevent root from deleting files on network mounts bobwall Linux - Server 9 08-28-2008 07:31 PM
Changing File Permission in a FTP directory to prevent deleting of files shawnbishop Linux - Software 3 01-10-2006 05:41 AM
Pureftpd + xinetd: Writes pureftpd commandline to client when connecting bomix Linux - Software 2 03-29-2005 09:21 PM

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

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