I'm using samba since 3-4 weeks now and have some problems with the linux
smbfs. I already send a mail to one of the authors of smbfs but he could'nt
help because he's to busy right now. Maybe anyone of you ran into the same
- Server: Samba 1.9.17 running on Linux2.0.30 (same probs with 2.0.29
and Samba 1.9.16p11; (tested in various combinations))
- Client: Linux 2.0.30 with smbfs 2.0.2 (same prob with Linux 2.0.29)
If I try to make a textfile shorter (e.g. with editor joe) and save that
file with the original name, the filesize will still be that of the
original. The text is OK, but at the end of the file I'll get 0-characters
for every character I deleted. The problem can be reproduced with with the
following program. On my machine the resulting file has a size of 10, with 8
time charcter 0 in it.
When I use NT-Workstation 4.0 as a server, everything works fine!!!
int main ()
FILE* tf = fopen("MUSTERx", "w+b");
fprintf (tf, "0123456789");
tf = fopen("MUSTERx", "r+b");
ftruncate (tf->_fileno, 2); /* The truncation seems to make the
To work around this problem I made a little patch to smbfs. (I don't know ifQuote:}
it has any side-effects!) If anybody is interested I'll send it by email.
This one deals with access-rights. Assume the following scenario:
On the client side I'm
user: stoppok group: group1
On the server there's a file with the following access-rights:
rwxrwx--- SomeUser group1 FileName1
I'll now mount the samba-share, using group1 as the workgroup. The mounting
point has the following rights: file 0777 directory 0777
From my point of view everything should be OK but when I edit and save
"FileName1", I'll get "Permission denied". Currently I work around this
using "force user = stoppok" on all shares, but this is only a temporary
Any comments on this story?
Thanks in advance,
48155 Muenster voice: 0251/664695