[Samba] File Creation Error on an SMB Volume

Toby Schaefer toby-list at mail.nixa.k12.mo.us
Mon Nov 29 16:45:25 GMT 2004



-----Original Message-----
From: samba-bounces+toby-list=mail.nixa.k12.mo.us at lists.samba.org
[mailto:samba-bounces+toby-list=mail.nixa.k12.mo.us at lists.samba.org] On
Behalf Of Matthias Heckmann
Sent: Wednesday, November 24, 2004 10:44 AM
To: 'samba at lists.samba.org'
Subject: [Samba] File Creation Error on an SMB Volume

Hi folks,
My SMB server is a Helios Ethershare 3.1 on a Tru64 Alpha machine.
We are now integrating more and more gentoo-Linux Servers. These are the
SMB Clients. 

On Obelix (one of our gentoo-Servers) I can mount the SMB Volume from the
Ethershare Server.
obelix nc4smb # whoami
root
obelix # mount -t smbfs -o username=m.heckmann //192.9.100.32/MIB_Pat_01
/mnt/nc4smb

i can also:
obelix # cd /mnt/nc4smb
obelix nc4smb # ls -al
total 44
drwxr-xr-x  1 root root  4096 Nov 23 10:20 .
drwxr-xr-x  5 root root   144 Nov 23 10:19 ..
-rwxr--r--  1 root root 20183 Oct  6 14:32 excuses
-rwxr--r--  1 root root  5011 Apr 15  2002 java.jpg
drwxr-xr-x  1 root root  4096 Nov 23 10:32 layouts
-rwxr--r--  1 root root    99 Nov 23  2004 todo.txt
-rwxr--r--  1 root root 10560 Nov 16  2001 tomcatlogo.jpg
obelix nc4smb # cat todo.txt
TODO
====
- hover the garden
- make sandwich
- brush my teeth
- kidnap my neighbours dog

obelix nc4smb # echo "- grease my bikes chain" >> todo.txt 
obelix nc4smb # cat todo.txt 
TODO
====
- hover the garden
- make sandwich
- brush my teeth
- kidnap my neighbours dog
- grease my bikes chainobelix nc4smb # 

but:
obelix nc4smb # echo "i want to create a file" > new.txt
-bash: new.txt: Input/output error

also: 
obelix nc4smb # cp /tmp/cptofile.txt /mnt/nc4smb/
cp: cannot create regular file `/mnt/nc4smb/cptofile.txt': Input/output
error


So you see the problem. 
Can mount, can read can write to an existing file.
But _Cant_ create a file.
By the way: On the Helios Ethershare Server i did:
chmod -R 777 /data/MIB_Pat_01 (which is the smb share)
but the ls -al on obelix shows "-rwxr--r--"

further Infos:
obelix nc4smb # uname -a 
Linux obelix 2.6.9-gentoo-r1 #1 SMP Wed Nov 3 15:27:32 CET 2004 i686
Intel(R) Xeon(TM) CPU 3.06GHz GenuineIntel GNU/Linux

obelix nc4smb # smbstatus 
Samba version 3.0.7

obelix nc4smb # cat /etc/samba/smb.conf
[global]
workgroup = ncag 
server string = ""
show add printer wizard = no
local master = no
domain master = no
preferred master = no
os level = 0

[just_a_few_shares]
.
.
.
.
 

My Windoze has no problem with this share, everything works fine.
Tell me what additional infos you need to get along the problem.
I have everything. Debug outputs, ethereal caps (window$ connect,create.
successing. / linux mount,create. failing. ).
 
Thanks for your help, in advance.
I would really welcome a solution for this.
It is a crucial criterion for the future of LiNUX in our company. ;-)
 
Matthias Heckmann

 
-------------------------
Matthias Heckmann
Systemadministrator
n c ag 
In der Luberzen 25 
8902 Urdorf 
-------------------------
t:        +41 1 735 38 38 
t dir:    +41 1 735 38 10  
-------------------------
Web:          www.ncag.ch 
E-mail:m.heckmann at ncag.ch 
-------------------------
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

--------

Unfortunetely, I can not say that I have found the solution to this problem
yet, but I can say that I am experiencing it over multiple samba versions
(including RPMs) on Tao Linux 1.0u3 (RHEL3 clone). I'd add more information,
but Mr. Heckmann did a very through job of explaining the problem in detail.
I am currently having the problem with samba-3.0.7-1.3E.1; however, it has
happened for 3 or 4 RPM updates (and reinstalls) as well as custom compiled
versions as well... All the exact same problems.  Any help would be
appreciated!

Toby Schaefer




More information about the samba mailing list