mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update README.md
This commit is contained in:
parent
cf02d43ba5
commit
6ea90a0e67
@ -16,14 +16,15 @@ and is a result of a lot of small upgrades according as needs has emerged.
|
|||||||
Complete steps
|
Complete steps
|
||||||
|
|
||||||
1. remember to set a hostname on the client or server, the AD will set computer object itself named after the hostname of the machine = "linuxcomputer" as example
|
1. remember to set a hostname on the client or server, the AD will set computer object itself named after the hostname of the machine = "linuxcomputer" as example
|
||||||
in this script there is a magic word added for groups in AD and it is sudoers, allways sudoers after hostname, like linuxcomputersudoers
|
|
||||||
2. At this point you have 2 options. you already have a Group i AD example:"ADMINS" here you have your users with sudo rights. then you need to edit /etc/sudoers.d/sudoers
|
2. At this point you have 2 options. you already have a Group i AD example:"ADMINS" here you have your users with sudo rights. then you need to edit /etc/sudoers.d/sudoers
|
||||||
and add %ADMINS ALL(ALL:ALL) ALL if you want to give this group sudo rights.
|
and add %ADMINS ALL(ALL:ALL) ALL if you want to give this group sudo rights.
|
||||||
|
In this script there is a magic word added for groups in AD and it is sudoers, allways sudoers after hostname, like linuxcomputersudoers
|
||||||
and also /etc/ssh/login.allow if you have selected this option for security.
|
and also /etc/ssh/login.allow if you have selected this option for security.
|
||||||
|
|
||||||
Or if you want to manage sudo users by a new group then create a group name LINUXCOMPUTERsudoers and LINUXCOMPUTER as hostname, they are not related, but Computer object in AD will be created and named after hostname and naming the group makes search easier in the future, therefore the script by defaut will add "LINUXCOMPUTERsudoers" as default in sudoers.d/sudoers, in this step you dont need to edit files, the script will allow you to choose if you want users to be sudoers or not.
|
Or if you want to manage sudo users by a new group then create a group name LINUXCOMPUTERsudoers and LINUXCOMPUTER as hostname, they are not related, but Computer object in AD will be created and named after hostname and naming the ADgroup simmilar makes search easier in the future, therefore the script by defaut will add "LINUXCOMPUTERsudoers" as default in sudoers.d/sudoers, in this step you don't need to edit files, the script will allow you to choose if you want users to be sudoers or not.
|
||||||
3. set hostname on you computer to "linuxcomputer" (hostname and hosts files) and reboot
|
3. set hostname on you computer to "linuxcomputer" (hostname and hosts files) and reboot
|
||||||
4. git clone this script and run.
|
4. git clone this script and run
|
||||||
|
|
||||||
Execute the script with sudo sh ADconnection.sh, It will detect if it is a client or a server, it will also detect if client is running ubuntu 14,16 or 17
|
Execute the script with sudo sh ADconnection.sh, It will detect if it is a client or a server, it will also detect if client is running ubuntu 14,16 or 17
|
||||||
the script will find your domain name if existing, and your networkconfig is correct.. if not a promt will let you type the domain name. "domain.com"
|
the script will find your domain name if existing, and your networkconfig is correct.. if not a promt will let you type the domain name. "domain.com"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user