[Samba] Problem with 'homes' share
Michael Glenney
mikeg at simtone.net
Wed Mar 5 21:26:32 GMT 2008
I am using samba3 on centos5 and have a problem with the 'homes' share. I
have existing Linux home directories. When I access the samba server from
the windows terminal server (via \\servername) I see 2 shares, backup and
mikeg (my username). The mikeg share takes me to my Linux home directory so
all seems well. The problem I have is that any file I try to open opens
read only. I did a test with testdoc.doc which, after some delay, opens in
Word as read-only. Files saved and then opened from the 'backup' share work
fine. When I try to open an excel file, I get a message tha the file is
locked for editing by 'Microsoft Corporation' and I can open read-only,
notify or cancel.
Here is my conf file, the log entries from trying to open testdoc.doc and
the file permissions for my home directory and the testdoc.doc file:
[global]
workgroup = XDSINC
server string = xdsnas02
security = ads
; hosts allow = 192.168.1. 192.168.2. 127.
load printers = yes
; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups
cups options = raw
; guest account = pcguest
log file = /var/log/samba/%m.log
log level = 2
max log size = 50
password server = xdsdc02 xdsdc01
realm = XDSINC.CORP
; passdb backend = tdbsam
; include = /usr/local/samba/lib/smb.conf.%m
; interfaces = 192.168.12.2/24 192.168.13.2/24
; local master = no
; os level = 33
dns proxy = no
[homes]
comment = Home Directories
browseable = no
read only = no
writable = yes
create mask = 0600
director mask = 0700
[backup]
comment = Backup directory
path = /export/backup
valid users = mikeg
writeable = yes
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
The results of trying to open testdoc.doc from within Windows
[2008/03/05 13:00:47, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=No write=No (numopen=2)
[2008/03/05 13:00:47, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=1)
[2008/03/05 13:00:48, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=No write=No (numopen=2)
[2008/03/05 13:00:48, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=1)
[2008/03/05 13:00:49, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=Yes write=Yes (numopen=2)
[2008/03/05 13:01:21, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=1)
[2008/03/05 13:01:21, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=Yes write=No (numopen=2)
[2008/03/05 13:01:22, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=No write=No (numopen=3)
[2008/03/05 13:01:23, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=2)
[2008/03/05 13:01:29, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=1)
[2008/03/05 13:01:29, 2] smbd/open.c:open_file(352)
mikeg opened file testdoc.doc read=No write=No (numopen=2)
[2008/03/05 13:01:29, 2] smbd/close.c:close_normal_file(344)
mikeg closed file testdoc.doc (numopen=1)
The permissions on file and directory
[root at xdsnas02 mikeg]# ls -la
total 166364
drwxr-xr-x 15 mikeg users 4096 Mar 5 13:00 .
drwxr-xr-x 62 root root 4096 Jan 10 08:49 ..
drwxr-xr-x 2 mikeg users 4096 Mar 3 10:23 asdf
-rw------- 1 mikeg users 3802 Feb 27 11:06 .bash_history
-rwxr-xr-x 1 mikeg users 24 Jun 6 2006 .bash_logout
-rwxr-xr-x 1 mikeg users 191 Jun 6 2006 .bash_profile
-rwxr-xr-x 1 mikeg users 124 Jun 6 2006 .bashrc
drwx------ 2 mikeg users 4096 Jan 22 2007 Desktop
-rw------- 1 mikeg users 0 Jan 22 2007 .ICEauthority
drwxr-xr-x 4 mikeg users 4096 Jan 22 2007 .kde
drwx------ 3 mikeg users 4096 Jan 22 2007 .local
drwxr-xr-x 3 mikeg users 4096 Jan 22 2007 .mcop
-rw------- 1 mikeg users 31 Jan 22 2007 .mcoprc
drwx------ 2 mikeg users 4096 Mar 29 2007 .ncftp
drwxr-xr-x 2 mikeg users 4096 Jan 22 2007 .qt
drwxr-xr-x 2 mikeg users 4096 May 18 2007 .ssh
drwxr-xr-x 3 mikeg users 4096 May 18 2007 .subversion
-rwxrwxr-- 1 mikeg users 5 Mar 5 10:05 test
-rw-r--r-- 1 mikeg users 10752 Feb 26 15:48 testdoc.doc
drwxr-xr-x 2 mikeg users 4096 Mar 5 12:43 testfolder
-rw------- 1 mikeg users 0 Mar 5 12:47 test.txt
-rw------- 1 mikeg users 11776 Mar 5 12:43 test.xls
drwxr-xr-x 8 mikeg users 4096 May 18 2007 tools
-rw------- 1 mikeg users 2343 Mar 5 10:07 .viminfo
drwxr-xr-x 2 mikeg users 4096 Jan 22 2007 .vnc
-rw------- 1 mikeg users 70 Jan 22 2007 .Xauthority
-rwxr-xr-x 1 mikeg users 658 Jun 6 2006 .zshrc
Thanks,
MG
More information about the samba
mailing list