LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   MS office files open in read only mode from samba share (https://www.linuxquestions.org/questions/linux-networking-3/ms-office-files-open-in-read-only-mode-from-samba-share-881172/)

Toushi 05-17-2011 06:06 AM

MS office files open in read only mode from samba share
 
Hello Experts!

I can not edit my own .ppt file from samba share. Current desktop OS is windows 7. Samba server having RHEL 5 with following samba packages installed.

Code:

libsmbclient0-3.5.6-43.el5
pam_smb-1.1.7-7.2.1
pam_smb-1.1.7-7.2.1

I can able to edit and save the file if I copy this file from samba to local system. But from Samba share it open in read only mode.

Could you please someone suggest on it.

Regards,
Toushi

corp769 05-17-2011 11:33 AM

Hello,

How exactly are you mounting your share, and what does your config file look like on the server? This definitely sounds like a permissions issue.

Cheers,

Josh

Toushi 05-18-2011 06:14 AM

Hello Josh!

Thanks for reply.

This definitely sounds like a permissions issue?
Following is file permission. This file is located in my home directory

#
Quote:

cd /home/toushi

-rw-r-x--- 1 toushi users 645120 May 16 18:25 Copy_V3_Analog_.ppt
I checked didn't found any file permission issue. If the same kind of file copy on other users home directory and change the permission and ownership accordingly.It work for that user he can edit and save the file.

How exactly are you mounting your share?
Ans:-From Windows7->Mycomputer->map network drive (GUI)


what does your config file look like on the server?
Ans:- About samba config file it work for other users except few users facing this kind of issue.

Kindly suggest on it.

corp769 05-18-2011 02:03 PM

Hmm, ok. Can you post your smb.conf then? And also, just to finally rule out file permissions, can you chmod that file to 666 temporarily and try it?

Thanks,

Josh

spidernik84 05-19-2011 02:45 AM

I had such a problem in the past, it had something to do with a "file-locking" option in samba (used to prevent editing from multiple users). Are you opening them with Office 2007?

Toushi 05-19-2011 10:55 AM

Hello!

Thanks for reply!

Can you post your smb.conf then?

Here is the samba config file details.

[global]
workgroup = exmaple
netbios name = %L
server string = %h
lanman auth = No
log file = /var/log/samba/%m.log
log level = 2
max log size = 50
; debug timestamp = Yes
# no printers icon:
disable spoolss = Yes
# no reference to CUPS in log files:
printcap name = /etc/printcap
# no printers in Samba:
load printers = No
min protocol = NP1
deadtime = 15
lm announce = No
dns proxy = No
invalid users = root, +wheel
guest ok = No
ldap suffix = ou=Samba,o=Services
ldap machine suffix = ou=Samba
ldap admin dn = cn=sambaAdmin,ou=users,o=services
ldap passwd sync = only
ldap timeout = 4
passdb backend = ldapsam:"ldap://edir-hb-1.example.uk.com ldap://edir-hb-2.example.uk.com "
encrypt passwords = Yes
security = user
# equivalent to example umask:
create mask = 640
directory mask = 750
posix locking = No
strict allocate = yes
ldap ssl = no
unix extensions = no
wide links = yes

[homes]
comment = Your Home
writeable = Yes
browseable = No

[home]
comment = Project directories
path = /home
writeable = Yes
browseable = Yes

something to do with a "file-locking" option in samba

I didn't find any file-locking option in samba config file. Could you please explain it in more detail? How to configuare it?

spidernik84 05-19-2011 11:39 AM

The first discussion I've found, possibly related to your problem
http://lists.samba.org/archive/samba...ay/148038.html


All times are GMT -5. The time now is 02:53 AM.