Linux Winbind Setup: Difference between revisions

From Pumping Station One
adding ubuntu mkhomdir
 
(3 intermediate revisions by the same user not shown)
Line 12: Line 12:
== Installation ==
== Installation ==


=== Ubuntu ===
    sudo apt-get install krb5-user ntp samba winbind


=== Arch Linux ===
=== Arch Linux ===
Line 20: Line 17:
     sudo pacman -S krb5 samba
     sudo pacman -S krb5 samba


* Default Kerberos version 5 realm: AD.PUMPINGSTATIONONE.ORG
=== Debian ===
 
    sudo apt-get install krb5-user libnss-winbind libpam-winbind ntp samba winbind
 
=== Ubuntu ===
 
    sudo apt-get install krb5-user ntp samba winbind
 
* Default Kerberos version 5 realm: AD.PUMPINGSTATIONONE.ORG


== /etc/nsswitch.conf ==
== /etc/nsswitch.conf ==
Line 65: Line 70:


== Join the domain ==
== Join the domain ==
Use your account, you must be in the Domain Admins group. If you are adding a machine and are not in the Domain Admins group, Join the [[Systems Group]] and ask.
Use your account, you must be in the Domain Admins group. If you are adding a machine and are not in the Domain Admins group, Join the [[Systems Group]] and ask.


     sudo net ads join -U '''administrator'''@AD.PUMPINGSTATIONONE.ORG
     sudo net ads join -U '''administrator'''@AD.PUMPINGSTATIONONE.ORG
Line 105: Line 110:


     %domain\ admins ALL=(ALL:ALL) ALL
     %domain\ admins ALL=(ALL:ALL) ALL
    %PS1\\domain\ admins ALL=(ALL:ALL) ALL


Then make sure the file has proper permissions:
Then make sure the file has proper permissions:
Line 112: Line 119:
== pam_mkhomdir.so ==
== pam_mkhomdir.so ==


pam_mkhomdir is responsible for creating the home directory of users that don't have one. Without it you get the following message.
pam_mkhomdir is responsible for creating the home directory of users that don't have one. Without it you get the following message.


     Could not chdir to home directory /home/PS1/username: No such file or directory
     Could not chdir to home directory /home/PS1/username: No such file or directory