<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Nov 4, 2012 at 1:06 AM, Shlomo Solomon <span dir="ltr"><<a href="mailto:shlomo.solomon@gmail.com" target="_blank">shlomo.solomon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a partition on my computer defined as a share on Samba. A user<br>
on another machine can read and create files. Files are created as<br>
rw-r--r-- as intended. But even though the user can create a file, the<br>
new file can't be saved after editing/changing it.<br></blockquote><div><br>Without trying or testing anything I'd suggest checking a couple of things (that I am quite sure you know but they may be a bit obfuscated with samba):<br>
<br>1. Creating/deleting files is controlled by permissions on the containing directory, while modifying a file - by permissions on the file itself.<br> <br>2. There are two sets of permissions - and umasks - at work: those on the server and those on the mounting client. Check the ownership/permissions (see #1 above) on the server and then the mount options on the client, such as ro/rw,dom,cred,user,password,uid,gid,file_mode,dir_mode, et caetera.<br>
</div><br>I suggest reading the FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS section of "man mount.cifs" - it may provide hints, starting with<br><br> The core CIFS protocol does not provide unix ownership information or mode for files and<br>
directories. Because of this, files and directories will generally appear to be owned by<br> whatever values the uid= or gid= options are set, and will have permissions set to the default<br> file_mode and dir_mode for the mount. Attempting to change these values via chmod/chown will<br>
return success but have no effect.<br><br>and so on.<br><br>In my experience checking both sides *methodically* usually leads one to the cause of the problem.<br><br>Sorry, can't think of anything more specific at the moment.<br>
<br></div>-- <br>Oleg Goldshmidt | <a href="mailto:pub@goldshmidt.org" target="_blank">pub@goldshmidt.org</a><br>
</div>