Ticket #44 (closed defect: fixed)

Opened 12 months ago

Last modified 10 months ago

Home directories found in master.passwd cannot work with Samba

Reported by: guest Owned by: psmedley
Priority: major Milestone:
Component: Server Version:
Keywords: master.passwd Cc: herwig.bauernfeind@…
Blocking: Blocked By:

Description

The entry of the home directory found in the master.passwd file cannot be used by Samba successfully, because it is not possible to add a valid drive to master.passwd, as the ":" is the field delimiter in master.passwd and Samba on OS/2 is unable to switch to a directory without a drive.

Change History

Changed 10 months ago by lewisr

I'm surely no expert, but this ticket piqued my curiosity. Might it be possible to utilize an environment variable to stand in for the drive letter and base path, if not the drive letter and colon, as in $data_vol/users/fred as a workaround for this?

It seems to me that they must use something similar in Cygwin, as they have the same problem with drive letters as we have... In fact, http://www.linuxdriver.net/make3/make3-CHP-7-SECT-2.html#make3-CHP-7-TABLE-1 (et seq) illustrates Cygwin's approach to dealing with the drive letter problem.

Just some random thoughts, Paul.

Changed 10 months ago by lewisr

Can the kLIBC path rewriter help with this, or are we too far up the ladder (closer to the user and away from the code) in terms of the environment?

Changed 10 months ago by herwigb

The kLIBC PathRewriter? can be used to partly overcome this issue as Knut explained some time ago on the netlabs IRC channel. However, in this case the home directory still would have to be always on the same drive as %UNIXROOT% (if I remember correctly).

Changed 10 months ago by psmedley

My idea is to use a $ instead of a : for the drive seperator

ie instead of the home directory being specified in master.passwd as e:/users/psmedley - use e$/users/psmedley

Then, when samba reads the directory from the user database, it automagically changes the $ to a : and voila

I added some code to do this this evening - not checked in yet, but please feel free to try http://smedley.info/smbd.zip

Changed 10 months ago by psmedley

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.