<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [plug] login script to samba server</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I thought the login script executed on the client, rather than the server?</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Jon Miller [<A HREF="mailto:jlmiller@mmtnetworks.com.au">mailto:jlmiller@mmtnetworks.com.au</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, 3 May 2004 16:15</FONT>
<BR><FONT SIZE=2>To: plug@plug.linux.org.au</FONT>
<BR><FONT SIZE=2>Subject: [plug] login script to samba server</FONT>
</P>
<BR>
<P><FONT SIZE=2>Need to create a login script for Windows 2000 desktops, one of the lines in the script needs to check for membership to a certain group. What we've found is that as the user login the script stops because they do not have access to the share.</FONT></P>
<P><FONT SIZE=2>logon.bat</FONT>
</P>
<P><FONT SIZE=2>net time \\devnull /set /y</FONT>
<BR><FONT SIZE=2>net use h:\\storage\home</FONT>
<BR><FONT SIZE=2>net use s: \\storage\shared</FONT>
<BR><FONT SIZE=2>if member of "accounts" then</FONT>
<BR><FONT SIZE=2>net use j:\\storage\accounts</FONT>
<BR><FONT SIZE=2>end</FONT>
</P>
<P><FONT SIZE=2>of course the if statement doesn't work.</FONT>
</P>
<P><FONT SIZE=2>Does samba have a way of checking if the user that is logging in is a member of a certain group.</FONT>
</P>
<BR>
<P><FONT SIZE=2>Thanks</FONT>
</P>
<P><FONT SIZE=2>Jon L. Miller, MCNE, CNS, ASE</FONT>
<BR><FONT SIZE=2>Director/Sr Systems Consultant</FONT>
<BR><FONT SIZE=2>MMT Networks Pty Ltd</FONT>
<BR><FONT SIZE=2><A HREF="http://www.mmtnetworks.com.au" TARGET="_blank">http://www.mmtnetworks.com.au</A></FONT>
</P>
<P><FONT SIZE=2>"I don't know the key to success, but the key to failure</FONT>
<BR><FONT SIZE=2> is trying to please everybody." -Bill Cosby</FONT>
</P>
</BODY>
</HTML>