IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Windows drive mapping via Samba based on group membership
I've got a Samba 3 serving as the domain controller.
All users are defined in the OS.
Some users (accounting dept) need an additional drive
mapped on login. I can grant access in my smb.conf based
on the group membership.

My goal is for the login script to map the shares to drive
letter, and only attempting to map accounting people to
a particular drive.

Is this a Windows batch file? Right now I have a default
login batch file setup a couple of shares mapping to drives.
Is there a way to test for group membership in this and
map it? I recall doing this type of stuff on Novell but
that used Novel specific scripting commands.
New The way we did this in class
was to use a Win2K resource kit tool called [link|http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/ifmember-o.asp|IFMEMBER.EXE].

Then we put a logon script in the netlogon share that went something like this:

\nTITLE Domain Login script\n net time \\FS1 /set /y\n net use h: /home\n net use g: \\FS1\\apps\n\n :a\n %logonserver%\\netlogon\\ifmember "teachers"\n if not errorlevel 1 goto quit\n net use f: \\fs1\\teachers\n goto quit\n\n :quit\n


I haven't tried this with XP but you didn't mention what client OS you were using.

Tom Sinclair

"This is a lovely party," said the Bursar to a chair, "I wish I was here."
-- The Bursar is a man under a *lot* of stress
(Terry Pratchett, Lords and Ladies)
New Thanks
Clients are a mix of Win98, Win2K, and WinXP.
I'll find out tomorrow if it works.
New Re: Thanks

[link|http://ww.osnews.com/story.php?news_id=6684|Here's] the article where I pulled the info.

It looks like XP works okay.

Tom Sinclair

"This is a lovely party," said the Bursar to a chair, "I wish I was here."
-- The Bursar is a man under a *lot* of stress
(Terry Pratchett, Lords and Ladies)
New Didn't work on W98
I guess I should have researched/read more.

Does not matter though.

I mapped all the drive in the logon.bat, and they show up in the dir listings, BUT, the users not allowed in get permission denied when they attempt to access it.

Perfectly acceptable.

I just spent the day moving 50 workstations from a dual Win-NT (primary / backup domain / file / print ) server environment to a single linux (domain server, primary file) / single Win-2k (dedicated file - required by an application / printer server (too damn easy to give up as compared to Samba print config)).

I'll spend a bit more time on the print server side when I have some free time to learn about it.

I was wearing my Penguin Computing T-Shirt, the one where a giant Tux is stomping all over Redmond and saying "Good Evening Mr Gate. I'll be your server today". Seemed appropriate.

Hey Greg: Thanks for pushing me to learn about ACLs. Came in very handy today.
     Windows drive mapping via Samba based on group membership - (broomberg) - (4)
         The way we did this in class - (tjsinclair) - (3)
             Thanks - (broomberg) - (2)
                 Re: Thanks - (tjsinclair) - (1)
                     Didn't work on W98 - (broomberg)

Oh, freddled gruntbuggly! Thy micturations are unto me!
81 ms