Révision 3e900944
exit 0 and some notices ...
Add exit 0- WARNING : Samba 3.6 and newer block access to smbstatus for no root user
- On Debian make a "chmod a+w /run/samba/sessionid.tdb"
- smbstatus must open this file with RW option
| plugins/samba/samba_users | ||
|---|---|---|
| 11 | 11 |
# Revision 1.0 2007/04/16 Jon Higgs |
| 12 | 12 |
# Initial Release - Adapated from jimmyo's processses plugin. |
| 13 | 13 |
# |
| 14 |
# Revision 1.1 2014/07/24 MangaII |
|
| 15 |
# Add exit 0 |
|
| 16 |
# WARNING : Samba 3.6 and newer block access to smbstatus for no root user |
|
| 17 |
# On Debian make a "chmod a+w /run/samba/sessionid.tdb" |
|
| 18 |
# smbstatus must open this file with RW option |
|
| 19 |
# |
|
| 14 | 20 |
# Magick markers (optional - used by munin-config and som installation |
| 15 | 21 |
# scripts): |
| 16 | 22 |
#%# family=auto |
| ... | ... | |
| 36 | 42 |
|
| 37 | 43 |
echo -n "samba_users.value " |
| 38 | 44 |
smbstatus -b 2> /dev/null | grep -c -v -e "^Samba" -e "^---" -e "^PID" -e ^$ |
| 45 |
|
|
| 46 |
exit 0 |
|
Formats disponibles : Unified diff