Projet

Général

Profil

Révision 3e900944

ID3e9009448060255bdeef3c705fa82700ce8094a0
Parent 931233d0
Enfant 120d1521

Ajouté par OOP Master il y a plus de 11 ans

exit 0 and some notices ...

Add exit 0
  1. WARNING : Samba 3.6 and newer block access to smbstatus for no root user
  2. On Debian make a "chmod a+w /run/samba/sessionid.tdb"
  3. smbstatus must open this file with RW option

Voir les différences:

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