How to enable Samba log
Comments
-
After reboot NAS I was checked /tmp/Tweaks.log. All daemons was started. But adding "touch /tmp/${PKG_NAME}.log" to line 337 gives me 500 error at http://NAS/pkg/Tweaks/pkgcgi.cgi.Delete that line and rebbot NAS.If I stop samba (/etc/init.d/samba.sh stop), samba continue working. If I restart samba (/etc/init.d/samba.sh restart), samba continue working without --configfile=/etc/samba/smb.conf.Tweaks.Any ideas?0
-
If I stop samba (/etc/init.d/samba.sh stop), samba continue working. If I restart samba (/etc/init.d/samba.sh restart), samba continue working without --configfile=/etc/samba/smb.conf.Tweaks.
Have you checked if samba.sh is patched?
grep Tweaks /etc/init.d/samba.sh
gives me 500 errorThat's a syntaxerror in the script. pkgcgi.cgi sources init.d/Tweaks when the webinterface is called. You can check for syntaxerrors withsh /i-data/sysvol/.PKG/Tweaks/etc/init.d/Tweaksit should run without errors (without any output at all, actually.The lines around the adaption should be something like
chown root:nobody ${TWEAKS_CONFFILE}
chmod 660 ${TWEAKS_CONFFILE}
touch /tmp/${PKG_NAME}.log
Log "Deamon load plugins"
0 -
Yes, of course. /etc/init.d/samba.sh was patched.touch /tmp/${PKG_NAME}.log run with errors.Only reinstall get effect.0
-
And after another reboot of nas there only one way to use Samba Tweaks - reinstall it. What should I check additionally?
0 -
I really don't know. On my box I can see in top that the different config file is applied. And I don't see how reinstalling would do something different than dis- and enabling Tweaks or dis- and enabling this specific Tweak.Unless you have something strange in your custom smb.conf, causing side effects.0
Categories
- All Categories
- 347 Beta Program
- 2.1K Nebula
- 115 Nebula Ideas
- 77 Nebula Status and Incidents
- 5K Security
- 44 USG FLEX H Series
- 246 Security Ideas
- 1.2K Switch
- 64 Switch Ideas
- 900 WirelessLAN
- 33 WLAN Ideas
- 5.8K Consumer Product
- 204 Service & License
- 326 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 1.8K FAQ
- 832 Nebula FAQ
- 402 Security FAQ
- 219 Switch FAQ
- 190 WirelessLAN FAQ
- 45 Consumer Product FAQ
- 136 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 71 About Community
- 61 Security Highlight