[Samba] how to map shared folders when start user profile in XP

Daniel Müller mueller at tropenklinik.de
Tue Nov 16 04:00:25 MST 2010


Look at logon script = logon.bat
Substitute it with %u.bat (for Users, sometimes %U)
Substitute it with %g.bat (Primary Group for Users %u)
Now you need for every user or group  a batch file

Or you do the include syntax to pass over a different smb.conf

include = /path/to/your/smb.confs/smb.conf.(%m/%u/%g)

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von marcos gonzalez
Gesendet: Dienstag, 16. November 2010 11:35
An: samba at lists.samba.org
Betreff: Re: [Samba] how to map shared folders when start user profile in XP

Hi

Im searching examples to configure logon scripts for every user. If I
configure netlogon how this

[global]
 logon path = \\%N\profiles\%U
   logon drive = H:
   logon home =
   logon script = logon.bat
[netlogon]
#   comment = Network Logon Service
   path = /var/lib/samba/netlogon
#   admin users = root
#   guest ok = yes
   read only = yes
   browseable = no

Only I can use one script, but I prefer to use specific scripts for users
too. I don't know If I can.

Other problem is how to configure shared folders for groups of users.

Thanks

2010/11/16 Anil Wakhare <aswakhare at gmail.com>

> Hi,
> I am not getting ur question.can u explain it briefly.
>
> On Tue, Nov 16, 2010 at 1:08 PM, marcos gonzalez <
> marcos.gonzalez.cruz at gmail.com> wrote:
>
>> Hi
>>
>> yes, Im interested in a login script, but Im a newbie with this and I
>> don't
>> know where I can take examples. Inside samba documentacion there are no
>> the
>> sufficient complex examples and in my case Im interested to made a script
>> for every user.
>>
>> Suggestions?
>>
>> Thnaks
>>
>> 2010/11/15 Gaiseric Vandal <gaiseric.vandal at gmail.com>
>>
>> > Are you using a login script?  That should take care of mapping shared
>> > folders to drive letters.
>> >
>> > You can't use login scripts to setup printers.   If the printers are
>> > properly shared from a Windows server or Samba server users should be
>> able
>> > to easily locate them in "My Network Places."
>> >
>> >
>> >
>> > On 11/12/2010 06:33 AM, marcos gonzalez wrote:
>> >
>> >> Hi guys
>> >>
>> >> I have configured samba 3.3.2 in a domain with Xp clients and I would
>> like
>> >> to config inside clients the shared folders how units when users
>> starts,
>> >> and
>> >> the printers too. Im looking for this and the information is very
>> >> confused,
>> >> and I dont know which the fast option for users. Suggestions?
>> >>
>> >> Thanks
>> >>
>> >>
>> >
>> > --
>> > To unsubscribe from this list go to the following URL and read the
>> > instructions:  https://lists.samba.org/mailman/options/samba
>> >
>> --
>>
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>
>
> --
>
> -------------------------------------------
>
> Thanks & Regards.
> Anil S Wakhare.
> Pune 411027,Maharashtra,India
> Ph:-9763328839
>
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list