Smbmnt Problems

Urban Widmark
2000-06-08T23:55:33Z

On Fri, 9 Jun 2000, Karthikeyan.K.V wrote:

> 1.Sometimes the smb mount gets dropped and i have to remount the shared
> drive again in Linux .

2.0.5a has known problems with this. And not even 2.0.7 gets it completely
right, this patch on top of 2.0.7 tries to fix one problem:

http://www.hojdpunkten.ac.se/054/samba/samba-2.0.7-smbmount-connection.patch

(but 2.0.7 is better than 2.0.5a even without that).

> 2.Iam not able to give the user rights to write on the shared drive,
because
> it lets only the root do it.

smbmount in 2.0.5a doesn't handle this. It's missing a few parameters
for
uid and gid.

> 3.This is the weirdest problem , i have seen,The files are stored in the
> mounted directory(shared folder in an NT server),when i keep on working
> suddenly all the files are not visible.When i type "ls -al" it
shows no
> files, but i can do cat "filename" and the file shows up.I know
the files

You should have an error message from smbfs in the kernel log (dmesg).
RH6.1 = linux 2.2.12 (?), unless you have upgraded it.


> Appreciate your inputs or any pointers or link to solve these problem.

Upgrade your kernel to 2.2.16, it should solve 3.

Upgrade samba to 2.0.7 it should solve 2 and make 1 happen less often. If
you decide to try my smbmount patch please let me know if it works for
you.

Note that smbmount has a different syntax in 2.0.7 vs 2.0.5 (but the good
news is that you don't need strange scripts to translate parameters).

/Urban