[Samba] net drive mapping not working in login script
Craig White
craigwhite at azapple.com
Thu Apr 6 18:13:28 GMT 2006
On Thu, 2006-04-06 at 09:51 -0700, Mont Rothstein wrote:
> Do your user's home directories already exist? Then need to. Samba does
> not by defult auto-create them.
>
> If you want to auto-create them options include:
> 1) A preexec in the [homes] section
----
shouldn't be necessary
----
> 2) Create them as part of the add user script
----
shouldn't be necessary
----
> 3) Use pam_mkhomedir
----
shouldn't be necessary
Samba documentation covers this very clearly. A reference to the
documentation would probably be better than the above advice.
see Samba 3 Official HowTo
http://www.samba.org/samba/docs
FWIW - I see neither a [homes] or [profiles] share in your setup and I
didn't see mention of the fact that you have 'joined' the Windows
computers to the domains.
Craig
----
>
> -Mont
>
>
> On 4/6/06, Chris Boyd <Chris.Boyd at usit.ie> wrote:
> >
> > I've set the path for each user in pdbedit and created a login script with
> > drive mapping etc etc
> > The network drives aren't being mapped when I login each user:
> > smb.conf
> > [global]
> > printcap name = cups
> > cups options = raw
> > map to guest = Bad User
> > # include = /etc/samba/dhcp.conf
> > logon path = \\%L\profiles\.msprofile
> > logon home = \\%L\%U\.9xprofile
> > logon drive = P:
> >
> >
> > [protel]
> > comment = Protel Data Folder
> > path = /protel
> > # drive = K:
> > read only = no
> > [netlogon]
> > comment = Network Logon Service
> > path = /var/lib/samba/netlogon
> > write list = root
> > admin users = root
> > guest ok = Yes
> > browseable = No
> >
> > pdbedit -L -v
> >
> > Unix username: aillin
> > NT username:
> > Account Flags: [U ]
> > User SID: S-1-5-21-1439502771-4027299746-1242570080-3004
> > Primary Group SID: S-1-5-21-1439502771-4027299746-1242570080-513
> > Full Name: aillin
> > Home Directory: \\ucd01\aillin\.9xprofile
> > HomeDir Drive: P:
> > Logon Script: \\ucd01\netlogon\aillin.bat
> > Profile Path: \\ucd01\profiles\.msprofile
> > Domain: UCD
> > Account desc:
> > Workstations:
> >
> > vim /vavr/lib/samba/netlogon/aillin.bat
> >
> > echo Setting Current Time...
> > net time UCD01 /set /yes
> >
> > echo Mapping Network Drives to StressFree File Server UCD01...
> > net use k: UCD01protel
> > net use s: UCD01share
> > #net use t: EXAMPLESERVERtemp
> >
> >
> >
> > Chris Boyd
> > Systems Engineer
> > USIT
> > 19-21 Aston Quay
> > Dublin 2
> > Ireland
> >
> > Tel: +353 1 6021670
> > Fax: +353 1 6771602
> > www.usit.ie
> >
> > -----------------------------------------------------------------
> > This email message is intended only for the addressee(s)
> > and contains information that may be confidential and/or
> > copyrighted. If you are not the intended recipient please
> > notify the sender by reply email and immediately delete
> > this email. Use, disclosure or reproduction of this email
> > by anyone other than the intended recipient(s) is strictly
> > prohibited. USIT has scanned this email for viruses and
> > dangerous content and believes it to be clean. However,
> > virus scanning is ultimately the responsibility of the recipient.
> > -----------------------------------------------------------------
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/listinfo/samba
> >
More information about the samba
mailing list