wikiv3:authusercentos
Autenticação de sistemas (CentOS)
Instalação do pacotes:
# yum install nss-pam-ldapd autofs nfs-utils
Configuração do autofs (automount)
# vim /etc/auto.master [...] /ldaphome /etc/auto.home [...]
# cp -ap /etc/auto.misc /etc/auto.home
# vim /etc/auto.home * -rw,soft autofs.laboratorio.com.br:/ldaphome/&
Diretório para automount dos homes dos usuário
# cp -ap /home /ldaphome
Iniciando e ativando o autofs
# systemctl start autofs.service
# systemctl enable autofs.service ln -s '/usr/lib/systemd/system/autofs.service' '/etc/systemd/system/multi-user.target.wants/autofs.service'
Configurando a autenticação
# authconfig-tui
Testando a autenticação
# getent passwd | tail -n2 tony:x:10001:5000:Tony Stark:/ldaphome/tony:/bin/bash gean:x:10000:5000:Gean Martins:/ldaphome/gean:/bin/bash
# getent group | tail -n1 sysadmin:*:5000:
# su - gean $ pwd /ldaphome/gean
wikiv3/authusercentos.txt · Last modified: by 127.0.0.1


