[Samba] Auto mapping to windows home drives?
John H Terpstra
jht at samba.org
Tue Feb 10 17:42:00 GMT 2004
On Tue, 10 Feb 2004, Ganguly, Sapan wrote:
>
> This could be quite simple but I don't know how to do it.
>
> Does anyone know how I can automatically mount a users home drive (which is
> located on a windows server) when they log in? Is there a pam module for
> that?
Have you read the Samba-HOWTO-Collection.pdf? I am sure I documented this.
:)
There are three ways by which you can automap a network drive connection:
1) Through the User Profile information in passwd backend.
frodo:~ # pdbedit -Lv jht
Unix username: jht
NT username:
Account Flags: [UX ]
User SID: S-1-5-21-1593769616-160655940-3590153233-2000
Primary Group SID: S-1-5-21-1593769616-160655940-3590153233-512
Full Name: John H Terpstra
Home Directory: \\frodo\jht
HomeDir Drive: H:
Logon Script: scripts\logon.bat
Profile Path: \\frodo\Profiles\jht
Domain: MIDEARTH
Account desc: Master Sleuth and Watchmaker
Workstations:
Munged dial:
Logon time: 0
Logoff time: Mon, 18 Jan 2038 20:14:07 GMT
Kickoff time: Sat, 02 Jan 2038 00:00:00 GMT
Password last set: Sat, 16 Aug 2003 22:57:25 GMT
Password can change: Sat, 16 Aug 2003 22:57:25 GMT
Password must change: Mon, 18 Jan 2038 20:14:07 GMT
See above the "Home Directory" and "HomeDir Drive" entries.
2) By storing persistent drive connections as part of the users' desktop
profile in their roaming profile.
3) Through a network logon script. The command that would do this for the
home directory is:
net use H: /home
- John T.
--
John H Terpstra
Email: jht at samba.org
More information about the samba
mailing list