Thursday, January 31, 2008

smb.conf Ovewrites. It's not finished...

root> /etc/init.d/lighttpd.sh stop

which takes down lighttpd and the nasMaster.pl FCGI script.

Then edited /etc/init.d/network_servers.sh to disable start and stop of lighttpd at startup and shutdown.
Then manually updated /var/oxsemi/shares.inc to add a new share.
Then

root> reboot

When the machine comes back up, the file has not been overwritten. A-ha! One of the last things nasMaster.pl does before entering the CGI dispatch loop is invoke Service::Shares->createDefault() but all this does, as far as I can see is delete and recreate the [PUBLIC] share.

Service::Shares also defines a deleteAllExternal() method which would certainly hae the same effect I'm seeing, but where is it called...?

I feel like Columbo. I know who did it and now just need to badger them into making a mistake to get the proof I need.

1 comment:

gordon said...

Note to self - /etc/init.d/S27shares-cleanup is calling /usr/www/lib/removeExternalShares.pl. Easy to remove from startup but presumably it's doing a good job in other regards. look at only removing external shares which are related to any removed during cleanlock.