Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2004, 04:02 PM   #1
LQ Newbie
Registered: Jun 2003
Distribution: SuSE 8.1
Posts: 29

Rep: Reputation: 15

Is there any way to make a user able to write to a directory but not delete files in the directory? i'm running SuSE8.1 with reiserfs.
it would be even cooler if you know any way to get it to work over samba.
Old 01-30-2004, 04:14 PM   #2
LQ Newbie
Registered: Feb 2003
Location: Horsham, PA
Posts: 28

Rep: Reputation: 15
I can't help you as far as the file permisions go, but i BELIEVE (it may be wrong) that you can use pam restriction to help you do this over SMB.

If you have the latest version of samba, there will be an availiabe option in the config file "obey pam restrictions = yes" (or no). Pam restrictions, if i remember correctly, applys the local users restrictions to them.

for example, if you have user 'eman', and he has a home dir '/home/eman', and his home directory is such that he can write but not delete, then applying the pam settings would also do the same thing over samba. when he tries to access the share with that user name, he will be able to write in it, but not delete anything. I may be totally wrong and talking out of my ass, so wait for someone else to verify this before you try. i hope this helps.
Old 01-30-2004, 04:45 PM   #3
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 136

Rep: Reputation: 15
By "write to a directory" do you mean create new files or edit existing ones. If the latter what you ask is default behaviour.

When a directory gives group permissions of r-x and the files in that directory have rwx group permissions the group members can edit files but neither create nor delete the files.

If you want users to be able to creat new files but not be allowed to delete them I cannot help you, it sounds illogical.



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
Shell Restrictions Equin Linux - Security 1 10-21-2004 11:46 AM
Samba IP Restrictions gigglesnorter Linux - Networking 1 07-01-2004 03:52 AM
Directory Restrictions aeruzcar Linux - Security 6 10-28-2003 09:09 PM
Restrictions X3781 Linux - General 1 01-07-2003 12:55 PM
command restrictions keevitaja Linux - Newbie 4 09-12-2002 05:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration