When connecting to remote shares (cifs in this case) via autofs, upon first access by Thunar to the share permissions are incorrect (no access to write). If you close Thunar and re-open it, the share access is now correct. Similarily, if you ls the share in a terminal window first then access from Thunar, then it also works properly.
Not fully convinced that its a Thunar issue, but its odd that closing and re-opening thunar causes the permissions to be read correctly.
I am closing this, not sure if this could be a thunar issue. Please retest with a current version and reopen if appropriate. Maybe a manual reload is an easier workaround now?
Sorry Harald, but the problem persists even with the latest version of Thunar from git.
I have autofs mounting with the ghost parameter (making directories visible even if not mounted) with this setting:
/media/gateway /etc/autofs/auto.gateway --timeout=60 --ghost
It seems, that if the automount happens from within Thunar (e.g. I navigate to the directory), then it seems that although Thunar recognizes that the mount happens and displays both the mount point in the side pane and the files in that directory, it doesn't properly account for the permissions (I don't have access to write to that directory. Restarting Thunar makes it re-analyze the permissions and gets them correct.
If, on the other hand, I automount the directory by cd'ing into it from a terminal window - then open Thunar and navigate there, Thunar properly reads the permissions.
This happens everytime the automount event is initiated by a directory view from within Thunar. I have the timeout set for 60, so after 60 seconds, autofs unmounts. If I navigate there from Thunar again (after the timeout and unmount), the same wrong permissions issue occurs.
Before mounting, the folder is:
dr-xr-xr-x 2 root root 0 May 15 22:29 shared
After mounting, it becomes:
drwsrws--- 5 toz toz 0 Sep 2 2014 shared
Manually reloading does not help. Only a close and re-open of Thunar helps. I also have Thunar daemon running:
toz 3231 3194 0 May15 tty1 00:00:02 Thunar --sm-client-id 2a0697c84-47b8-4f86-a342-86d1c8276002 --daemon
Note: everything works fine from a terminal window with respect to access rights.
If you open the folder in thunar the first time, the permissions are not correct. If you do not close that window but open another one from there (using <ctrl>-<n> or the menu), does that new window then show the correct permissions but the old one still the incorrect ones?
If I leave the original folder open and then open another thunar window, the incorrect permissions remain. It seems that only closing that first window and re-opening thunar fixes the inconsistency.
btw, I'm noticing this behaviour on both Thunar 1.6.6 (Xubuntu 15.04) and Thunar 1.6.8git-1ba30278 (Arch linux - built from git).
I can also "touch test" from a terminal window and the file will be created and Thunar will properly update to display this new file, but the permissions within Thunar don't change.
And this is interesting, while Thunar has the incorrect permissions, if I right-click on a file and go to the Permissions tab, it will show the correct permission (read & write) and when I close this dialog and return to Thunar, Thunar now allows me access (permissions have been corrected / re-read).