I have a problem editing files in a samba share, this share is accessed from a Windows xp and a Linux client, when I open a Word Document from windows there is no problem, but when I try to edit the same file from the linux pc with writer, it opens the file in read mode, I have checked the file permissions from the linux client and all the fields are blank, but if I copy the file to the local drive I can edit it, this is a openSUSE 11.2 box.
This is how I created the folder containing the files in the Linux server (openSUSE 11.2), this server is setup as a PDC using LDAP as backend
mkdir /datos
chmod 2775 /datos
This is the share in the smb.conf
[archivos1]
path = /home/easgs/datos
comment = datos varios
guest ok = No
inherit acls = Yes
valid users = @ntusers
write list = @ntusers
force create mode = 0660
force directory mode = 0770
force group = ntusers
This is the command I have used:
mount -t cifs -o username=amartinez //192.168.0.2/archivos1 /home/SIENIC/amartinez/recurso2
these are the permissions of the folder before mount command
drwxrws— 3 SIENIC\amartinez SIENIC\domain users 4096 nov 17 09:58 prueba2
these are the permissions of the folder after mount command
drwsrwsr-x 3 adolfo BUILTIN\administrators 0 nov 17 15:05 recurso2
this is why the share is read only, the current user is the domain user “amartinez”, adolfo is a local user, this machine is part of a DOMAIN, the PDC is a openSUSE 11.2 domain controller
how can I mount this share as a read/write share for the domain users logged in the current workstation?
Note: If I run chmod 777 recurso2 I am able to edit the files, but this is not a secure solution, the optimal solution would be to mount the share as:
drwxrws— 3 SIENIC\amartinez SIENIC\domain users 4096 nov 17 09:58 prueba2