[Samba] Multi share point to the same drive letter

Toby Bluhm tkb at midwestinstruments.com
Mon Jan 22 15:13:42 GMT 2007


M Azer wrote:
> I have the same setup where all of my Dept shares under a parent share 
> for
> example
> finance, sales, IT are all under the shares folder and i have setup a one
> login script in the user profile to map to the parent share
> net use P: "\\samba\shares
> however if someone from the sales group log in he will see all 3 share 
> but
> will only be permitted to go in the sales share same works with the other
> group members. What I am trying to do is when the sales user log in I 
> only
> want the user to see the Sales folder 'share' only not the other two 
> shares.
> I have set the right permission on all shares where the each group own 
> the
> folder for example
> sales folder will be owned by the root and the group will be the sales 
> group
> sales rwxrwx000 root sales
> however when someone not a member of the sales group logon they still see
> the sales folder 'share'

Could use the ifmember.exe program in your netlogon.bat.

\\samba\bin\xptools\ifmember.exe "DOMAIN\Sales" > NUL
if errorlevel 1 net use P: \\samba\shares\sales


-- 

-Toby




More information about the samba mailing list