Discussion:
[OpenIndiana-discuss] nsswitch.conf
Carsten John
2018-08-24 12:49:41 UTC
Permalink
Hi everybody,

I'm running hipster on a test setup and can't get changes to nsswitch.conf get honored (need to get winbind for passwd and groups inton it).

In Oracle 11.3 the nsswitch is managed via svccfg, but the service name-service/switch seems not to be present in hipster.

Any manual change to nsswitch.conf is ignored and revertes in the file after reboot.


Any suggestions?

Thx

Carsten
--
Carsten John

IT-Dpt.

Max Planck Institut für Marine Mikrobiologie
Celsiusstr. 1 - 28359 Bremen - Raum 101
Telefon: +49 421 2028-568
E-Mail: ***@mpi-bremen.de


-----BE­GIN PGP PU­BLIC KEY BLOCK-----
Ver­si­on: GnuPG v1.4.3 (GNU/​Li­nux)

mQGi­BE­FlEas­RBAC­cAMJ­v8Y1N8wEM­Be­j74psT­mFpi8rLS­q­bYx­H23cVoK­hAF­CyXouC
VIOMp+BnK/​bil+fWVaet­Zo8QCp­C­FA­nu­Qe84QP­NU67b­lYB­K1xHN­SKe5+4p­kNI­iwNb
U1v­L53­ToOS02s­RY­tuWCFv­vE4­SAhhdLhNC­PY­eu­QO4g­Kwo­v2O0rZ­Gahz­kqfw­Cg/​cP8
yR­S3b­zW2vGVnB+253y­T9F­CED+wQC­Jb­oP2A7iC­c9f34S56xpMJN76qq4t/​xIS­shWS
8AA7bs­zX­sx351n­Rw­nU­eb­M3y­CdvlyDBVcw1n/​FK9st­JJbt­F2Qo­v9e­JOyFVlTrN0gb
tfqRpN­Q6qUHt­H1vJ4M70kX­Ci­Wvi­Jt/​UQx50wu2/​rFI­aNVk1aUL­FrM0r+IIxRr+rq
n9N6A/​0a­p4Pn­s9O6LA17n­qEis4G­T1Qp1RT­D0bLrmbCrb­KUN­Gx5JT­meIDgva+yiYO
Szo9z­mUzlK9dW­S6XKT­H4R­p5eU­p040Ws­rW9I­qm0Xo­VU2j­fU­I­g2D­V4B­nq+5p­Tx7Y9T
CNY2X­b1E5yIg­JJxz­H0N­W87m­pO­X1t3K­ti­U4ms­lu­U1­bI­iGfkU5I7Qi­Q2­Fy­c3Rl­biBK
b2huI­Dx­jam9obkBt­cGktY­n­Jlb­WVuLmRlP­ohbBBM­RA­g­AbB­QJB­ZRGrBgs­J­CAc­D­AgMV
AgMDFgI­BAh4­BAheAAAo­JE­LE­Qs­GX­nob­n7t­CwAn2­SYS5K/​pyCt­c2Dc­Qm­JiZ/​ta­Jl­Wc
AK­CloF­jq9GS­j0Tx­An9I­w0E/​WPXfVhrk­BDQRB­ZRGsEAQApdjI­D6C­muaZ­nuP/​QaK­Zq
DD­N9v66gTFWI6TTZm/​BZGPF5FLAs­H­j2­NuZ­b7i/​nRWEi2hG­kVKt­ID­p0mmsW­cu­H­xUL
44I­u5nhb03Z­n89Vn­WV+IY/​IoIxT­WR­aBdl­HQlTts­b­fnGnYdj+Ly­fOTz­L0v2MphS87
9m­rO­QYFt1l­wY­EPp­Ge­Afs­jY­MAA­wUD/​0Pq9F­c3Er­nO6J0BRjs­H0J­Na­ro­JB7DwB­f919
1I­iWa21jPrs­tUE­GRLb­dkS­DH/​j7D­aGfH14VD/​mact­MDIk­FI­naSXp­M7WdT­pGtt­q9Ip
tO2XMDSwTz­c20­fa48qG­ZcT­PY­jW­kA­wFP/​1Eb­go­Pr4­Mibc/​1D7u­CrRhp7M7C2T9VJT
vAAVsaK­diEY­EG­BE­CAAY­FAk­FlEa­wACg­kQs­RCwZe­e­hu­fu­BXAC­c­D2Lbp+y+Hz­M5yN1u
Z+DLO­BOJ/​fYAo­Jb­zwv­P2o­TY­szx8c­CNBs­TeLsW­SEf
=6qgZ
-----END PGP PU­BLIC KEY BLOCK-----
Till Wegmüller
2018-08-24 13:05:10 UTC
Permalink
Hi

