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
- 415 Beta Program
- 2.4K Nebula
- 148 Nebula Ideas
- 96 Nebula Status and Incidents
- 5.7K Security
- 262 USG FLEX H Series
- 271 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.4K Consumer Product
- 249 Service & License
- 387 News and Release
- 84 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.5K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 73 Security Highlight