This article details how to restrict access the Public share for the WD EX4 Personal Cloud NAS.
- ssh terminal (PuTTY on windows)
Disable Public Share gn33101 on (WD Community Forum) http://community.wdc.com/t5/Network-Product-Ideas/Disable-Public-Share/idi-p/173194 , comment by krycek – edited : http://community.wdc.com/t5/Network-Product-Ideas/Delete-Public-Share-Folder-or-Restrict-Access/idc-p/862214/highlight/true#M961 Basic vi Commands, Colorado State University Computer Science Department: http://www.cs.colostate.edu/helpdocs/vi.html
Incorrect use may result in data loss or your warranty void. Backup your data. Proceed at your own risk.
- On the Networking settings page of the NAS, enable ssh, and follow the prompts to accept liability and set a new password.
- Open PuTTY and connect the NAS
- username: sshd
- password: as set in step 1
- Change the owner to the admin user by entering the command:
chown admin:allaccount -R /mnt/HD/HD_a2/Public/
- Change the file permissions (admin: full; root group: full; others: read/execute), by entering the command:
chmod 775 -R /mnt/HD/HD_a2/Public/
- Open the CIF/SAMBA configuration file for editing:
- Make the desired changes. In the example below, the share is still visible and editable by registered users:
[ Public ] browseable = yes public = no writable = yes
- Exit vi (and saving as you exit)
- On the Utilities settings page of the NAS, select Reboot, and follow the prompts.
And you’re done. Make sure to let me know in the comments below if this has worked for you, or needs any updates or clarification.