LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-17-2011, 07:06 AM   #1
Toushi
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Rep: Reputation: 0
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
 
Old 05-17-2011, 12:33 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
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
 
Old 05-18-2011, 07:14 AM   #3
Toushi
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Original Poster
Rep: Reputation: 0
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.

Last edited by Toushi; 05-18-2011 at 07:34 AM.
 
Old 05-18-2011, 03:03 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
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
 
Old 05-19-2011, 03:45 AM   #5
spidernik84
LQ Newbie
 
Registered: Mar 2004
Distribution: Archlinux
Posts: 18

Rep: Reputation: 0
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?
 
Old 05-19-2011, 11:55 AM   #6
Toushi
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 05-19-2011, 12:39 PM   #7
spidernik84
LQ Newbie
 
Registered: Mar 2004
Distribution: Archlinux
Posts: 18

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Winword creates read only files on my Samba share eklum Linux - Server 2 10-15-2010 03:51 PM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 11:55 AM
Open Office wont load files from PC using SAMBA cleanriver Linux - Software 1 03-30-2008 08:40 PM
Problem accessing open office documents over samba share jonic Linux - Software 0 11-18-2005 11:46 AM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 12:33 PM


All times are GMT -5. The time now is 07:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration