Hello everyone, I've been tasked with setting up several computer labs in a school with Ubuntu workstations. I have successfully joined those workstations to the windows domain and set it up so they authenticate to the windows domain as well. My problem is that I need to figure out how to have each user's home folder on the Ubuntu boxes map to the users home folder on the windows 2003 server. The share location of their home folders on the windows 2003 server is something like \\servername\docs$\students\%username%. I'm not even sure if I can map to a hidden share "$" in samba and also specify the %username% variable. Any help on this would be greatly appreciated. Kind regards, Elvar
Elvar wrote:> My problem is that I need to figure out how to have each user's home > folder on the Ubuntu boxes map to the users home folder on the windows > 2003 server. The share location of their home folders on the windows > 2003 server is something like \\servername\docs$\students\%username%. > I'm not even sure if I can map to a hidden share "$" in samba and also > specify the %username% variable.The simplest solution would be to simply mount \\servername\docs$ or possibly \\servername\docs$\students\ (From memory, you can't mount a directory under linux, only a share). You could then setup symlinks or change the home directory for the users. This would be much simpler than having a seperate mount for every user. If you really want to do it your way, it may be possible using a mixture of sudo, backticks (`) and the whoami command. I really don't see any benefit though. -- Michael
Elvar wrote:> > Hello everyone, > > > I've been tasked with setting up several computer labs in a school with > Ubuntu workstations. I have successfully joined those workstations to > the windows domain and set it up so they authenticate to the windows > domain as well. My problem is that I need to figure out how to have each > user's home folder on the Ubuntu boxes map to the users home folder on > the windows 2003 server. The share location of their home folders on the > windows 2003 server is something like > \\servername\docs$\students\%username%. I'm not even sure if I can map > to a hidden share "$" in samba and also specify the %username% variable. > > Any help on this would be greatly appreciated. > >Pam_smbmount is most likely what you are looking for: http://pam-smbmount.sourceforge.net/ Neal