Mount a Window Shared disk on Linux

Urban Widmark urban at
Wed Nov 1 07:53:43 GMT 2000

On Tue, 31 Oct 2000, Jean-Claude MEILLAND wrote:

> Hello,
> I would like to know how to automatically mount at boot time a windows
> shared disk on linux. Moreover I would like samba to identify users on
> windows share using the login and passwd that the user specified when he
> logged himself on Linux.

Automatic mounting can be done in a few different ways
+ put an entry in /etc/fstab
+ autofs
+ add a 'mount -t smbfs ...' command to /etc/rc.d/rc.local or similar

The second question is more difficult. I don't know of anything that is
old/reliable/well-tested/finished/works/... I do know that a few people
have thought about similar things, it usually involves pam. I don't have
any good links around.

(The most recently mentioned award goes to 'pam_winbind'. Rumors have it
 that smbmount needs modifications to be able to take advantage of it. I
 haven't looked at it myself yet.)

Failing to find a completely automatic solution, it is possible to use
autofs to hide the passwords in a root read-only file. But you have the
administration of keeping the autofs "maps" sync'ed.


More information about the samba mailing list