0% found this document useful (0 votes)
25 views

Identify and Fix Pluggable Authentication (PAM) Issues

Uploaded by

carlos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Identify and Fix Pluggable Authentication (PAM) Issues

Uploaded by

carlos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Identify and fix pluggable authentication

(PAM) issues
Identify and fix pluggable authentication
(PAM) issues
Introduction

In this exercise, you will need to troubleshoot and resolve authentication issues
preventing Samba access.

Resolve authentication issues preventing the Samba user cloud_user from listing the
Samba shares on the localhost using the password "Welcome1".

Solution

Start by logging in to the lab server using the credentials provided on the hands-on lab
page:

ssh cloud_user@PUBLIC_IP_ADDRESS

Become the root user:

sudo su -
Verify the Samba service

1. Verify the service is running:

systemctl status smb

2. Attempt to view the listing of shares on the localhost:

smbclient -U cloud_user -L localhost

Password: Welcome1

Resolve authentication issue

1. Check /var/log/secure for any errors:

tail /var/log/secure

2. Check the Samba logs for any errors:

tail /var/log/samba/log.smbd
3. View the PAM service file:

cat /etc/pam.d/samba

4. Verify the package to see if any PAM files are changed:

rpm -V samba

5. Move the changes PAM file to /root/samba.pam.old:

mv /etc/pam.d/samba /root/samba.pam.old

6. Reinstall Samba to restore the original PAM file:

yum reinstall -y samba

7. Restart the Samba service:

systemctl restart smb

8. View the listing of shares on the localhost:

smbclient -U cloud_user -L localhost


Conclusion

Congratulations, you've completed this hands-on lab!

You might also like