'urro. KISS rules apply with login scripts, unless you've got a large site and complexity creeps up on you!.
Something like: @echo off echo Login script V1.0 echo Setting Time net time \\server /set /yes echo Mapping Drives net use g: \\bill\data$ net use h: /HOME Will about do it for a small site.. put all of the 'group' shared data on the data$ share, and give each user their own 'personal' drive by the /HOME share functionality, which will mount their home directory using the 'homes' share from samba (\\server\<username>) If you've got security requirements for data on the group drive, do it with Linux directory permissions, not by creating seperate shares with the permissions, it just gets messy. Use group ownership, and setgid to make things stick.. This is assuming you're doing the backups using the Linux box, and not from a windows machine that doesn't do security objects. If that is the case, restoring a file may mess up your security. If you want to do some fancy stuff you can use prexec to generate dynamic logon scripts based on group membership etc. There are a few tools around for the job, some using nice XML configurations... Do a search for 'samba preexec script group' on google. Blah Blah Blah.. :-) Cheers, Chris H. ----- Original Message ----- From: "Andrew J Sands" <[EMAIL PROTECTED]> To: "CLUG" <[EMAIL PROTECTED]> Sent: Saturday, November 30, 2002 10:33 AM Subject: Anyone have some good logon scripts for SAMBA clients? > > I'm back..... > > For the "professional" site admins on the list, would it be possible for you > to share thoughts or ideas on SAMBA client logon scripts...what you use? > Helpful hints? Pitfalls...etc > > My site has sub-15 clients BUT reassigns workstations on an as available > fashion. They're mostly Windows98SE and I'm wanting to find a way to > centralise the document storage with the least amount of client confusion > cause most of my present problems are "PEBKAC" related!! > > Alternatively how dangerous is it to smbfs mount the drive in the client and > maybe rsync the contents. Thoughts, pitfalls, fables, religious quotes are > all welcome. > > AND yes I have tried 'googling' which I'm about to continue with... > > Andrew Sands >
