The point here is that SMB PAM module only allow users with entry
in /etc/passwd to be added to /var/smb/smbpasswd but in higher
levels like MS-RPC library where we use APIs like getpwuid there's
no guarantee that we get the intended translation from /etc/passwd

Afshin

Jordan Brown wrote:
Afshin Salek wrote:
Jordan Brown wrote:
/var/smb/passwd currently has both username and uid, right?

In theory it only needs one or the other, because the other can be derived from /etc/passwd.


Not necessarily because when you call getpwuid the information might
not be populated from /etc/passwd

Yes, I was being sloppy; it might not come from /etc/passwd.

Still, point stands: given either username or user ID, you can get the other from getpw{nam,uid}.

Whichever is in smbpasswd will be a problem to change, but if we removed the duplication you could change the other one without trouble.

... Why Solaris needs a general-purpose extensible user-information database...

Afshin Salek wrote:
If the modified user has an entry in /var/smb/smbpasswd you need to
update this file accordingly

Afshin

Evereasy wrote:
Can not access CIFS share after change uid of a user in /etc/passwd. The following messages are from dmesg -

Feb 28 11:48:24 X-Wing idmap[505]: [ID 924872 daemon.warning] ns_lookup_bypid: getpwuid_r(1234) failed (not found). Feb 28 11:48:24 X-Wing smbd[571]: [ID 600500 daemon.warning] smb_pwdutil: couldn't obtain SID for uid=1234 (-9977) Feb 28 11:48:24 X-Wing idmap[505]: [ID 924872 daemon.warning] ns_lookup_bypid: getpwuid_r(1003) failed (not found). Feb 28 11:48:24 X-Wing smbd[571]: [ID 600500 daemon.warning] smb_pwdutil: couldn't obtain SID for uid=1003 (-9977)

Obviously, idmap and smbd are still using the old uid to lookup SID. How do I have idmap and smbd use the new uid?

Thank you in advance for your help.
_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss


_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss

Reply via email to