This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nas_centos7 [2015/03/28 16:56] – herwarth | nas_centos7 [2015/04/12 08:41] (current) – herwarth | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| </ | </ | ||
| Set the FQDN in / | Set the FQDN in / | ||
| + | =====NTP client===== | ||
| + | ====Installation==== | ||
| + | yum install chrony | ||
| + | ====Configuration==== | ||
| + | <code - / | ||
| + | server 10.108.108.5 iburst | ||
| + | </ | ||
| + | systemctl enable chronyd | ||
| + | systemctl restart chronyd | ||
| =====Samba===== | =====Samba===== | ||
| Line 56: | Line 65: | ||
| samba-tool domain level raise --domain-level 2008_R2 --forest-level 2008_R2 | samba-tool domain level raise --domain-level 2008_R2 --forest-level 2008_R2 | ||
| samba-tool domain level show | samba-tool domain level show | ||
| + | |||
| + | Disable password complexity | ||
| + | |||
| + | samba-tool domain passwordsettings set --complexity=off | ||
| + | samba-tool domain passwordsettings set --history-length=0 | ||
| + | samba-tool domain passwordsettings set --min-pwd-age=0 | ||
| + | samba-tool domain passwordsettings set --max-pwd-age=0 | ||
| + | samba-tool domain passwordsettings set --min-pwd-length=0 | ||
| ====Homedir on server==== | ====Homedir on server==== | ||
| Line 105: | Line 122: | ||
| Having the correct permissions set on the server share also protects users from accessing another user's files. If you set the permissions correctly as outlined in this howto you should be able to test this successfully. | Having the correct permissions set on the server share also protects users from accessing another user's files. If you set the permissions correctly as outlined in this howto you should be able to test this successfully. | ||
| + | ====Set security policy to allow domain==== | ||
| + | Computer Configuration > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page > Site to Zone Assignment List > Enable and add a zone: value name: *.lzw.zorgnet value 1 | ||
| + | The above is enough, but just in case: | ||
| + | User Configuration > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page > Site to Zone Assignment List > Enable and add a zone: value name: *.lzw.zorgnet value 1 | ||
| + | |||
| + | ====DHCP disable change hostname policy==== | ||
| + | Computer Configuration > Policies > Administrative Templates > Network > DNS Client > Dynamic Update = Disabled > Register PTR Records = Disabled | ||
| + | |||
| + | ====Set drive mappings==== | ||
| + | User Configuration > Preferences > Windows Settings > Drive maps (choose replace as type) | ||
| + | - F: \\nas.lzw.zorgnet\data | ||
| + | - H: \\nas.lzw.zorgnet\users\%username% | ||
| + | - M: \\nas.lzw.zorgnet\mirasrc | ||
| + | - U: \\nas.lzw.zorgnet\uirom | ||
| + | - W: \\nas.lzw.zorgnet\windata | ||
| + | - T: \\nas.lzw.zorgnet\temp | ||
| + | ====Add printers==== | ||
| + | - Add printerdrivers using Print Management tool in Windows | ||
| + | - Connect drivers to cups printers: | ||
| + | |||
| + | rpcclient localhost -U administrator -c ' | ||
| + | |||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | rpcclient localhost -U administrator -c ' | ||
| + | |||
| + | rpcclient localhost -U administrator -c ' | ||
| + | |||
| + | In the end we have the following samba configuration: | ||
| + | |||
| + | <code - / | ||
| + | # Global parameters | ||
| + | [global] | ||
| + | workgroup = LZW | ||
| + | realm = LZW.ZORGNET | ||
| + | netbios name = NAS | ||
| + | server role = active directory domain controller | ||
| + | # our own dns server | ||
| + | # dns forwarder = 10.108.108.5 | ||
| + | # zorgnet dns forwarder | ||
| + | dns forwarder = 10.254.253.201 | ||
| + | idmap_ldb: | ||
| + | |||
| + | [netlogon] | ||
| + | path = / | ||
| + | read only = no | ||
| + | |||
| + | [sysvol] | ||
| + | path = / | ||
| + | read only = no | ||
| + | |||
| + | [users] | ||
| + | path = / | ||
| + | comment = user folders for redirection | ||
| + | read only = no | ||
| + | |||
| + | [data] | ||
| + | path = / | ||
| + | comment = data share | ||
| + | read only = no | ||
| + | |||
| + | [mirasrc] | ||
| + | path = / | ||
| + | comment = share used by mira application | ||
| + | read only = no | ||
| + | |||
| + | [uirom] | ||
| + | path = / | ||
| + | comment = unknown share | ||
| + | read only = no | ||
| + | |||
| + | [windata] | ||
| + | path = / | ||
| + | comment = unknown share | ||
| + | read only = no | ||
| + | |||
| + | [temp] | ||
| + | path = / | ||
| + | comment = temporary share | ||
| + | read only = no | ||
| + | |||
| + | [print$] | ||
| + | path = / | ||
| + | comment = share with network printer drivers | ||
| + | read only = no | ||
| + | |||
| + | [printers] | ||
| + | path = / | ||
| + | printable = yes | ||
| + | printing = CUPS | ||
| + | |||
| + | [ETKPRT1L] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = ETKPRT1L | ||
| + | read only = no | ||
| + | |||
| + | [RECPRT1L] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = RECPRT1L | ||
| + | read only = no | ||
| + | |||
| + | [RECPRT2L] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = RECPRT2L | ||
| + | read only = no | ||
| + | |||
| + | [SYSPRT1L] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = SYSPRT1L | ||
| + | read only = no | ||
| + | |||
| + | [SYSPRT1LD] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = SYSPRT1LD | ||
| + | read only = no | ||
| + | |||
| + | [SYSPRT2L] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = SYSPRT2L | ||
| + | read only = no | ||
| + | |||
| + | [SYSPRT2LD] | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | printable = yes | ||
| + | printer name = SYSPRT2LD | ||
| + | read only = no | ||
| + | </ | ||
| + | |||
| + | mkdir / | ||
| + | chmod 1777 / | ||
| + | |||
| + | =====Cups printserver===== | ||
| + | ====Installation==== | ||
| + | yum install cups ghostscript hplip-common | ||
| + | ====Configuration==== | ||
| + | <code - / | ||
| + | . | ||
| + | Listen 0.0.0.0:631 | ||
| + | . | ||
| + | DefaultEncryption Never | ||
| + | . | ||
| + | . | ||
| + | # Restrict access to the server... | ||
| + | < | ||
| + | Order allow,deny | ||
| + | Allow 10.108.108.0/ | ||
| + | </ | ||
| + | |||
| + | # Restrict access to the admin pages... | ||
| + | < | ||
| + | Order allow,deny | ||
| + | Allow 10.108.108.0/ | ||
| + | </ | ||
| + | . | ||
| + | . | ||
| + | </ | ||
| + | systemctl start cups | ||
| + | systemctl enable cups | ||
| + | |||
| + | Add the printers via de webgui running on port 631 | ||
| + | An example config after adding printers in the gui | ||
| + | |||
| + | <code - / | ||
| + | # Printer configuration file for CUPS v1.6.3 | ||
| + | # Written by cupsd on 2015-04-05 21:06 | ||
| + | # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING | ||
| + | <Printer ETKPRT1L> | ||
| + | UUID urn: | ||
| + | Info Star TSP442 | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428174490 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer RECPRT1L> | ||
| + | UUID urn: | ||
| + | Info HP Laserjet P2055dn | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178354 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer RECPRT2L> | ||
| + | UUID urn: | ||
| + | Info Samsung SCX-483x 5x3x series | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178569 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer SYSPRT1L> | ||
| + | UUID urn: | ||
| + | Info HP Laserjet P2055dn | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178686 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer SYSPRT1LD> | ||
| + | UUID urn: | ||
| + | Info HP Laserjet P2055dn | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178879 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer SYSPRT2L> | ||
| + | UUID urn: | ||
| + | Info Samsung SCX-483x 5x3x series | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178779 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | <Printer SYSPRT2LD> | ||
| + | UUID urn: | ||
| + | Info Samsung SCX-483x 5x3x series | ||
| + | DeviceURI socket:// | ||
| + | State Idle | ||
| + | StateTime 1428178962 | ||
| + | Type 4 | ||
| + | Accepting Yes | ||
| + | Shared Yes | ||
| + | JobSheets none none | ||
| + | QuotaPeriod 0 | ||
| + | PageLimit 0 | ||
| + | KLimit 0 | ||
| + | OpPolicy default | ||
| + | ErrorPolicy stop-printer | ||
| + | </ | ||
| + | </ | ||
| =====Firewall configuration===== | =====Firewall configuration===== | ||
| ====Remove all default rules==== | ====Remove all default rules==== | ||