Samba login script

Hi,

I'm wondering if someone can help me. I've tried searching for my answer for a bit with no luck :frowning:

What I have done is setup SUSE as a PDC, able to get Windows client to connect to it fine no problems at all.

Thing where I'm getting lost is I want to create a login script for the users (Windows clients at the moment). I want to make it so when a user using a Windows client creates/saves something to the Windows "my Documents" section it will be saved on the server (Linux). But on Windows look like it normally would/

Any idea's how this can be done in the login script? I would prefer a link to some documentation or something as I'm learning a heap of good stuff when reading up on how to do one thing but learning a heap more :slight_smile: But if not an example would do.

Cheers
:slight_smile:

Samba provides functionality for this. I used to do this all the time, but I haven't touched it in a while. To start, take a look at this link that outlines the basic steps to the logon process.

Chapter*26.*System and Account Policies

You will need to create a [netlogon] section in your smb.conf. Also, take a look at the documentation for the following parameters. They will provide some of the functionality you need without the need for running a logon script.

logon script
logon home
logon path
logon drive

Also, with Windows NT4/200x/XP and probably Vista, you can create a ntconfig.pol group policy file. This is also outlined in the Samba documentation.

If you post your smb.conf file, someone can probably help with specifics.

I hope this helps. Good luck.

Hello,

The following link may have some of the answers you are looking for.

Chapter*27.*Desktop Profile Management

bforest

Can't you map their "My Documents" to be on your server's share? Another option would be Unison, and have Unison scheduled to sync, but that won't be instantaneous.

bwhitehd is correct. With samba you can set up "roaming profiles" for your domain clients. The samba documentation bwhitehd and bforest posted a links to will tell you how to do this. My documents wont be the only thing on the server though. There entire directory under Documents and Settings on XP and Users on Vista will be on the server. Users tend to enjoy this because their desktop and application settings follow them to different machines as well. Your client support personnel will love this because it is less time spent helping users set up email, office, etc.