× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973

Re: How can I disable access to home/personal shares

e_borri
Aspirant

How can I disable access to home/personal shares

I see every account has its own home share but I cannot find a way to disable this feature.
On the old Readynas NV+ (version 1) this option was available, but I cannot find it in the new NV+ V. 2.

Am I missing something?

Ciao
Enzo
Message 1 of 14
Leia
NETGEAR Employee Retired

Re: How can I disable access to home/personal shares

Once a local user added, his home directory is added too. It cannot be disabled in NV+ v2 and Duo v2.
Message 2 of 14
e_borri
Aspirant

Re: How can I disable access to home/personal shares

Many thanks, Leia;

I hope this can be fixed for next drop or in the final release of Raidiator. 🙂

Ciao and thanks again!
Enzo
Message 3 of 14
e_borri
Aspirant

Re: How can I disable access to home/personal shares

I wonder if I can hack the system editing the file
/etc/default/config/etc/default/services
indicating "USER_HOME_DIRECTORY=0" instead than the current value "USER_HOME_DIRECTORY=1"

In fact, maybe I can get the configuration archive from the device, i can edit it and I can upload it... 🙂

But I prefer wait for an official release of Raidiator allowing this feature. 🙂

Ciao
Enzo
Message 4 of 14
zigdapig
Aspirant

Re: How can I disable access to home/personal shares

Hi Enzo,

Here is a simple solution to your problem (which I used myself) :

Just login as root via the SSH root terminal.
Then go to /c/home
There you will see the user-directories. Suppose yours is /c/home/enzo
Then just change the owner and the group properties of the "enzo" directory to "admin".

cd /c/home
chown admin enzo
chgrp admin enzo

Et voila, the directory will not show up as a share anymore !

Kind regards,

Z.
Message 5 of 14
e_borri
Aspirant

Re: How can I disable access to home/personal shares

Cool! Thanks for the tip!!!

Tomorrow I will try to do this. 🙂

Thanks again!
Enzo
Message 6 of 14
Unhappy_Custom2
Aspirant

Re: How can I disable access to home/personal shares

[quote="zigdapig"]
cd /c/home
chown admin enzo
chgrp admin enzo


My UNIX is a little rusty, but wouldn't that simply convert it to a share that only the admin account has access/visibility to?
I'm not suggesting this would be a bad thing, in fact it might be the answer to what I'd prefer to do:
If that change is applied, would the target shares then be visible in ReadyNAS Dashboard so that they can be managed there?
Message 7 of 14
mdgm-ntgr
NETGEAR Employee Retired

Re: How can I disable access to home/personal shares

To disable private home shares you can edit /etc/default/services using vi
change the line

USER_HOME_DIRECTORY=1

to

USER_HOME_DIRECTORY=0

Then reboot your NAS.

I can make an add-on to do this.

Edit: Looks like I need to edit an entry in a sqlite3 database file as well.
Message 8 of 14
Unhappy_Custom2
Aspirant

Re: How can I disable access to home/personal shares

I thought I saw a post earlier that said the file is locked down in the current version, but I could have misread.

How hard is it to write add-ons for these devices?
Might be a useful skill to have in my back pocket.
Message 9 of 14
mdgm-ntgr
NETGEAR Employee Retired

Re: How can I disable access to home/personal shares

Looks like I need to edit an entry in a sqlite3 database file as well to make this change stick.

It's not very hard to write an add-on like this. It just takes a bit of time.
Message 10 of 14
Unhappy_Custom2
Aspirant

Re: How can I disable access to home/personal shares

Wow... I guess that means you're already working on it. 😄
Thanks once more, and best of luck!
I know I'm not the only one out there looking for an add-on for that.

If you get stuck, please post back just the same, so I know to try the SSH method instead.
Message 11 of 14
mdgm-ntgr
NETGEAR Employee Retired

Re: How can I disable access to home/personal shares

A bit stuck on the add-on at the moment (hopefully a solution will be found in the next few days).

Here is the sqlite3 command that needs to be entered

# sqlite3 /var/readynasd/db.sq3 "UPDATE service_misc SET val='0' WHERE key='USER_HOME_DIRECTORY'"
Message 12 of 14
mrQQ
Apprentice

Re: How can I disable access to home/personal shares

this doesn't work for me on 6.0.8 - always gets set back to 1 in services file, remains 0 in db..
Message 13 of 14
mrQQ
Apprentice

Re: How can I disable access to home/personal shares

found it, you have to use table service_cifs
Message 14 of 14
Discussion stats
  • 13 replies
  • 7543 views
  • 0 kudos
  • 6 in conversation
Announcements