Sambastatus: my first module for nethserver

module

(Carlo Minucci) #61

thank you @mrmarkuz, @Ctek and @netbix


(Carlo Minucci) #62

ok
i’m the king of the bugfix :smiley:

https://minucci.net/nethserver/nethserver-sambastatus-0.4-1.x86_64.rpm

now is “NethServer 7 ready” :slight_smile:

I put script in %post section of rpm package which add a file in /etc/sudoers.d/ if found nethserver version 7. The control check is into the php file too, if the version is 7 use “sudo smbstatus” instead of “smbstatus”


(Antonio) #63

OK

I have upgrade package but …

Nome Utente -> OK
Nome Host -> NOT OK
Indirizzo IP -> OK

My Nethserver 7 DC


(Antonio) #64

[root@sogomail ~]# smbstatus -p

Samba version 4.4.4
PID Username Group Machine Protocol Version Encryption Signing

15220 antonio@netbix.it domain users@netbix.it 192.168.0.223 (ipv4:192.168.0.223:64247) SMB3_11 - partial(AES-128-CMAC)
[root@sogomail ~]#


(Carlo Minucci) #65

mmm… ok
i’ll try to fix in the next release :slight_smile:


(Filippo Carletti) #66

Please, don’t create files in %post.
Revert https://github.com/carlominucci/SambaStatus/commit/2600d6b7c0a3e28ff96a9960718d54286f8ffa38 and add a file in the rpm package like in this example:
https://github.com/NethServer/nethserver-openvpn/blob/master/root/etc/sudoers.d/20_nethserver_openvpn


(Alessio Fattorini) #67

Ahaha :crown:
Amazing collaborative effort guys :smiley:


(Carlo Minucci) #68

this is the hardware version of SambaStatus :slight_smile:


(Enrique D) #69

I wonder if is safe to install the module?

Regards