Hi, A couple of times (especially when sorting out my scripts for the umpteenth time), I have deleted a unix user before the smb user. This caused smbpasswd to panic and not delete the smb user. As far as I can tell, this doesn't present a security issue, as if there is no user in /etc/passwd then you cannot use the account in samba anyway, however, it would be nice for smbpasswd, if passed the -x argument didn't look for the user in /etc/passwd, just to save hand-editing the smbpasswd file. Thanks for listening. =============Martyn Ranyard
The version of smbpasswd in 2.2.3 does exactly this. Martyn Ranyard wrote:> > Hi, > > A couple of times (especially when sorting out my scripts for the > umpteenth time), I have deleted a unix user before the smb user. This > caused smbpasswd to panic and not delete the smb user. As far as I can > tell, this doesn't present a security issue, as if there is no user in > /etc/passwd then you cannot use the account in samba anyway, however, it > would be nice for smbpasswd, if passed the -x argument didn't look for the > user in /etc/passwd, just to save hand-editing the smbpasswd file. > > Thanks for listening. > > =============> Martyn Ranyard >-- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 ======================================================================
On Wed, 6 Feb 2002, Martyn Ranyard wrote:> Hi, > > A couple of times (especially when sorting out my scripts for the > umpteenth time), I have deleted a unix user before the smb user. This > caused smbpasswd to panic and not delete the smb user. As far as I can > tell, this doesn't present a security issue, as if there is no user in > /etc/passwd then you cannot use the account in samba anyway, however, it > would be nice for smbpasswd, if passed the -x argument didn't look for the > user in /etc/passwd, just to save hand-editing the smbpasswd file.I think this was fixed in 2.2.3a. chau, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--