[Samba] Why would "net rpc rights grant" fail ?

Marc Muehlfeld samba at marc-muehlfeld.de
Fri Apr 11 09:28:34 MDT 2014


Hello Koenraad,

Am 11.04.2014 15:08, schrieb Koenraad Lelong:
> Using the script op L.P.H. van Belle, there is one failure :
> net rpc rights grant ${SETNTDOM}\\"Domain Admins"
> SeDiskOperatorPrivilege -U${SETNTUSER}
>
> This is the result :
> ==========SE Privileges ===============================
> Giving group Domain Admins the SeDiskOperatorPrivilege rights.
> Enter Admikoen's password:
> Could not connect to server 127.0.0.1
> Connection failed: NT_STATUS_INVALID_NETWORK_RESPONSE

Can you check, if Samba is listening on the localhost address, too?

# netstat -tulpn | egrep "samba|smbd|nmbd|winbind"


If not, you may have bound it to your NIC only. Then add "lo" to the 
'interfaces' adapter:
https://wiki.samba.org/index.php/Samba_port_usage#Prevent_Samba_from_listening_on_all_interfaces



Or any 'hosts allow' entries that may deny localhost access?


Regards,
Marc


More information about the samba mailing list