[Samba] file permission problem
I have Samba 2.2.1a installed on RedHat 7.2, using RedHat's rev 4 RPMs (samba-common, samba-client, samba, and samba-swat 2.2.1a-4). I have the PDC part working. But there is one file share giving me problems. I have a folder, /export0, which I want all the domain users to be able to use. I have a group, unboundtech, which all the domain users are a member of. The /export0 is owned by root:unboundtech, with mode 775. The folders under this one which they can write to are the same (group is unboundtech, mode is 775). Users can create files/folders, but they can't change the permissions on them (for example, to let other people modify them). In some cases, I also want to have folders in /export0 which are owned by another group which is a subset of the domain users. I'm having the same problems here. I create a folder owned by the group in question, and group writeable. Members of the group can write folders to it (I haven't checked if non-group members can), but they can't change the permissions. Can services be subpaths of existing services? like [/some/folder] . [/some/folder/beneath] . That way I could maybe force a particular group ownership for different sub trees. -- Justin Georgeson UnBound Technologies, Inc. http://www.unboundtech.com Main 713.329.9330 Fax713.460.4051 Mobile 512.789.1962 5295 Hollister Road Houston, TX 77040 Real Applications using Real Wireless Intelligence(tm) # Samba config file created using SWAT # from localhost.localdomain (127.0.0.1) # Date: 2002/10/01 10:04:25 # Global parameters [global] workgroup = UNBOUNDTECH netbios name = MOLEHILL server string = Domain controller interfaces = eth1 192.168.1.0/24 localhost bind interfaces only = Yes encrypt passwords = Yes passwd program = /usr/bin/passwd 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 domain admin group = root sysadm @domainadmin add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon path = \\%N\profiles\%U logon drive = Z: domain logons = Yes os level = 33 preferred master = True domain master = True wins support = Yes [profiles] comment = Windows Home Directories path = /home/profiles read only = No create mask = 0775 [export0] path = /export0 write list = @unboundtech read only = No create mask = 0775 directory mask = 0775 [netlogon] path = /usr/share/samba/netlogon write list = administrator browseable = No
[Samba] File permission problem -> oplock?
Hi all, I have a problem with the file permissions on our Samba server (Version 2.2.8) with a program that we're using. This program want's to save some configuration into the homedirectory of it's user. The problem is that this program is opening this file read only, so it can't save the configuration. [2003/06/05 11:51:14, 2] smbd/open.c:open_file(246) an opened file .rtdpricing read=Yes write=No (numopen=2) [2003/06/05 11:51:14, 2] smbd/close.c:close_normal_file(229) an closed file .rtdpricing (numopen=1) If you're opening this file manually with edit it is working fine. [2003/06/05 11:49:46, 2] smbd/open.c:open_file(246) an opened file .rtdpricing read=Yes write=Yes (numopen=2) [2003/06/05 11:49:46, 2] smbd/close.c:close_normal_file(229) an closed file .rtdpricing (numopen=1) Is there any way to force Samba to open this file read and write able? I tried to disable oplocks, but this didn't work. Thanks, Nils -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] File Permission Problem Saving Word Doc to Samba Share
This is not a critical problem, but it would be nice to have a resolution so that we can better organize how our company creates and stores Word documents. File Server and Intranet System: OS: (old!) probably Redhat 5.0 (2.0.32 kernal) Samba: (old!) vers. 1.9.17 Apache: (old!) 1.2.4 Problem: Word in Office 2000 on Win98 box gets "file permission" error when trying to save to samba share. System works just fine in a small office environment, and has done so for several years. Machine is not exposed to the Internet so little risk of hacker intrusions, etc. I would rather not upgrade if I don't have to. Problem detail: When user on win98 box opens a Word .doc within Internet Explorer (.doc file is in a samba shared directory on the file server), Word loads and opens the file successfully. Clicking "Save" after making changes to the file results in the file permission error. If however user clicks "Back" a dialog box comes asking if user wants to save the file. If user clicks to save the changes, the changes are saved successfully without invoking the file permission error. I noticed that if user tries to save by clicking the "Save" button Word writes a *.tmp file to the samba shared directory, and these .tmp files accumulate each time an unsuccessful save occurs. If however the user just clicks "Back" and saves using the dialog, no *.tmp files accumulate. Seems that this problem has something to do with the creation of .tmp files and the inability of Word to delete them. I forced create mode on the samba share, and I forced apache's user and group (nobody) on the share, viz. [TestWord] comment = DRIVE T: path = /home/httpd/intranet/Local/TestWord public = yes read only = yes browseable = yes writable = yes printable = no write list = conrad,nobody create mode = 0666 force group = nobody force user = nobody force create mode = 0666 Can anyone suggest what might be wrong and how it can be fixed? Conrad Richter -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba