[Samba] Force Create Mode & Unix Group Permissions

This is a discussion on [Samba] Force Create Mode & Unix Group Permissions within the Samba forums, part of the Networking and Network Related category; [root@fedora1 common]# rpm -q samba samba-3.0.2-7.FC1 I have a share called common [common] comment = ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-05-2004
Calvin Gordon
 
Posts: n/a
Default [Samba] Force Create Mode & Unix Group Permissions

[root@fedora1 common]# rpm -q samba
samba-3.0.2-7.FC1

I have a share called common

[common]
comment = CrownAg Regina
browseable = yes
path = /home/common/
valid users = +crownag-users
writeable = yes
force create mode = 0660
force directory mode = 0770

common has several departmental subdirs
unix permissions on the subdirs are as follows:

drwxrwsr-x 7 cngordon crownag-users 4.0K Mar 27 10:23 bin_tracker_backups
drwxrws--- 5 root board 4.0K Mar 26 17:14 board
drwxrws--- 7 root design 4.0K Mar 27 16:00 design
drwxrws--- 16 root crownag-users 4.0K Apr 4 13:42 general
drwxrws--- 3 root mgmt 4.0K Apr 4 13:39 management
drwxrws--- 13 root marketing 4.0K Mar 30 08:25 marketing
drwxr-x--- 16 root crownag-users 4.0K Mar 31 10:58 users

Using windows on a remote machine, If I make a new sub-dir under any of the
department subdirs on the Fedora Samba Server, or copy a file from another
machine to this share it is created with the correct permissions and group
ownership.
If I move a directory and files from one dept sub-dir on the common share to
another dept sub-dir it ignores my unix group sticky and retains the original
group ownership.

This is behaving differently than other samba servers I have previously set
up. How do I force the moved files and sub-dirs to adopt the group ownership
of the directory they are being mo0ved into?

testparm produces the following:

[root@fedora1 common]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[common]"
Processing section "[Fedora1-Backups]"
Processing section "[printers]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = CROWNAG
server string = Fedora1-Server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*success fully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
remote announce = 192.168.1.255
hosts allow = 192.168.1.

[common]
comment = CrownAg Regina
path = /home/common/
valid users = +crownag-users
read only = No
force create mode = 0660
force directory mode = 0770
--

Calvin Gordon
IT Administrator
Nu-Fab Burton LP
701 - 45th Street West
Saskatoon, Saskatchewan, Canada S7L 5W5
Tel: (306) 244-7119 Fax: (306) 244-0553
email: calvin.gordon@nufab.com
www.nufab.com www.burtoncabinets.com

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0