In Illumos based systems smf configuration did not happen as much as in
Solaris. Due to the fact that solaris closed before the change was
complete in the open-source base.


I Usually have no problem manually editing nsswitch.conf. However I
usually copy nsswitch.dns to nsswitch.conf and nothing more. But it
never reverted after reboot.

That behaviour is most probably caused by a service. There are multiple
ones that edit nsswitch.conf or copy the dns version in place.

My gueses for the culprit are "svc:/network/service:default" and nwam.

For NWAM make sure you are using "svc:/network/physical:default" instead
of "svc:/network/physical:nwam" otherwise nwam fingers into stuff you
might not want.

for "svc:/network/service:default" have a look at the start script and
see what the shellscript accepts as modified nsswitch so it does not
overwrite your changes.


Hope this helps.
Greetings
Till
Post by Carsten John
Hi everybody,
I'm running hipster on a test setup and can't get changes to nsswitch.conf get honored (need to get winbind for passwd and groups inton it).
In Oracle 11.3 the nsswitch is managed via svccfg, but the service name-service/switch seems not to be present in hipster.
Any manual change to nsswitch.conf is ignored and revertes in the file after reboot.
Any suggestions?
Thx
Carsten
Predrag Zečević - Technical Support Analyst
2018-08-24 13:16:14 UTC
Permalink
Post by Carsten John
Hi everybody,
I'm running hipster on a test setup and can't get changes to nsswitch.conf get honored (need to get winbind for passwd and groups inton it).
In Oracle 11.3 the nsswitch is managed via svccfg, but the service name-service/switch seems not to be present in hipster.
Any manual change to nsswitch.conf is ignored and revertes in the file after reboot.
Any suggestions?
Thx
Carsten
Hi Carsten,

I used to set it (long time ago) with nwamcfg (and nwamadm) utilities,
for example:

$ find /etc/nwam/ -type f -name nsswitch.conf
/etc/nwam/loc/User/nsswitch.conf
/etc/nwam/loc/Legacy/nsswitch.conf

$ nwamcfg list
NCPs:
Automatic
e1000g0_dhcp
e1000g0_static
rge0_dhcp
rge0_static
Locations:
Automatic
NoNet
User

$ nwamadm list -x -p loc
TYPE PROFILE STATE AUXILIARY STATE
loc Automatic online active
loc NoNet offline conditions for activation are
unmet
loc User disabled disabled by administrator


See also:
https://wiki.openindiana.org/oi/Using+NWAM+to+configure+network+interfaces
(there could be more pages on same wiki).

Maybe there is better way, but this one still works...

HTH
With best regards.
Predrag Zečević
--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
e-mail: ***@2e-systems.com

headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am
Taunus, Germany
registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas

http://www.2e-systems.com/ - Making your business fly!
Carsten John
2018-08-24 13:20:27 UTC
Permalink
Argh,

forgot the disable nwam as this is a test setup in virtualbox and I didn't follow my usual checklist.

Thanks for the suggestions


Carsten
--
Carsten John

IT-Dpt.

Max Planck Institut für Marine Mikrobiologie
Celsiusstr. 1 - 28359 Bremen - Raum 101
Telefon: +49 421 2028-568
E-Mail: ***@mpi-bremen.de


-----BE­GIN PGP PU­BLIC KEY BLOCK-----
Ver­si­on: GnuPG v1.4.3 (GNU/​Li­nux)

