8 replies
by randyarnold
You can do this. It will take some reading on your part. Look at the Samba documentation at http://us1.samba.org/samba/docs/
There is to much to enter here, but it is not that difficult in practice.
Randy
by roger
by rommel_abaya
by roger
by dwdino
WINBIND
Winbind is the answer, it is an integral part of the Samba package. I currently have the exact setup you have asked about. The only account on my Linux boxes are root and a few others for necessary local utilities.
When configuring samba make sure that the security is set to domain. The proper documentation, which you have already been pointed to, shows the proper steps to take. You will manual have to winbind authentication to your security configuration (simple 2-3 line mod).For demonstration: create a directory called winshare on you linux server. Inside of this directory place a folder for each user that matches their login name.
/winshare/joe.bloe
In smb.conf add something similiar to the following:
[joe.bloe]
comment = Joe Bloe's Share
valid users = domain\joe.bloe @domain\administrators
path = /winshare/joe.bloe
public = no
browseable = no
writable = yes
[isshare]
comment = I.S. Share
valid users = @domain\is
path = /winshare/is
public = no
browseable = no
writable = yes
Then for your login script you can use something like the following:
net use H: \\linuxserver\%username%
net user /domain %username% | search "is" > nul
if error level 1 goto next
net use S: \\linuxserver\isshare
next:
The first simply matches the username to the appropriate directory, the second checks for the users memborship in the "is" group and then maps the isshare if positive. I am not certain on the second part, have to get back to you with the full construct.
Good luck
by roger
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending