Hello, For some time now I have thought that Samba was a piece of cake to setup and thought making it a PDC and WINS server to boot, would not be much harder. Haha, I am finding out I was very wrong. First question: Since logon.bat is being processed by a windows client machine that has no idea what to do with Samba variables, how do you avoid having to create a separate logon script for each user? To flesh this out bit, I am attempting to setup a very common set of shares, they are; 1) a personal share, /home/username 2) a group share, /home/samba/group 3) a public share, /home/samba/public. And my login script is very basic and looks like this: Net time \\sambahost /set /yes Net use h: \\sambahost\username <file:///\\sambahost\username> Net use g: \\sambahost\group <file:///\\sambahost\group> Net use p: \\sambahost\public <file:///\\sambahost\public> But there username varies as does the group name, so for now I have setup the netlogon share like this: [netlogon] Path = /home/samba/netlogon/u% Read only = yes Browseable = yes And in the /home/samba/netlogon directory, I have a directories for each user and a logon.bat. I'm sure there's a better way to do this, could someone help a guy out? Second question: When using roaming profiles, and I have a global parameter like this "profile home = \home\samba\profile" and I logon using an XP Pro PC, will the directory for my profile be created automagically or do I need to append u% to the "profile home" path parameter? I manually created a dir for my profile and after it had copied up I went to log back in and I got an error about my profile not being available and a new default profile was created on my workstation called username.000. Any idea what I did wrong that would have caused this? Thanks so much, Mike Partyka Stonepath Logistics Systems Administrator (651)405-4300 Desk (651)208-5734 Cell (651)405-4342 Fax
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Hello, >Hi> > > Since logon.bat is being processed by a windows client > machine that has no > idea what to do with Samba variables, how do you avoid having > to create a > separate logon script for each user? To flesh this out bit, I > am attempting > to setup a very common set of shares, they are; 1) a personal share, > /home/username 2) a group share, /home/samba/group 3) a public share, > /home/samba/public. And my login script is very basic and > looks like this: > > > > Net time \\sambahost /set /yes > > Net use h: \\sambahost\username <file:///\\sambahost\username> > > Net use g: \\sambahost\group <file:///\\sambahost\group> > > Net use p: \\sambahost\public <file:///\\sambahost\public> >You want something like this: net time \\sambahost /set /yes net use h: \\sambahost\homes net use g: \\sambahost\group net use p: \\sambahost\public> > But there username varies as does the group name, so for now > I have setup > the netlogon share like this: > > > [netlogon] > > Path = /home/samba/netlogon/u% >Change this back to path = /home/samba/netlogon as for the group share, create a share like: [group] comment = group share path = /home/groups/%G providing you have put users in to appropiate groups it should work.> > > And in the /home/samba/netlogon directory, I have a > directories for each > user and a logon.bat. I'm sure there's a better way to do this, could > someone help a guy out? >delete all the user directories and have a single login.bat file> > Second question: > > When using roaming profiles, and I have a global parameter like this > "profile home = \home\samba\profile" and I logon using an XPI can't say i've ever seen this parameter!!! You want this in your global section: logon path = \\sambahost\Profiles create a share called Profiles [Profiles] comment = profile share path = /home/profiles/%u you'll need to create the /home/profile directory and the user directories under it. Make sure they have the correct permissions for each user.> Thanks so much, > Mike PartykaThe majority of this is covered in the samba HOWTO collection. Cheers - ------------- Kristyan Osborne - IT Technician Longhill High School 01273 391672 / 304086 - ------ Computers are like airconditioners: They stop working properly if you open windows. Win95: A 32-bit patch for a 16-bit GUI shell running on top of an 8-bit operating system written for a 4-bit processor by a 2-bit company who cannot stand 1 bit of competition. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFB6mHOqrr+KdRYU5gRAsF7AJ999TBu+PROv2q6Jvl9O/r7hFZMNgCgtxa3 iVDorE8KhBqJ1rNSN/vYsDw=0e5d -----END PGP SIGNATURE-----