LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2009, 05:07 AM   #1
rizean
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
How to configure rights on a Samba Share...


What I am tring to do is give all users of group users rwe any files/directories of a samba share execpt for the top level.

Top Level cotains a number of folders and a readme file and should be r-e
Sublevel should be rwe including files/dir they did not create.

I'm am familure with chmod/chgrp but not sure how to do this.
 
Old 06-12-2009, 10:46 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you make sure all the users are members of the same group, then all levels down from the top should be 770 or 660, but make entries in the top level 550.

In fact, you probably want your directories 770 and your files 660.


So if the users are user1, user2, etc, in group users, do

chgrp -R users *

from the top level,

find ./ -type d -exec chmod -R 770 {} \;

and

find ./ -type f -exec chmod -R 660 {} \;

and finally

find ./ -type f -maxdepth 1 -exec chmod -R 440 {} \;

I haven't tested these, but they look about right.
 
  


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
When remounting NTLMv2 share under linux, rights change.. lizardkings Linux - Security 0 09-12-2008 03:51 AM
Keep file rights with samba share eRJe Linux - Server 1 08-14-2008 06:54 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
how do I configure samba share for all LAN users? keratos Mandriva 4 06-19-2007 02:15 PM
How do I configure Samba file share on two Linux servers lnxusers SUSE / openSUSE 2 07-13-2006 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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