Bug 8760 - How to mount SMB file system from NT server automatically?
Summary: How to mount SMB file system from NT server automatically?
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: samba
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-01-23 08:05 UTC by Atanas Kolev
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-01-27 23:24:38 UTC

Attachments (Terms of Use)

Description Atanas Kolev 2000-01-23 08:05:17 UTC
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
/usr/bin/smbumount /home/$USER/H
/usr/bin/smbumount /home/$USER/G
/usr/bin/smbumount /home/$USER/P

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.

Comment 1 Bill Nottingham 2000-01-24 05:13:59 UTC
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.

Comment 2 Atanas Kolev 2000-01-24 08:51:59 UTC
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.

Comment 3 Atanas Kolev 2000-01-24 08:56:59 UTC
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.

Comment 4 Atanas Kolev 2000-01-27 12:49:59 UTC
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.

Comment 5 Bill Nottingham 2000-01-27 23:24:59 UTC
Oops, apologies for the slow response.

Samba-2.0.6 is in Raw Hide; you can get it from


Note You need to log in before you can comment on or make changes to this bug.