[plug] login script to samba server
Jon Miller
jlmiller at mmtnetworks.com.au
Thu May 6 21:21:37 WST 2004
Thanks John, will have a go in the morning.
Jon L. Miller, MCNE, CNS, ASE
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au
"I don't know the key to success, but the key to failure
is trying to please everybody." -Bill Cosby
>>> John.Usher at perth.maptek.com.au 3:56:10 pm 3/05/2004 >>>
of even better
echo | net use j: \\storage\accounts
seems to work too...
-----Original Message-----
From: Jon Miller [mailto:jlmiller at mmtnetworks.com.au]
Sent: Monday, 3 May 2004 4:15 PM
To: plug at plug.linux.org.au
Subject: [plug] login script to samba server
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.
logon.bat
net time \\devnull /set /y
net use h:\\storage\home
net use s: \\storage\shared
if member of "accounts" then
net use j:\\storage\accounts
end
of course the if statement doesn't work.
Does samba have a way of checking if the user that is logging in is a
member of a certain group.
Thanks
Jon L. Miller, MCNE, CNS, ASE
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au
"I don't know the key to success, but the key to failure
is trying to please everybody." -Bill Cosby
_______________________________________________
PLUG discussion list: plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
Committee e-mail: committee at plug.linux.org.au
More information about the plug
mailing list