WD EX4 – Disable Public Share

WD My Cloud EX4 NAS

Scope

This article details how to restrict access the Public share for the WD EX4 Personal Cloud NAS.

Requirements

  • ssh terminal (PuTTY on windows)

References

Disable Public Share by on ‎04-15-2011 06:38 AM (WD Community Forum) http://community.wdc.com/t5/Network-Product-Ideas/Disable-Public-Share/idi-p/173194 Delete Public Share Folder or Restrict Access, comment by by ‎03-06-2015 10:20 AM – edited ‎03-06-2015 01:51 PM: 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

Warnings

Incorrect use may result in data loss or your warranty void. Backup your data. Proceed at your own risk.

Method

  1. On the Networking settings page of the NAS, enable ssh, and follow the prompts to accept liability and set a new password.
  2. Open PuTTY and connect the NAS
    1. username: sshd
    2. password: as set in step 1
  3. Change the owner to the admin user by entering the command:
    chown admin:allaccount -R /mnt/HD/HD_a2/Public/
  4. Change the file permissions (admin: full; root group: full; others: read/execute), by entering the command:
    chmod 775 -R /mnt/HD/HD_a2/Public/
  5. Open the CIF/SAMBA configuration file for editing:
    vi /etc/samba/smb.conf
  6. 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
  7. Exit vi (and saving as you exit)
  8. 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.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s