Statts, Pearce (IndSys, GEFanuc, NA)
2002-Jun-10 13:25 UTC
[Samba] Question about username maps in Samba
I'm hoping someone can suggest a solution for this interesting problem I've run across.... I work within a multi-Unix environment. We've got HP-UX, Solaris, Linux, and Tru64 (!) here. Because of this, some of our users have multiple logins, so that they can have multiple user environments for the product development scripts that they run. One of our Sun boxes serves as our Samba fileserver. One of our users is having trouble because he has two Unix logins, and Samba is only allowing access to directories that belong to one. I tried setting the username map to include aliases for both of his Unix accounts, but this was not successful in solving the problem. Basically, rather than mapping one Unix account to one or more NT accounts, I need the username map to be able to map one NT account to two Unix accounts, which is sort of the reverse of how the option currently works within Samba. Does anyone have any suggestions on a workaround for this problem? I've been brainstorming all day looking for a solution, possibly involving creating a custom group for this user, etc., but I haven't been able to come up with something that's simple and elegant, which is what I'd like. Any advice anyone wants to lend would be much appreciated. Thanks, Pearce Statts GE Fanuc Automation IT pearce.statts@gefanuc.com
Pearce.Statts@gefanuc.com said:> I work within a multi-Unix environment. We've got HP-UX, Solaris, > Linux, and Tru64 (!) here. Because of this, some of our users have > multiple logins, so that they can have multiple user environments for > the product development scripts that they run. One of our Sun boxes > serves as our Samba fileserver. One of our users is having trouble > because he has two Unix logins, and Samba is only allowing access to > directories that belong to one. I tried setting the username map to > include aliases for both of his Unix accounts, but this was not > successful in solving the problem. Basically, rather than mapping one > Unix account to one or more NT accounts, I need the username map to be > able to map one NT account to two Unix accounts, which is sort of the > reverse of how the option currently works within Samba.This sounds more like a "NFS between two machines with a user with 2 UIDs". Samba can't solve this. Change his UID on the Unix machines to match. The only way to get samba to "fix" your problem is to run a copy on each group of systems where he has a unique user ID. If I've misinterpreted the problem, let me know. -- Don Koch koch@cognex.com ---- Not speaking for Cognex Corporation.