[plug] login script to samba server

John Usher (Maptek) John.Usher at perth.maptek.com.au
Mon May 3 15:55:13 WST 2004


echo > blank
net use j: \\storage\accounts < blank

should just fail if they aren't privileged, but prevent the hang on
waiting for a password...

-----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



More information about the plug mailing list