Use samba to verify the Active Directory user and allow the Active Directory user to log on to linux

Source: Internet
Author: User
Use samba to verify the Active Directory user and allow the Active Directory user to log on to the linux-Linux Enterprise Application-Linux server application. For more information, see the following section. 1. Add samba to the AD domain first.

2. Add a line in smb. conf so that the login user can use bash

Template shell =/bin/bash

3. Run authconfig and select smb for verification.

4. Edit the login file as follows:

Vi/etc/pam. d/login

# % PAM-1.0
Auth required pam_securetty.so
Auth sufficient pam_winbind.so
Auth sufficient pam_unix.so use_first_pass
Auth required pam_stack.so service = system-auth
Auth required pam_nologin.so

Account sufficient pam_winbind.so
Account required pam_stack.so service = system-auth
Password required pam_stack.so service = system-auth

Session required pam_stack.so service = system-auth
Session optional pam_lele.so

In this way, you can use the account in AD to telnet to linux.

If you want to use ssh

Cp/etc/pam. d/login/etc/pam. d/sshd

That's all.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.