Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-13-2005, 12:57 AM   #1
LQ Newbie
Registered: Mar 2005
Distribution: fedora, slackware
Posts: 16

Rep: Reputation: 0
Samba permission

Hi all.

I have set up a samba machine that acts as a domain controller to replace the current windows 2000 server.

Everything works fine except permission to protect the file. The users could create/save any file under their domain/group. I am trying to find solutions that would allowed the user to create/edit but not deleting the file or folder.

I have tried many ways that i found in google but the result is not successful.

For example, i have one drafting group where all the users in the drafting groups are able to write,edit,create folder or file but do not have permission to delete. Only the manager have the access to delete the file/folder.

Old 06-13-2005, 03:03 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,563

Rep: Reputation: 140Reputation: 140
if a user can create or edit a file or folder - then he/she can delete it, too. i dont think u can stop that in samba.
Old 06-13-2005, 04:15 AM   #3
LQ Newbie
Registered: Mar 2005
Distribution: fedora, slackware
Posts: 16

Original Poster
Rep: Reputation: 0
hmmm... but i have read somewhere that it can be done... you need to create mask xxxx to make it work... but then i have lost the url link to that site.
Old 06-13-2005, 09:05 PM   #4
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The problem would be that the creator of the file can still delete it. Editing requires write permission which would allow deletions.

You have user and group ownerships, read, write, and execute.

You can mask file permissions for certain users and groups but there is no delete in the file systems permissions, only read, write, and execute.

The only thing that makes sense to me for a file server is to mask files to be write for some user or group, and read only for others or for group.

I had a very successful one for some time at work and the groups had access to their specific folders. The creator in most cases should be the only person to have write access. If the file becomes obsolete they can change or delete it.

Then again,

I can't test this for you now but it's worth a try.

use create mask of 400, 440, or 444 whatever applies.

then use ...

write list = someuser

"someuser" being the filservers admin

This will mean the creator cannot edit the file.

Last edited by DavidPhillips; 06-13-2005 at 10:25 PM.
Old 06-15-2005, 06:04 AM   #5
LQ Newbie
Registered: Mar 2005
Distribution: fedora, slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks david, i will give it a try....

Anyway after doing some searching in google, i found out that the ACL is able to restrict the permission. Anyone have tried ACL before???
Old 06-15-2005, 10:41 AM   #6
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
You can set stuff like this in Samba IIRC, but it's a PITA.

My suggestion is for something like this, either pour though the Samba docs (if there are any), or get a really good book on Samba. I've got one on Samba 2.2.x, and it tells how to do ACL's and other such advanced things.

I'll try to post back with what my Samba book has for doing ACL's in a bit, as I've got other stuff to do for now.


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
Samba permission problem (probably) pingu Linux - Software 3 01-26-2010 02:23 AM
Samba permission messed up! muppski Linux - Software 3 12-20-2004 07:07 AM
samba permission problems Jestrik Linux - Software 1 03-27-2004 12:34 PM
Samba Permission problems... Gattancha Linux - Software 6 07-08-2003 12:49 AM
SAMBA File Permission vcheah Linux - Software 1 11-27-2002 12:29 PM > Forums > Linux Forums > Linux - Software

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