Configure Samba for Folder Redirection

I have Samba configured to authenticate with AD, and create a direcotry for a user upon successful authentication with the Samab server.

Problem is, when I try to get Win2k3 folder redirection to go here, the Windows server wants \\server\share\user not \\server\user-as-share as the format.

How do I fix this?

The screenshot below is of the Windows server. The name of the NAS is vlnas, and it lives at UNC path \\vlnas.

When you log into the NAS via Windows Explorer, you can see \\VLNAS\${your-user-name}, but the Windows Server apparently wants \\VLNAS\SomeShare\ as the root, so that it can put ${your-user-name} at the end.
   workgroup = MYAD
   preferred master = no
   server string = Samba Server %v
   security = ADS
   encrypt passwords = yes
   log level = 3
   log file = /var/log/samba/%m
   max log size = 50
   printcap name = cups
   printing = cups
   winbind enum users = Yes
   winbind enum groups = Yes
   winbind use default domain = Yes
   winbind nested groups = Yes
   winbind separator = +
   idmap uid = 600-20000
   idmap gid = 600-20000
   obey pam restrictions = Yes
   template homedir = /home/%D/%U
   template shell = /bin/bash
   comment = Home Direcotries
   ;valid users = %S
   ;read only = No
   writable = Yes
   browseable = No
   comment = All Printers
   path = /var/spool/cups
   browseable = no
   printable = yes
   guest ok = yes
   comment = Public Directory
   path = /home/shares
   writable = yes
   browseable = yes

Open in new window

LVL 32
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel McAllisterPresident, IT4SOHO, LLCCommented:
Hmmmm.... the solution may lie in the NAS server... is the newly created folder located within a common folder? If so, simply make that folder a share in and of itself... then your pathing from the Windows system will work perfectly.

For example, if the NAS device is configured to create the folder under /home/users/, create a share that points to /home/users.... for grins, I'll call it USERS. Then, when Windows wants to go to the new folder, it can go to \\VLNAS\USERS\.

The issue here is that your NAS is making it easy to create available shares... Windows doesn't like for there to be a lot of shares, and would prefer that you have one share with limited access folders under it.

With this approach, you mollify Windows without screwing with the NAS server's designed implementation!

Good luck!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DrDamnitAuthor Commented:
Good thought, but Samba doesn't support it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.