SWAT: Password Page displays /etc/passwd

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


Hi,

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

Setup:-
  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)

Background:-
  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..

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

smb.conf:-
# Global parameters
[global]
	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 = 192.228.129.32
	remote announce = 192.228.129.255 192.228.130.255 192.228.131.255 192.228.132.255 192.228.133.255 192.228.134.255 192.228.135.255 192.228.136.255 192.228.137.255
	remote browse sync = 192.228.129.255 192.228.130.255 192.228.131.255 192.228.132.255 192.228.133.255 192.228.134.255 192.228.135.255 192.228.136.255 192.228.137.255
	unix realname = Yes
	admin users = root administrator sazli ros
	create mask = 0644
	hosts allow = localhost, 127.0.0.1, 192.228.0.0/255.255.0.0
	hide dot files = No
	include = /usr/local/lib/smb.conf.%L

smb.conf.NAME:-
--------------

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

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


smb.conf.REG:-
-------------
# Global parameters
[global]

	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 ==============================

[syabas!]
	comment = Registration Successful
	path = /export/home0/congrats!

Thanks.

Sazli



More information about the samba mailing list