We are making use of the NIS homedir functionality in our environment, but I've found something a little disturbing. The format of the map looks thusly: username server:/some/path I assume the path points to a user's home dir. Does Samba make use of the path at all, or is it in there just for compatibility with the Automounter? Secondly, in the DOMAIN.txt document, it states under "Configuration Instructions: Setting up Roaming User Profiles" that there is a problem "where Windows clients can maintain a connection to the [homes] share between logins. The [homes] share should must not therefore be used in a profile path". This is great and all, but why does Samba return a user's home share as \\server\homes rather than \\server\username ? I've made a small hack to password.c that makes the user's home share as \\server\username rather than \\server\homes (note that I'm far from being the world's greatest programmer): password.c: line 213: /* ROB strcpy(vuser->home_share,"\\\\%L\\HOMES"); */ strcpy(vuser->home_share,"\\\\%L\\"); strcpy(vuser->home_share,vuser->name); password.c: line 233: /* ROB strcat(vuser->home_share,"\\homes"); */ strcat(vuser->home_share,"\\"); strcat(vuser->home_share,vuser->name); -- Rob Naccarato "I know I'm a lot of feathers, Sys Admin but not much chicken." Sheridan College -KM Oakville, Ont. Canada
On Tue, 18 Nov 1997, Rob Naccarato wrote:> > We are making use of the NIS homedir functionality in our environment, but > I've found something a little disturbing. The format of the map looks > thusly: > > username server:/some/path > > I assume the path points to a user's home dir. Does Samba make use of > the path at all,no it doesn't.> or is it in there just for compatibility with the > Automounter?i don't know enough about NIS homedir functionality in order to be able to code it up properly myself, that's all...> Secondly, in the DOMAIN.txt document, it states under "Configuration > Instructions: Setting up Roaming User Profiles" that there is a problem > "where Windows clients can maintain a connection to the [homes] share > between logins. The [homes] share should must not therefore be used in a > profile path". > > This is great and all, but why does Samba return a user's home share as > \\server\homes rather than \\server\username ?i explained this in a posting yesterday, in the discussion with jerry.> I've made a small hack to password.c that makes the user's home share > as \\server\username rather than \\server\homes (note that I'm far > from being the world's greatest programmer):don't do this: it will break things when a user logs out and the second user logs in. amongst other things.> password.c: line 213: > /* ROB > strcpy(vuser->home_share,"\\\\%L\\HOMES"); > */ > strcpy(vuser->home_share,"\\\\%L\\"); > strcpy(vuser->home_share,vuser->name); > > password.c: line 233: > /* ROB > strcat(vuser->home_share,"\\homes"); > */ > strcat(vuser->home_share,"\\"); > strcat(vuser->home_share,vuser->name); > > -- > Rob Naccarato "I know I'm a lot of feathers, > Sys Admin but not much chicken." > Sheridan College -KM > Oakville, Ont. Canada > > ><a href="mailto:lkcl@switchboard.net" > Luke Kenneth Casson Leighton </a> <a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>
>> username server:/some/path >> >> I assume the path points to a user's home dir. Does Samba make use of >> the path at all, > >no it doesn't. > >> or is it in there just for compatibility with the >> Automounter? > >i don't know enough about NIS homedir functionality in order to be able >to code it up properly myself, that's all... >The map is not there for compatibility with the automounter, it is there for the automounter, period. The contents of the map simply specify the arguments for NFS mounting a users home directory from another NFS server. It's just sometimes quite useful for Samba clients to get userid and server information from this map so that they can connect to Samba (assumed to be running on the other NFS servers) directly rather than causing home directories to be NFS mounted and then re-exported via Samba by what may be intended to be just a logon server. I hope this makes things a little clearer... Simeon. ----------------------------------------------------------------------- Simeon Walker, email: simeon@sbs.bangor.ac.uk School of Biological Sciences, phone: +44 (0)1248 351151 x3702 University of Wales, Bangor, fax: +44 (0)1248 371644 Gwynedd, LL57 2UW, UK. www: http://oracle.bangor.ac.uk/sbs -----------------------------------------------------------------------
> Date: Mon, 17 Nov 1997 14:23:46 -0500 > From: Rob Naccarato <rob.naccarato@sheridanc.on.ca> > To: samba@samba.anu.edu.au > Subject: NIS homedir map and home share names > Message-ID: <199711171923.OAA03997@viking.sheridanc.on.ca> > > > We are making use of the NIS homedir functionality in our environment, but > I've found something a little disturbing. ... > > ... why does Samba return a user's home share as > \\server\homes rather than \\server\username ? > > I've made a small hack to password.c that makes the user's home share > as \\server\username rather than \\server\homes....I've made the same hack. It's cleaner, and seems to fix any "persistent connection" problems. - AM -