SWAT: Password Page displays /etc/passwd

Syahrul Sazli Shaharir sazli at mimos.my
Sat Jun 19 03:31:29 GMT 1999


Summary: Access swat (http://host:901), click on "Password", and swat
shows the contents of /etc/passwd!!

  Samba 2.0.4 on Solaris 2.6
  unix password sync = ON
  cron job updates smbpasswd to add new accounts in /etc/passwd.
  Dual identity (One for new users, one for "registered" users)

  The thing worked fine until /etc/passwd got corrupt one day, and the
  script I wrote overwrites the good smbpasswd with a corrupt one as well.
  As a result, swat displays the corrupt /etc/passwd file in the password 
  change page. I fixed the files, and everything works fine, except that
  swat now still displays the bad /etc/passwd even after I:-
  - stop & start samba
  - uninstalled, delete private & var dirs and re-installed samba
  - recreated smbpasswd
  - reboot server
  The thing seemed to be eternally cached somewhere and refuse to flush
  out. Am looking through the code right now, but would appreciate some
  help / hints..

  It's already in production -- have to wait until off hours before I can
  turn the debugging on.. 

# Global parameters
	workgroup = WORKGROUP
	netbios name = FILESERVER
	netbios aliases = REGISTER
	server string = PDC - Samba V%v (Solaris 2.6)
	encrypt passwords = Yes
	min passwd length = 6
	passwd program = /bin/passwd %u
	passwd chat = *New*password* %n\n *Re-enter*new*password* %n\n *passwd*(SYSTEM):*passwd*successfully*changed*for*
	username map = /etc/smbusers
	unix password sync = Yes
	log file = /var/log/samba/log.%L.%U-%m
	deadtime = 5
	read prediction = Yes
	socket options = TCP_NODELAY
	logon script = logon.bat
	logon path = \\FILESERVER\%U\profile
	logon drive = H:
	logon home = \\FILESERVER\%U
	domain logons = Yes
	os level = 255
	preferred master = Yes
	domain master = Yes
	wins server =
	remote announce =
	remote browse sync =
	unix realname = Yes
	admin users = root administrator sazli ros
	create mask = 0644
	hosts allow = localhost,,
	hide dot files = No
	include = /usr/local/lib/smb.conf.%L


#============================ Share Definitions ==============================

	comment = Logon Share
	path = /usr/local/netlogon

# Global parameters

	server string = REGISTER - Samba V%v (Solaris 2.6)
	encrypt passwords = No
	update encrypted = Yes
	null passwords = No
	unix password sync = No
	domain logons = No
	os level = 100
	preferred master = No
	domain master = No
#============================ Share Definitions ==============================

	comment = Registration Successful
	path = /export/home0/congrats!



More information about the samba mailing list