LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
rights/restrictions


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, 05:14 PM   #2
bstempi
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, 05:45 PM   #3
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 134

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.

ZB
 
  


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


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