* Marc Chamberlin <marc@marcchamberlin.com> [04-07-18 22:33]:
I wonder if some kind guru could explain this logic to me or direct me to an appropriate users group...
I have a mixed SOHO network in my home with both Linux and Windoz systems running on it. I use autofs to automount Windows folders on my Linux systems and for the most part I don't have any issues. But one thing that has been perplexing me is why I could not copy files from say my Linux laptop to my Windows system at the C:/Users/marc/Documents folder. (I automount C: using autofs under /mnt/samba/windowscomputername/C so I can have access to the entire drive from my laptop) What really perplexed me was that I could copy files to any subfolder under C:/Users/marc/Documents such as to C:/Users/marc/Documents/tmp/newfile. My instincts told me there had to be some sort of permission problem that I had to resolve on the Windows system. So I tried everything I could think of to relax the permissions so that anyone and everyone could access the Documents folder, but to no joy.
It finally occurred to me to try and take a look at it from the Linux side, so using Dolphin I examined the permissions of the Documents folder and sure enough Dolphin was reporting that I only had read permissions on the Documents folder. So on a lark I decided to try and change the permissions via Dolphin (chmod also behaved the same way) to give me read/write permissions and I will be damned if that didn't work! But I will be twitched if I can understand why in the world that worked and why I have to give myself permission to write to the Documents folder on a Windows system, from/on the Linux system side also! Shouldn't file permissions and access be strictly governed by the system that owns the files and folders? Why does a Linux system user have to give himself/herself permissions in order to write to files on a different system? This is effectively saying that in order to write to a file system on another computer I have to give myself permission to do so on BOTH systems! In other words, it wasn't Windows that was blocking me from writing to the Windows file system from my Linux laptop, it apparently was Linux itself! Is there some weird magic about Documents folders on Windows systems? Doesn't make any sense to me...
Just to be certain, I took a look at the folder permissions, under Windows, both before and after making the permission change on the Linux system, and I could not see any changes so this appears to be strictly a Linux side permissions issue...
I do not understand your mounting, but.... I use a cifs mount from linux to windows and can move files both ways: from fstab (one line): //192.168.1.14/C-Share/ /home/paka/cifs cifs credentials=/root/.smbcredentials,guest,nofail,_netdev,iocharset=utf8,sec=ntlmssp,uid=1000,gid=100,file_mode=0777,dir_mode=0777,vers=2.1 0 0 it has been a while but you must make the .smbcredentials file. I cobbled this all together googling. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org