How to enable Samba log
Options
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
- 396 Beta Program
- 2.1K Nebula
- 117 Nebula Ideas
- 81 Nebula Status and Incidents
- 5.1K Security
- 86 USG FLEX H Series
- 247 Security Ideas
- 1.3K Switch
- 69 Switch Ideas
- 916 WirelessLAN
- 34 WLAN Ideas
- 5.9K Consumer Product
- 211 Service & License
- 337 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2K FAQ
- 912 Nebula FAQ
- 419 Security FAQ
- 237 Switch FAQ
- 207 WirelessLAN FAQ
- 46 Consumer Product FAQ
- 139 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 72 About Community
- 62 Security Highlight