How to enable Samba log
Andreas_E
Posts: 1 Freshman Member
Hello,
how can i enable the SMB-Log on NAS540/542?
I have tried to edit the smb.conf under /etc/samba/ and add follow lines:
log file = /var/log/samba/%m.log
max log size = 10000
log level = 2 smb:4
With a restart from the NAS the smbd should now log the accesses from the Clients but the changes in smb.conf are undone.
With friendy Greets from Germany.
#NAS_July
#NAS_July
0
Comments
-
Up. Nas-Central down.
0 -
-
what's the default password for Samba account?
0 -
Hi Alex M,what's the default password for Samba account?It depends on which user account you used, the password is the same as that account's setting.0
-
Mijzelf, is there any syslog-ng tweaks? Cause any reboot sets to default syslog-ng.conf.
0 -
No. But if you have a script which does the necessary adjustments, and you have RandomTools installed, you can put that script in/i-data/sysvol/.PKG/RandomTools/etc/custom_startscripts/to get it executed on boot.
0 -
OK. I'll try. Thank you!And there is one problem at NAS542. After rebooting NAS smbd starts without using "smb.conf.Tweaks" config file. Process is "/usr/sbin/smbd -D" for each user.I reinstall Tweaks via AppCenter (when installing it lags at 98%; need to press cancel, reboot NAS and install Tweaks again) and enable Samba tweaks. After that smbd starts with a process "/usr/sbin/smbd -D --configfile=/etc/samba/smb.conf.Tweaks".Is there any way to solve that problem?
0 -
Looks like after reboot samba.sh from /i-data/sysvlo/.PKG/Tweaks/gui/Tweaks/plugins doesn't exec at startup
0 -
The Samba tweak creates the file /etc/samba/smb.conf.Tweaks, then patches /etc/init.d/samba.sh to add the configfile, and then calls '/etc/init.d/samba.sh restart', as you can read on line 108 of samba.sh. I don't see how that could fail (and it doesn't fail on my box)Looks like after reboot samba.sh from /i-data/sysvlo/.PKG/Tweaks/gui/Tweaks/plugins doesn't exec at startupWhy do you think so? The script is sourced from /i-data/sysvol/.PKG/Tweaks/etc/init.d/Tweaks, starting at line 338. As you can see there is a log function, which can be activated by adding a linetouch /tmp/${PKG_NAME}.logsomewhere above 338. Does that give new insights?
0
Categories
- All Categories
- 415 Beta Program
- 2.3K Nebula
- 141 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 218 USG FLEX H Series
- 262 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1K Wireless
- 39 Wireless Ideas
- 6.3K Consumer Product
- 245 Service & License
- 382 News and Release
- 81 Security Advisories
- 27 Education Center
- 8 [Campaign] Zyxel Network Detective
- 3.1K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight