Cds: различия между версиями
Перейти к навигации
Перейти к поиску
Vovan (обсуждение | вклад) (→Ввод в домен Ubuntu Linux) |
Vovan (обсуждение | вклад) (→Ввод в домен Ubuntu Linux) |
||
Строка 2: | Строка 2: | ||
==Ввод в домен Ubuntu Linux== | ==Ввод в домен Ubuntu Linux== | ||
+ | Скрипт | ||
+ | <pre> | ||
+ | #adduser administrator | ||
+ | adduser student | ||
+ | mv /home/administrator /var | ||
+ | mv /home/student /var | ||
+ | |||
+ | usermod -d /var/administrator administrator | ||
+ | usermod -d /var/student student | ||
+ | |||
+ | cp /etc/ldap.conf /etc/ldap.conf.backup | ||
+ | cp /etc/nsswitch.conf /etc/nsswitch.conf.backup | ||
+ | |||
+ | echo "host 192.168.10.2 | ||
+ | base ou=Services,dc=calculate | ||
+ | rootbinddn ou=Unix,ou=Services,dc=calculate | ||
+ | binddn cn=proxyuser,dc=calculate | ||
+ | bindpw calculate | ||
+ | port 389 | ||
+ | ldap_version 3 | ||
+ | bind_policy soft | ||
+ | nss_base_passwd ou=Users,ou=Unix,ou=Services,dc=calculate?one?shadowFlag=1 | ||
+ | nss_base_shadow ou=Users,ou=Unix,ou=Services,dc=calculate?one?shadowFlag=1 | ||
+ | nss_base_group ou=Groups,ou=Unix,ou=Services,dc=calculate?one | ||
+ | nss_base_group ou=Groups,ou=Samba,ou=Services,dc=calculate?one | ||
+ | pam_password md5" > /etc/ldap.conf | ||
+ | |||
+ | echo "passwd: files ldap | ||
+ | shadow: files ldap | ||
+ | group: files ldap | ||
+ | |||
+ | hosts: files dns | ||
+ | networks: files dns | ||
+ | |||
+ | services: files ldap | ||
+ | protocols: files ldap | ||
+ | rpc: db files | ||
+ | ethers: db files | ||
+ | netmasks: files | ||
+ | netgroup: files ldap | ||
+ | bootparams: files | ||
+ | |||
+ | automount: files ldap | ||
+ | aliases: files" > /etc/nsswitch.conf | ||
+ | |||
+ | echo "session required pam_unix.so | ||
+ | session required pam_mkhomedir.so skel=/etc/skel/ | ||
+ | session optional pam_ldap.so" > /etc/pam.d/common-session | ||
+ | |||
+ | id vasya | ||
+ | |||
+ | mkdir /media/share | ||
+ | |||
+ | |||
+ | |||
+ | </pre> |
Версия 14:32, 22 декабря 2012
Ввод в домен Windows XP
Ввод в домен Ubuntu Linux
Скрипт
#adduser administrator adduser student mv /home/administrator /var mv /home/student /var usermod -d /var/administrator administrator usermod -d /var/student student cp /etc/ldap.conf /etc/ldap.conf.backup cp /etc/nsswitch.conf /etc/nsswitch.conf.backup echo "host 192.168.10.2 base ou=Services,dc=calculate rootbinddn ou=Unix,ou=Services,dc=calculate binddn cn=proxyuser,dc=calculate bindpw calculate port 389 ldap_version 3 bind_policy soft nss_base_passwd ou=Users,ou=Unix,ou=Services,dc=calculate?one?shadowFlag=1 nss_base_shadow ou=Users,ou=Unix,ou=Services,dc=calculate?one?shadowFlag=1 nss_base_group ou=Groups,ou=Unix,ou=Services,dc=calculate?one nss_base_group ou=Groups,ou=Samba,ou=Services,dc=calculate?one pam_password md5" > /etc/ldap.conf echo "passwd: files ldap shadow: files ldap group: files ldap hosts: files dns networks: files dns services: files ldap protocols: files ldap rpc: db files ethers: db files netmasks: files netgroup: files ldap bootparams: files automount: files ldap aliases: files" > /etc/nsswitch.conf echo "session required pam_unix.so session required pam_mkhomedir.so skel=/etc/skel/ session optional pam_ldap.so" > /etc/pam.d/common-session id vasya mkdir /media/share