[Samba] how to set share folder for every user ?

Christian Walther cptsalek at gmail.com
Thu Feb 2 09:11:36 GMT 2006


This isn't a samba issue, what you're trying to accomplish is to mount
the shares automatically into the right place. You can either do this
graphically using the Windows-GUI, or from the command line. See the
help about the "net use" command.

An example would be: mount f: \\<server>\scan /user <username> /persistent

/persistent will reconnected to the share after a reboot.

This would require that you set up the mounts on all workstations. The
alternative is to setup a logon script that contains commands such as
the one above (without the /persistent because the logon script is
executed every time someone logs on).
FYI: There is a "special" share called HOMES available, if you set
this up. It is mapped to the unix users home directory automatically.
A proper netlogon.bat script for you would be:

net use f: \\server\scan
net use g: \\server\homes

See the Samba manual of how to set up a netlogon-script (it will
require another share) and more information about users home
directories (smb.conf.example is a nice place to start with).


More information about the samba mailing list