LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-11-2013, 03:39 PM   #1
SeņorDumAss
LQ Newbie
 
Registered: Nov 2013
Location: NYC area
Posts: 2

Rep: Reputation: Disabled
Question Permission to change another user's files - Debian-Samba


I have a Debian server running Samba. There are several directories that are shared between the group with some users being completely trusted, other users being partially trusted and some not trusted at all.

Group1 (trusted) needs to be able to read/write/delete anything and everything.
Group2 (partially trusted) needs to be able to read everything but only should be able to modify and delete their own files.
Group3 (not trusted) needs to be able to read but nothing else.

I'm currently using user-based file permissions to satisfy the needs of Group2 & Group3, but using this method, Group1 can't modify anyone else's files.

Did I make any sense whatsoever? Haallp!
 
Old 11-11-2013, 05:18 PM   #2
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Rep: Reputation: 32
Hello:
I've never used user-based file permissions. I've always used ADS (linux joined to Active Directory).
Suppose the problem is the same. What I do is:
- Enable acl on partition (mount it with acl option).
- Assign permissions to files/directories based on user/group acls (setfacl and getfacl commands).
- Share directories using samba and configure it to use permissions assigned to files/directories.
Time ago I put pots detailing the way to do it...
 
1 members found this post helpful.
Old 11-13-2013, 10:08 AM   #3
SeņorDumAss
LQ Newbie
 
Registered: Nov 2013
Location: NYC area
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for the quick reply Felipe! Unfortunately, I am having difficulty grasping how I can implement your proposed solution. The users will have thousands of files intermixed in hundreds of different shared directories (a dynamic environment where new files are constantly being created). Would your solution still apply? If so, could you explain it to me in small words (I'm not particularly bright and am new to the linux world).

Many thanks!
 
Old 11-13-2013, 10:57 AM   #4
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Rep: Reputation: 32
Please, read this posts (and the posts I've written below that) and tell me if it's what you are looking for:
- http://www.linuxquestions.org/questi...6/#post4477585

If it's what you are looking for, tell me.

Or if my previous post (in this thread) is enough but don't know how to implement it, tell me.
 
1 members found this post helpful.
  


Reply



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
Change user permission for some folder miros84 Linux - Software 1 01-22-2013 04:14 AM
How can i change the permission of root files or looked files ? ubuser Linux - Newbie 3 10-26-2010 07:06 PM
how to give the permission to user to change his password ramesh14 Linux - Newbie 2 11-19-2008 01:40 AM
Need ACCESS to change files! Every time I try to change a setting,"Permission Denied" Balarabay1 SUSE / openSUSE 2 03-06-2006 09:54 AM
how to change user permission salahuddin_66 Slackware 10 04-22-2004 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 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
Open Source Consulting | Domain Registration