LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2003, 12:02 AM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
Advanced File Permissions


In windows, you can specify advanced file permissions. You could specify extended permissions like delete, modify. I want to be able to do this in linux. Is there a way to tell a directory that a person can modify a file but not erase it? I would like to be able to give a user permission to upload to a directory but not be able to erase files in it.
 
Old 04-24-2003, 03:01 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
For a filesystem an extra delete permission isn't very usefull. If you give someone write permissions they can delete the contents of the file without deleting the file itself. Which in the end is just as bad.

But you are talking about uploading files. Is this a directory which will only be accessed through an ftp program? Because most ftp servers allow you to set stricter permissions. This can usually be done by disabling commands (like the delete command). In proftpd you would use the Limit directive for this.
 
Old 04-24-2003, 03:31 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
If you set the 'sticky bit' on a directory (using chmod [check the man page I can't remember the code in my pre-coffee state]) then people are only able to delete files that they own, I'm not sure if thats any use to you. There are some linux file systems that support Access Control Lists that would give you the kind of functionality that you've described but its not widely supported yet. Have look through some of the following http://www.google.com/search?hl=en&i...ilesystem+ACLs

HTH

Jamie...
 
Old 04-24-2003, 08:33 PM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
thats kind of useless man lets say i upload ed homework.txt and wan to delete it just send a empt homework.txt to the directory and and works for other files to
 
Old 04-24-2003, 08:50 PM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Presuming you're talking about WinNT and derivatives (2000, XP), I recently learned that NT's filesystem supports finer control over permissions. It's possible, for example, to grant only a specific user certain permissions, or restrict some user from permissions. To do something like that with ext2/3, you'd have to do some weird group stuff, making it pretty hard to do.

Maybe some of the other filesystems supported by Linux would give that kind of permission control? (Dunno, I haven't tried them.)

Though, as everyone else has pointed out, you can use the "sticky" bit to do what you're describing:

chmod g+t directory_name

Read the chmod manpage for more details.
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
File server / Advanced Permissions lambmt Linux - Security 2 08-06-2004 08:49 AM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM


All times are GMT -5. The time now is 11:56 PM.

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