doc:appunti:linux:sa:nis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:linux:sa:nis [2011/05/12 12:47] – [NIS client] niccolo | doc:appunti:linux:sa:nis [2020/12/16 16:22] – [NIS users unable to poweroff/reboot or manage printers] niccolo | ||
---|---|---|---|
Line 82: | Line 82: | ||
</ | </ | ||
- | Per fare in modo che **ypinit** riesca a generare i database necessari bisogna | + | Per fare in modo che **ypinit** riesca a generare i database necessari bisogna |
- | * group | + | ^ group | Inizialmente vuoto. |
- | * hosts | + | ^ hosts | Contiene almeno una riga per 127.0.0.1 localhost. |
- | | + | ^ netgroup |
- | | + | ^ passwd |
- | | + | ^ protocols |
- | * rpc | + | ^ rpc | Copiato da ''/ |
- | | + | ^ services |
- | | + | ^ shadow |
+ | Dopo aver modificato il contenuto di tali file bisogno aggiornare lo stato del server NIS: | ||
+ | < | ||
+ | make -C /var/yp | ||
+ | </ | ||
+ | Per far partecipare gli utenti NIS a gruppi di sistema (ad esempio plugdev, lpadmin, ecc. di Ubuntu) bisogna aggiungere le voci opportune in **''/ | ||
====== NIS client ====== | ====== NIS client ====== | ||
Si installa il pacchetto **nis**. Chiunque voglia essere NIS client (eventualmente anche il NIS server stesso) deve impostare **'' | Si installa il pacchetto **nis**. Chiunque voglia essere NIS client (eventualmente anche il NIS server stesso) deve impostare **'' | ||
- | Per integrare gli utenti e i gruppi NIS in quelli standard unix si deve modificare **''/ | + | ===== Name Service Switch ===== |
- | <file> | + | La **GNU C Library** fornisce i servizi ad esempio per avere l' |
- | +:::::: | + | |
- | </file> | + | |
- | Analogamente | + | === Integrazione |
- | <file> | + | Per integrare gli utenti e i gruppi NIS in quelli standard unix si devono modificare i file **''/ |
- | +:::::::: | + | |
- | </file> | + | < |
+ | < | ||
+ | < | ||
+ | |||
+ | Verificare nel file **/ | ||
+ | |||
+ | === Integrazione in modalità " | ||
+ | |||
+ | In alternativa si può indicare in **/ | ||
< | < | ||
- | +::: | + | passwd: files systemd nis |
+ | group: files systemd nis | ||
+ | shadow: files nis | ||
</ | </ | ||
+ | |||
+ | :!: **ATTENZIONE**: | ||
+ | |||
+ | ===== Ricerca del server NIS ===== | ||
La ricerca del NIS server avviene tramite richieste broadcast sulla rete locale. Per evitarle (potrebbero fallire per regole di firewall) si dichiarano esplicitamente i server in **''/ | La ricerca del NIS server avviene tramite richieste broadcast sulla rete locale. Per evitarle (potrebbero fallire per regole di firewall) si dichiarano esplicitamente i server in **''/ | ||
Line 124: | Line 141: | ||
Un altro motivo per cui la **richiesta broadcast potrebbe fallire** è se il server NIS è **multihomed** (ha più di una interfaccia di rete), vedi la nota sopra riguardo '' | Un altro motivo per cui la **richiesta broadcast potrebbe fallire** è se il server NIS è **multihomed** (ha più di una interfaccia di rete), vedi la nota sopra riguardo '' | ||
+ | |||
+ | L' | ||
====== NIS slave server ====== | ====== NIS slave server ====== | ||
Line 152: | Line 171: | ||
YPPASSWDDARGS=" | YPPASSWDDARGS=" | ||
</ | </ | ||
+ | |||
+ | ====== Directory home su NFS ====== | ||
+ | |||
+ | Attenzione al percorso delle home directory, se si sceglie qualcosa di diverso da **''/ | ||
+ | |||
+ | Il rischio è di incappare in errori " | ||
+ | |||
+ | Ad esempio se le home directory sono state montate su **''/ | ||
+ | |||
+ | < | ||
+ | (evince: | ||
+ | `/ | ||
+ | but the parser failed: Failed to open file '/ | ||
+ | </ | ||
+ | |||
+ | contestualmente il kernel logga: | ||
+ | |||
+ | < | ||
+ | Jan 9 11:35:02 nisclient kernel: [ 5422.898561] type=1400 audit(1357727702.213: | ||
+ | apparmor=" | ||
+ | name="/ | ||
+ | requested_mask=" | ||
+ | </ | ||
+ | |||
+ | In questo caso è sufficiente modificare il file **''/ | ||
+ | |||
+ | < | ||
+ | @{HOMEDIRS}=/ | ||
+ | </ | ||
+ | |||
+ | ====== Login Time Too Long in Ubuntu 18.04 ====== | ||
+ | |||
+ | After installing an **Ubuntu 18.04 as a NIS client** with home directories mounted over NFS, we noticed very long times required to complete the login. Even on the tty1 console, there was a **wait time of about 25 seconds** after typing the passowrd, before to get the command line prompt. | ||
+ | |||
+ | The only apparent error message found in the **syslog** was: | ||
+ | |||
+ | < | ||
+ | systemd-logind[2133]: | ||
+ | </ | ||
+ | |||
+ | A nice solution was to **install the nscd package**. The complete story was a bit more complicated, | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | |||
+ | One user pointed out that the bug affects also what is reported in **/ | ||
+ | |||
+ | < | ||
+ | IPAddressDeny=any | ||
+ | </ | ||
+ | |||
doc/appunti/linux/sa/nis.txt · Last modified: 2020/12/16 16:27 by niccolo