There’s no need to have apache utils or tools to generate a Basic authentication password for nginx. Type the following in bash and replace user with the username you want:
printf "user:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd
There’s no need to have apache utils or tools to generate a Basic authentication password for nginx. Type the following in bash and replace user with the username you want:
printf "user:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd
Let’s say your Windows domain is “domain.local” and your Windows DNS IP address is “192.168.1.55” and “192.168.1.56”
In OpenWrt, add this to /etc/config/dhcp:
option rebind_protection '0' list server '/domain.local/192.168.1.55'
list server '/domain.local/192.168.1.56'
The trick here which isn’t well documented is that rebind protection MUST be set to ‘0’ otherwise lookups for *.domain.local will fail.
UPDATE: Be sure to NOT have filterwin2k set in dnsmasq (/etc/config/dhcp), if you do, gpupdate and AD-domain lookups will fail.
Now your other computers/devices/servers that use the dnsmasq DNS-server can resolve computers that are AD-connected.
Select Edit> Line Operations> Sort Lines as Integer Ascending
Then press Ctrl-F and enter in the find field: ^(.*?)$\s+?^(?=.*^\1$)
Check “Regular expression” and select replace.
To change all the directories to 755 (drwxr-xr-x):
find /mnt/storage -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r–r–):
find /mnt/storage -type f -exec chmod 644 {} \;