De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Claudemir P. da Luz Jr.
Data de Publicação: 08 de abril de 2008
apt-get install pmount ou yum install pmountRealize o download do site oficial do projeto http://www.pamusb.org/
[root@proxy pam_usb-0.4.2]# ls ChangeLog COPYING doc Makefile src tools
[root@proxy pam_usb-0.4.2]# make
make install
[root@proxy pam_usb-0.4.2]# make install mkdir -p /etc /usr/share/doc/pamusb /usr/share/man/man1 /usr/bin /lib/security install -m755 pam_usb.so /lib/security install -m755 pamusb-check tools/pamusb-conf tools/pamusb-agent /usr/bin install -b -m644 doc/pamusb.conf /etc install -m644 doc/QUICKSTART doc/CONFIGURATION doc/UPGRADING doc/FAQ /usr/share/doc/pamusb install -m644 doc/pamusb-conf.1.gz doc/pamusb-agent.1.gz doc/pamusb-check.1.gz /usr/share/man/man1
[root@proxy pam_usb-0.4.2]# pamusb-conf --add-device MyDevice Please select the device you wish to add. * Using "Kingston DataTraveler 2.0 (Kingston_DataTraveler_2.0_06115961730239E4-0:0)" (only option) Which volume would you like to use for storing data ? * Using "/dev/sdb1 (UUID: 361B-D32D)" (only option) Name : MyDevice Vendor : Kingston Model : DataTraveler 2.0 Serial : Kingston_DataTraveler_2.0_06115961730239E4-0:0 UUID : 361B-D32D Save to /etc/pamusb.conf ? [Y/n] y Done.
[root@proxy pam_usb-0.4.2]# pamusb-check root * Authentication request for user "root" (pamusb-check) * Device "MyDevice" is connected (good). * Performing one time pad verification... * Regenerating new pads... * Access granted.
auth sufficient pam_unix.so #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so # auth pam_usb auth sufficient pam_usb.so auth sufficient pam_unix.so nullok try_first_pass ....
# pamusb-conf --add-user root Which device would you like to use for authentication ? * Using "MyDevice" (only option) User : root Device : MyDevice Save to /etc/pamusb.conf ? [Y/n] y Done./table>
[claudemirj@proxy ~]$ su - * pam_usb v0.4.2 * Authentication request for user "root" (su-l) * Device "MyDevice" is connected (good). * Performing one time pad verification... * Access granted. [root@proxy ~]#Pronto, agora é so cadastrar seus pen drivers e associar os usuários para ter acesso aos Servidores sem precisar digitar senha. Não se esqueça que o haldaemon deve estar rodando nos Sistemas.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários