Hello, My boss claims that it is possible to set up a PC as a Samba client in such a way that every Windows user who logs in to that PC will automatically be connected to a certain designated Samba share, without the user himself having to map the network drive to the Samba share. That is, the boss claims that I, as the administrator of the PC, have the power to set up some kind of global mapping for all the PC users so that each user doesn't have to do the mapping himself. Is there any truth to this claim? I haven't found any mention of this feature in the Samba documentation. Thanks, Eric
Eric Evans escreveu:> Hello, > > My boss claims that it is possible to set up a PC as a Samba client in > such a way that every Windows user who logs in to that PC will > automatically be connected to a certain designated Samba share, > without the user himself having to map the network drive to the Samba > share. That is, the boss claims that I, as the administrator of the > PC, have the power to set up some kind of global mapping for all the > PC users so that each user doesn't have to do the mapping himself. Is > there any truth to this claim? I haven't found any mention of this > feature in the Samba documentation. > > Thanks, > Eric > >With any windows/samba network you can do that. Any .bat script including "net use" commands when executed on client maps drives that way. It can be included alone on the client in any place that permits to run programs after logon or using logon scripts with a PDC (that are meant to do that). Edmundo Valle Neto
very easy to do with netlogon, you will have to create either a script for each user, or a global script for all if everyone will have the same mapping. Eric Evans wrote:> Hello, > > My boss claims that it is possible to set up a PC as a Samba client in > such a way that every Windows user who logs in to that PC will > automatically be connected to a certain designated Samba share, > without the user himself having to map the network drive to the Samba > share. That is, the boss claims that I, as the administrator of the > PC, have the power to set up some kind of global mapping for all the > PC users so that each user doesn't have to do the mapping himself. Is > there any truth to this claim? I haven't found any mention of this > feature in the Samba documentation. > > Thanks, > Eric > >
Thanks for the info. I've been trying to get this to work but I'm having difficulty with it. I put the statement "logon script = startup.bat" in my [global] section. I also inserted [netlogon] path=/usr/local/samba/lib browseable = no share modes = no into the smb.conf. And I made a startup.bat which I placed in /usr/local/samba/lib, and which contains only the command "net use h: /homes". But when I log in to the PC, unfortunately it doesn't connect me to the homes share automatically like I thought it should. I checked the samba logs and I don't see any error messages there. Anybody have ideas about what I might be doing wrong? Thanks a lot, Eric>I use a 'startup.bat' file that runs at login... > >logon script = startup.bat > >is my config line in smb.conf > >then for my [netlogon] parameters I have > >[netlogon] >path = /opt/samba/netlogon >browseable = No >share modes = No > >and in the startup.bat file placed in /opt/samba/netlogon >I have: > >net use h: /home >net use y: /CSLAB >net use x: /Accts >net use g: /STAFF > >something like that.. > >--Huck > >Eric Evans wrote: >>Hello, >>My boss claims that it is possible to set up a PC as a Samba client in >>such a way that every Windows user who logs in to that PC will >>automatically be connected to a certain designated Samba share, without >>the user himself having to map the network drive to the Samba share. >>That is, the boss claims that I, as the administrator of the PC, have the >>power to set up some kind of global mapping for all the PC users so that >>each user doesn't have to do the mapping himself. Is there any truth to >>this claim? I haven't found any mention of this feature in the Samba >>documentation. >>Thanks, >>Eric >>
I have a basic question about this, because I think I still don't really understand how this method works. When you set up the netlogon parameters and your startup.bat script, all that stuff is on the server side, right? So when you log on to your PC, how does the PC know that it's supposed to contact the server and download the startup.bat file? It seems to me that somehow you have to have some way of telling the PC that it needs to contact the Samba server to get the bat file. Eric>With any windows/samba network you can do that. Any .bat script including >"net use" commands when executed on client maps drives that way. It can be >included alone on the client in any place that permits to run programs >after logon or using logon scripts with a PDC (that are meant to do that).
Hi Eric As I mentioned in my last email and as explained below, the use of login scripts in the netlogon share only work when the samba server is acting as a PDC and your clients are part of this domain. Windows clients then automatically look for the existence of the netlogon share and run the script mentioned in the smb.conf. The users home directory will be automatically mapped using the drive letter completed in the smb.conf. Other drives can then be added using net use or you can use kixtart which is a great scripting program which allows you to be more creative with your scripting. Stick with net use if its just basic mapping your after. If you do end up configuring your server as a PDC make sure you read the relevant samba how to guides so you fully understand the implications. I had lots of fun with roaming profiles which I ended up turning off! Sandy At 16:53 06/07/2006, Eric Evans wrote:>I have a basic question about this, because I think I still don't really understand how this method works. When you set up the netlogon parameters and your startup.bat script, all that stuff is on the server side, right? So when you log on to your PC, how does the PC know that it's supposed to contact the server and download the startup.bat file? It seems to me that somehow you have to have some way of telling the PC that it needs to contact the Samba server to get the bat file. > >Eric > >>With any windows/samba network you can do that. Any .bat script including "net use" commands when executed on client maps drives that way. It can be included alone on the client in any place that permits to run programs after logon or using logon scripts with a PDC (that are meant to do that). > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/listinfo/samba
Eric wrote:> My boss claims that it is possible to set up a PC as a Samba client in > such a way that every Windows user who logs in to that PC will > automatically be connected to a certain designated Samba share, > without the user himself having to map the network drive to the Samba > share. That is, the boss claims that I, as the administrator of the > PC, have the power to set up some kind of global mapping for all the > PC users so that each user doesn't have to do the mapping himself. Is > there any truth to this claim? I haven't found any mention of this > feature in the Samba documentation.In case the netlogon stuff did not pan out, here is another way: One simple way to do this is to set up a script in the All Users Startup folder (typically C:\Documents and Settings\All Users\Start Menu\Programs\Startup) which uses net use to map the drive. - Danilo