How to mount SMB file system from NT server automatically?
I am mounting SMB file systems from NT server when user enters the X
(KDE). It is arranged in .bash_profile in users home directory:
# Mount my Home&Group at NT Server
smbmount //ntescl2/ugv73$ H -U ugv73 -P mypassword
smbmount //ntescl2/05057$ G -U ugv73 -P mypassword
smbmount //ntmlnz4/Public$ P -U ugv73 -P mypassword
When user logs out from X session SMB file systems are unmounted.
It is arranged in .bash_logout in users home directory:
# Unmount my Home&Group at NT Server
It was working fine in Red Hat 5.2 , but when upgraded to 6.1 i discovered
that command smbmount was changed. Now it is not clear how to mount
automatically that file systems.
First, you'll need to make smbmount, smbumount setuid if
you want users mounts to work. Secondly, the
syntax for smbmount did change; you're probably
best off upgrading to samba-2.0.6, as samba-2.0.5
doesn't support mounting as a particular user, IIRC.
P.S. Sorry i forgot to mention i have changed smbmount/smbumount setuid.
I have to renew my question because it is not correct that samba 2.0.5 is not
supporting mounting as a particular user. It accepts -U option and the problem
is that it not accepts -P (password) option and NT server is asking for
password interactively that means automatically mounting in script
is not possible.
P.S. By the way - Where i can get samba 2.0.6 - it not appears to exists in Red
Hat 6.1 update ftp directory.
The problem resolved:
I installed samba 2.0.6 - resolves the problem. I got it from ftp.samba.org
and ever more - it is possible to write NT server+directory, mounting point and
all options (username, password,etc.) in /etc/fstab file and do mount/umount
like just another file system.
Oops, apologies for the slow response.
Samba-2.0.6 is in Raw Hide; you can get it from