LinuxQuestions.org
Review your favorite Linux distribution.
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 06-06-2003, 10:29 PM   #1
r042wal
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
How to Read, Write, Execute but not Delete


Does Linux have provision for some type of ACL? I want a user to be able to READ Write and Execute, but not Delete. How could those permissions be set on a folder?
 
Old 06-06-2003, 10:53 PM   #2
nuadastorm
LQ Newbie
 
Registered: Jun 2003
Distribution: Redhat 8.0
Posts: 17

Rep: Reputation: 0
Take away their execute permission for the rm command and any other commands that can delete a file.
 
Old 06-06-2003, 11:05 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
how do you want them to be able to write to or
delete stuff out of a file, but not delete it. if they can
delete everthing in a file, what difference does it make
if they can delete it?
 
Old 06-06-2003, 11:07 PM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
The argument is misleading... If you can Write, you can sure as heck delete... Even without actually rm -rf file.

Edit the file, delete everything inside it. Save it. It's as good as deleted.
 
Old 06-06-2003, 11:20 PM   #5
nuadastorm
LQ Newbie
 
Registered: Jun 2003
Distribution: Redhat 8.0
Posts: 17

Rep: Reputation: 0
Quote:
Originally posted by Azmeen
The argument is misleading... If you can Write, you can sure as heck delete... Even without actually rm -rf file.

Edit the file, delete everything inside it. Save it. It's as good as deleted.
I actually thought of that but was going to let him find out on his own.
 
Old 06-07-2003, 06:49 AM   #6
r042wal
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I am setting up an FTP with vsFTpd. In the Incoming folder, I want the user to be able to create the file and folder, see what he has created, but not be able to delete anything after he uploaded.

Here are my results when dealing with the Incoming directory and don't suggest I haven't tried to figure this out on my own <grin>, that's half the fun!

rx-
Failed to change directory

-wx
Failed to open directory

r-x
Able to enter INCOMING
Can't delete files or folders
Can see everything
Create directory fails

r--
Failed to chage directory

-w-
Failed to change directory

--x
Able to change to incoming
Able to see everything
Failed to open directory

ftpusers group has ownership
chown -R root:ftpusers /home/ftp/Incoming

ftp users group has permissiond to Incoming folder
chmos -R 744 /home/ftp/Incoming

ftpusers are able to delete *anything* from the Incoming folder and this is not acceptable

Help!
 
Old 06-07-2003, 11:05 AM   #7
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
this is not very hard to do... there's probably an option in your ftp server to set the UID/GID of files uploaded. Just make sure every files uploaded will be owned by another user, not by the user who upload them.

So every user will be able to play with files they own, but not with files they uploaded.
I use PureFtp and it support it (prolly most ftp server have option like this too)
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM
How to set permissions to read, execute, write for users only chupacabra Linux - General 3 12-18-2002 03:54 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM


All times are GMT -5. The time now is 10:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration