I have an Xubuntu 14.04 installation, and a small server (Slackware) running samba. I've also got several Arch installs. The problem I'm seeing is only happening with Xubuntu, which is causing me more than a little confusion.
I need to be able to mount a Samba share from the command line for use in a backup script. Using the following:
Code:
sudo mount -t cifs //server/files /mnt/smb -o user=xxx,passwd=xxx
The share is set up as below:
Code:
[Samba]
path = /var/smb/samba/
read only = no
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
The mount command completes without problems. However, any attempt to copy files to the mount fails. I don't see the same problem when I mount the share from Arch.
I tried an alternate version of the mount command:
Code:
sudo mount -t cifs //server/files /mnt/smb -o user=xxx,passwd=yyy,uid=1006,gid=100
With that variant of the mount command, I can copy files to the share:
Code:
ubunt@altair:/home/fang/Documents$ cp The_World_Turned_Upside_Down.prc /mnt/smb
ubunt@altair:/home/fang/Documents$ cp Worlds.mobi /mnt/smb
However, I have another problem:
Code:
ubunt@altair:/home/fang/Documents$ touch /mnt/smb/testing
touch: cannot touch ‘/mnt/smb/testing’: Permission denied
My backup script uses rsync to copy Windows files to the share, and uses a small open source backup package (synbak) to create a gzipped tar of Linux files. Both of these operations fail, though in each instance, a zero-length file is created on the share (as is the case with using touch in the command above, even though I'm seeing permission denied errors).
I can't reproduce the problem under Arch Linux, so I'm more than a little puzzled. Any ideas how to solve this?
Paul.