LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2016, 08:04 AM   #1
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 119

Rep: Reputation: 25
Peculiar samba problem with Xubuntu


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.
 
Old 06-03-2016, 06:44 PM   #2
Upuetz
Member
 
Registered: May 2016
Location: Aachen
Distribution: Debian, CentOS, Ubuntu, Raspian, tinycore
Posts: 59

Rep: Reputation: Disabled
Hi,
some hardcore programs maybe help:
strace touch /mnt/smb/testing
Maybe there are extended attributes?
getfacl /mnt/smb

HTH,
Upuetz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Peculiar and weird problem in C anis_huq Programming 4 06-26-2011 11:27 PM
Booting from CD: Peculiar Problem JmaJeremy Linux - Laptop and Netbook 7 12-07-2009 11:21 PM
A peculiar C + script problem montylee Programming 6 08-13-2008 11:03 AM
peculiar problem with samba share chhatrashal Linux - Software 1 01-09-2007 04:51 AM
Problem using Samba SWAT on Xubuntu 6.06 drosen Linux - Networking 3 08-25-2006 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration