[Samba] RE: Solaris/Winbind Problems

David Shapiro david.shapiro at btitele.com
Thu Aug 1 06:14:02 GMT 2002

No, I have not tried that.  The problem is teaching all the users this.  I
suppose the script I sent you for /usr/sbin/passwd could do this for them
instead of the moving stuff.  It would make it safer--in that, it would help
avoid the problem where if a user cancels in mid-passwd-change the correct
file may not be put back in place (there are ways around this too, of
course).  Thanks for the idea.


-----Original Message-----
From: Schmeling, Bernd [mailto:Bernd.Schmeling at ish.com]
Sent: Thursday, August 01, 2002 8:28 AM
To: 'David Shapiro'; 'eric.l.helvey at mail.sprint.com'
Cc: 'samba at lists.samba.org'
Subject: RE: [Samba] RE: Solaris/Winbind Problems


if winbind or/and NIS is/are running and you want to change the password of
the local account, you can do this with:

/usr/bin/passwd -r files <Username>

So you don´t have to move the configuration files. Have you tried this? 

Bernd Schmeling

> -----Original Message-----
> From: David Shapiro [mailto:david.shapiro at btitele.com]
> Sent: Wednesday, July 31, 2002 7:53 PM
> To: 'eric.l.helvey at mail.sprint.com'
> Cc: 'samba at lists.samba.org'
> Subject: [Samba] RE: Solaris/Winbind Problems
> Yes, it kind of sucks that it does not work correctly.   I 
> did the following
> kluge for now:
> I did the following:
> In /usr/sbin, I created a script called passwd:
> #!/bin/ksh
> trap ""  2 3
> sudo mv /etc/nsswitch.conf /etc/nsswitch.conf.winbind
> sudo mv /etc/nsswitch.conf.nowinbind /etc/nsswitch.conf
> /usr/bin/passwd $1
> sudo mv /etc/nsswitch.conf /etc/nsswitch.conf.nowinbind
> sudo mv /etc/nsswitch.conf.winbind /etc/nsswitch.conf
> trap  2 3
> I created in /etc/:
> nsswitch.conf.winbind		(has the winbind options)
> nsswitch.conf.nowinbind		(does not have the 
> winbind options)
> I installed sudo, and added the following in its configuration file:
> Cmnd_Alias SAMBAPASSWD = /usr/bin/mv /etc/nsswitch.conf
> /etc/nsswitch.conf.winbind, \
>                          /usr/bin/mv /etc/nsswitch.conf.nowinbind
> /etc/nsswitch.conf, \
>                          /usr/bin/mv /etc/nsswitch.conf
> /etc/nsswitch.conf.nowinbind, \
>                          /usr/bin/mv /etc/nsswitch.conf.winbind
> /etc/nsswitch.conf
> This allows users to change their passwords.  
> -----Original Message-----
> From: eric.l.helvey at mail.sprint.com
> [mailto:eric.l.helvey at mail.sprint.com]
> Sent: Wednesday, July 31, 2002 11:31 AM
> To: david.edward.shapiro at btitele.com
> Subject: Solaris/Winbind Problems
> I noticed a couple of your newsgroups posts from back in March stating
> that you were having some issues getting the Solaris passwd command to
> work when you had winbind enabled.  Were you able to solve 
> this problem?
> I've been unabled to solve it.  I called Sun for support and once they
> heard the magic word "Samba" they bailed and said "Not our problem."
> Any advice you have would be greatly appreciated.
> Eric L. Helvey
> ISS, Premise Support
> 913-534-7007
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list