mQGi­BE­FlEas­RBAC­cAMJ­v8Y1N8wEM­Be­j74psT­mFpi8rLS­q­bYx­H23cVoK­hAF­CyXouC
VIOMp+BnK/​bil+fWVaet­Zo8QCp­C­FA­nu­Qe84QP­NU67b­lYB­K1xHN­SKe5+4p­kNI­iwNb
U1v­L53­ToOS02s­RY­tuWCFv­vE4­SAhhdLhNC­PY­eu­QO4g­Kwo­v2O0rZ­Gahz­kqfw­Cg/​cP8
yR­S3b­zW2vGVnB+253y­T9F­CED+wQC­Jb­oP2A7iC­c9f34S56xpMJN76qq4t/​xIS­shWS
8AA7bs­zX­sx351n­Rw­nU­eb­M3y­CdvlyDBVcw1n/​FK9st­JJbt­F2Qo­v9e­JOyFVlTrN0gb
tfqRpN­Q6qUHt­H1vJ4M70kX­Ci­Wvi­Jt/​UQx50wu2/​rFI­aNVk1aUL­FrM0r+IIxRr+rq
n9N6A/​0a­p4Pn­s9O6LA17n­qEis4G­T1Qp1RT­D0bLrmbCrb­KUN­Gx5JT­meIDgva+yiYO
Szo9z­mUzlK9dW­S6XKT­H4R­p5eU­p040Ws­rW9I­qm0Xo­VU2j­fU­I­g2D­V4B­nq+5p­Tx7Y9T
CNY2X­b1E5yIg­JJxz­H0N­W87m­pO­X1t3K­ti­U4ms­lu­U1­bI­iGfkU5I7Qi­Q2­Fy­c3Rl­biBK
b2huI­Dx­jam9obkBt­cGktY­n­Jlb­WVuLmRlP­ohbBBM­RA­g­AbB­QJB­ZRGrBgs­J­CAc­D­AgMV
AgMDFgI­BAh4­BAheAAAo­JE­LE­Qs­GX­nob­n7t­CwAn2­SYS5K/​pyCt­c2Dc­Qm­JiZ/​ta­Jl­Wc
AK­CloF­jq9GS­j0Tx­An9I­w0E/​WPXfVhrk­BDQRB­ZRGsEAQApdjI­D6C­muaZ­nuP/​QaK­Zq
DD­N9v66gTFWI6TTZm/​BZGPF5FLAs­H­j2­NuZ­b7i/​nRWEi2hG­kVKt­ID­p0mmsW­cu­H­xUL
44I­u5nhb03Z­n89Vn­WV+IY/​IoIxT­WR­aBdl­HQlTts­b­fnGnYdj+Ly­fOTz­L0v2MphS87
9m­rO­QYFt1l­wY­EPp­Ge­Afs­jY­MAA­wUD/​0Pq9F­c3Er­nO6J0BRjs­H0J­Na­ro­JB7DwB­f919
1I­iWa21jPrs­tUE­GRLb­dkS­DH/​j7D­aGfH14VD/​mact­MDIk­FI­naSXp­M7WdT­pGtt­q9Ip
tO2XMDSwTz­c20­fa48qG­ZcT­PY­jW­kA­wFP/​1Eb­go­Pr4­Mibc/​1D7u­CrRhp7M7C2T9VJT
vAAVsaK­diEY­EG­BE­CAAY­FAk­FlEa­wACg­kQs­RCwZe­e­hu­fu­BXAC­c­D2Lbp+y+Hz­M5yN1u
Z+DLO­BOJ/​fYAo­Jb­zwv­P2o­TY­szx8c­CNBs­TeLsW­SEf
=6qgZ
-----END PGP PU­BLIC KEY BLOCK-----


-----Original message-----
Sent: Friday 24th August 2018 15:16
Subject: Re: [OpenIndiana-discuss] nsswitch.conf
Post by Carsten John
Hi everybody,
I'm running hipster on a test setup and can't get changes to nsswitch.conf
get honored (need to get winbind for passwd and groups inton it).
Post by Carsten John
In Oracle 11.3 the nsswitch is managed via svccfg, but the service name-service/switch
seems not to be present in hipster.
Post by Carsten John
Any manual change to nsswitch.conf is ignored and revertes in the file after
reboot.
Post by Carsten John
Any suggestions?
Thx
Carsten
Hi Carsten,
I used to set it (long time ago) with nwamcfg (and nwamadm) utilities,
$ find /etc/nwam/ -type f -name nsswitch.conf
/etc/nwam/loc/User/nsswitch.conf
/etc/nwam/loc/Legacy/nsswitch.conf
$ nwamcfg list
Automatic
e1000g0_dhcp
e1000g0_static
rge0_dhcp
rge0_static
Automatic
NoNet
User
$ nwamadm list -x -p loc
TYPE PROFILE STATE AUXILIARY STATE
loc Automatic online active
loc NoNet offline conditions for activation are
unmet
loc User disabled disabled by administrator
https://wiki.openindiana.org/oi/Using+NWAM+to+configure+network+interfaces
(there could be more pages on same wiki).
Maybe there is better way, but this one still works...
HTH
With best regards.
Predrag Zečević
--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH
tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am
Taunus, Germany
registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas
http://www.2e-systems.com/ - Making your business fly!
_______________________________________________
openindiana-discuss mailing list
https://openindiana.org/mailman/listinfo/openindiana-discuss
Continue reading on narkive:
Loading...