LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2007, 02:36 AM   #1
singeX
LQ Newbie
 
Registered: Sep 2006
Location: Las Vegas, NV
Distribution: CentOS5; RHEL4; FC6
Posts: 8

Rep: Reputation: 0
Samba - New File Permissions


I'm pretty new to samba but this is probably pretty basic. I setup multiple shares and users on my samba server. I set the correct file permissions and ownership for each folder. The problem is that I want a couple of shares to have owner and group write privileges. Any new file written in the shared folder only gives owner write privileges and not group write privileges. It seems so simple but I can't figure it out. It sounds very similar to this problem.

Any ideas?
 
Old 05-04-2007, 03:54 AM   #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
Do you use the "create mode" directive in the share definitions (eg create mode = 775)

Last edited by billymayday; 05-04-2007 at 03:56 AM.
 
Old 05-04-2007, 08:15 PM   #3
singeX
LQ Newbie
 
Registered: Sep 2006
Location: Las Vegas, NV
Distribution: CentOS5; RHEL4; FC6
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

I knew it had to be something simple. Thanks for helping a newbie. It works perfectly now. This is what I added to my share definitions:

Code:
force group = mygroup
force create mode = 0770
force directory mode = 0770
 
  


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
file permissions in samba jmarsh Linux - Networking 5 09-07-2006 09:35 AM
file permissions for samba jhp Linux - Networking 0 06-13-2006 08:22 AM
Samba file permissions technochef Linux - Networking 1 09-25-2004 01:59 PM
samba and file permissions jkraeger Linux - General 2 02-24-2003 02:06 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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