Yet another samba problem. Linux <-> Linux permissions
OK, so let me explain a little about my set-up. I have a file server with 6 hard drives in it. Some of these drives are mounted and symlinked into a folder that is shared via samba. Now I had a problem with samba not following symbolic links so to fix that problem I had to disable unix extensions. (I found that solution here) Now though a new problem has manifested itself. I can mount and read anything I want, but when I try to copy a folder and it's contents to one of the shares I get a an error. The folder is created, but it won't create any of the item contained inside the folder. Once the initial error occurs I can then copy contents into the folder but not in a single operation. Here is what I get:
Code:
[macele@localhost ~]$ cp -r Desktop/testfolder/ /mnt/net/storage/250a/ Code:
drwxrwxrwx 1 root root 0 Dec 16 14:31 testfolder/ My smb.conf from the server: Code:
macele@serv:~$ cat /etc/samba/smb.conf I am mounting the filesystem with these parameters: Code:
//192.168.1.31/storage /mnt/net/storage cifs credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777, 0 0 smb log: Code:
macele@serv:~$ tail /var/log/samba/log.192.168.1.30 Thx Perhaps this should have gone into the Linux - Server board but I'm also kind of a newbie, so I just went with newbie. Sorry if this thread landed on the wrong board. |
Well I sort of solved my problem... more of a workaround really. Rather than use symlinks to the drives I wanted shared I simply dropped a --bind mount into the fstab. With unix extensions turned on symlinks are broken, but bind mounts are not. That allowed me to enable unix extensions which fixed the strange permissions problem I was having. However, my uids are too different to work without passing the "noperm" parameter to mount.cifs in the fstab.
I really wish I knew what was going on with that though... very strange. |
All times are GMT -5. The time now is 04:26 AM. |