Rowland penny
2020-Jul-15 13:53 UTC
[Samba] Fwd: net rpc rights grant fail to connect 127.0.0.1
On 15/07/2020 14:27, Douglas G. Oechsler via samba wrote:> Hello! > > I really do not know what to do. Still in error. I did step by step ad-dc > and AD Member file server. > Any other idea please? > > Error: > net rpc rights grant "MYDOMAIN\Unix Admins" SeDiskOperatorPrivilege -U > "MYDOMAIN\Administrator" > Enter MYDOMAIN\Administrator's password: > Could not connect to server 127.0.0.1 >Not sure where to go from here, if I run the command I get this: pi at raspberrypi:~/tests $ net rpc rights grant "SAMDOM\Unix Admins" SeDiskOperatorPrivilege -U"SAMDOM\Administrator" Enter SAMDOM\Administrator's password: Successfully granted rights. There isn't anything wrong with your smb.conf, so can we confirm a few things, perhaps there is something we missed ;-) can you post the contents of the following files: /etc/hostname /etc/hosts /etc/resolv.conf /etc/krb5.conf The output from the following commands: hostname -s hostname -d hostname -f hostname -i hostname -I What OS is this ? What version of Samba (if unsure, 'smbd -V' will tell you) Is Apparmor or Selinux enabled ? Rowland
Douglas G. Oechsler
2020-Jul-15 14:41 UTC
[Samba] Fwd: net rpc rights grant fail to connect 127.0.0.1
Hello!> net rpc rights grant "MYDOMAIN\Unix Admins" SeDiskOperatorPrivilege -U > > "MYDOMAIN\Administrator" > > Enter MYDOMAIN\Administrator's password: > > Could not connect to server 127.0.0.1 > > > Not sure where to go from here, if I run the command I get this: > > pi at raspberrypi:~/tests $ net rpc rights grant "SAMDOM\Unix Admins" > SeDiskOperatorPrivilege -U"SAMDOM\Administrator" > Enter SAMDOM\Administrator's password: > Successfully granted rights. >I am trying what the samba wiki show: https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs> There isn't anything wrong with your smb.conf, so can we confirm a few > things, perhaps there is something we missed ;-) > > can you post the contents of the following files: >Yes, I can!> > /etc/hostnamecat /etc/hostname adfile> > /etc/hostscat /etc/hosts # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost 10.1.1.16 ADFILE.ad.prefprude.br ADFILE # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts> /etc/resolv.confcat /etc/resolv.conf ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf. search ad.prefprude.br nameserver 10.1.1.21 nameserver 8.8.8.8> /etc/krb5.confcat /etc/krb5.conf [libdefaults] default_realm = AD.PREFPRUDE.BR dns_lookup_realm = false dns_lookup_kdc = true> > The output from the following commands: > > hostname -s >hostname -s adfile> > hostname -d >hostname -d ad.prefprude.br hostname -f hostname -f ADFILE.ad.prefprude.br> > hostname -i >hostname -i 10.1.1.16> hostname -Ihostname -I 10.1.1.16> What OS is this ?Opensuse 15.1 64 bits> > What version of Samba (if unsure, 'smbd -V' will tell you) >smbd -V Version 4.9.5-git.317.6d82fb3918blp151.2.24.1-SUSE-oS15.0-x86_64 Is Apparmor or Selinux enabled ?>Apparmor is *ENABLE* avahi-daemon?enforce?803 ? ?nscd ?enforce?801 ? ?winbindd ?enforce?1497, 1514> > Rowland > > Thank you Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- *Douglas Giovani Oechsler* e-mail: doguibnu at gmail.com <douglasgiovani at oechsler.com.br> *Prudent?polis - PR*
L.P.H. van Belle
2020-Jul-15 15:01 UTC
[Samba] Fwd: net rpc rights grant fail to connect 127.0.0.1
Ah, forget this one, -S is wrong used. Sorry for that. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > L.P.H. van Belle via samba > Verzonden: woensdag 15 juli 2020 16:54 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Fwd: net rpc rights grant fail to > connect 127.0.0.1 > > What Rowland asked and try this. > > kinit administrator > net rpc rights list -k -S $(hostname -f) > > Then remove the -S part again try again. > > What do you seen then. > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > > Rowland penny via samba > > Verzonden: woensdag 15 juli 2020 15:54 > > Aan: samba at lists.samba.org > > Onderwerp: Re: [Samba] Fwd: net rpc rights grant fail to > > connect 127.0.0.1 > > > > On 15/07/2020 14:27, Douglas G. Oechsler via samba wrote: > > > Hello! > > > > > > I really do not know what to do. Still in error. I did step > > by step ad-dc > > > and AD Member file server. > > > Any other idea please? > > > > > > Error: > > > net rpc rights grant "MYDOMAIN\Unix Admins" > > SeDiskOperatorPrivilege -U > > > "MYDOMAIN\Administrator" > > > Enter MYDOMAIN\Administrator's password: > > > Could not connect to server 127.0.0.1 > > > > > Not sure where to go from here, if I run the command I get this: > > > > pi at raspberrypi:~/tests $ net rpc rights grant "SAMDOM\Unix Admins" > > SeDiskOperatorPrivilege -U"SAMDOM\Administrator" > > Enter SAMDOM\Administrator's password: > > Successfully granted rights. > > > > There isn't anything wrong with your smb.conf, so can we > > confirm a few > > things, perhaps there is something we missed ;-) > > > > can you post the contents of the following files: > > > > /etc/hostname > > > > /etc/hosts > > > > /etc/resolv.conf > > > > /etc/krb5.conf > > > > The output from the following commands: > > > > hostname -s > > > > hostname -d > > > > hostname -f > > > > hostname -i > > > > hostname -I > > > > What OS is this ? > > > > What version of Samba (if unsure, 'smbd -V' will tell you) > > > > Is Apparmor or Selinux enabled ? > > > > Rowland > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Rowland penny
2020-Jul-15 15:03 UTC
[Samba] Fwd: net rpc rights grant fail to connect 127.0.0.1
On 15/07/2020 15:41, Douglas G. Oechsler wrote:> > /etc/resolv.conf > cat /etc/resolv.conf > > ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf. > search ad.prefprude.br <http://ad.prefprude.br> > nameserver 10.1.1.21 > nameserver 8.8.8.8Provided '10.1.1.21' is an AD DC, nothing wrong there.> > > The output from the following commands: > > > What OS is this ? > > Opensuse 15.1 64 bits > > > What version of Samba (if unsure, 'smbd -V' will tell you) > > smbd -V > Version 4.9.5-git.317.6d82fb3918blp151.2.24.1-SUSE-oS15.0-x86_64 > > Is Apparmor or Selinux enabled ? > > Apparmor is *ENABLE*Could Apparmor be getting in the way ? When something strange happens (or doesn't) it is usually Apparmor or Selinux ;-)> > ? avahi-daemon?enforce?803 ? ? ? ? ? ? ? ? ? ? ?? > ??nscd ? ? ? ??enforce?801 ? ? ? ? ? ? ? ? ?? > ??winbindd ? ??enforce?1497, 1514 >I would turn off nscd, it interferes with the winbind cache Rowland