# Disable home shares via a profile setting?

**URL:** <https://community.thinlinc.com/t/disable-home-shares-via-a-profile-setting/1161>\
**Category:** Community Support\
**Tags:** thinlinc\
**Created:** [15 November 2024 18:30 UTC](https://community.thinlinc.com/t/disable-home-shares-via-a-profile-setting/1161 "2024-11-15T18:30:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscroggi](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mscroggi](https://community.thinlinc.com/u/mscroggi)\
**Post date:** [15 November 2024 18:30 UTC](https://community.thinlinc.com/t/disable-home-shares-via-a-profile-setting/1161/1 "2024-11-15T18:30:06Z")

</div>

By default Thinlinc creates an NFS mountpoint of the local drive on the remote host. I would like to avoid creating the shares.

I use the old trick of opening different connections by double-clicking the \*.tlclient files.

I found the commands to manually unmount them etc. but I want to avoid creating the mounts to begin with.

Is there a parameter that can be added to the profiles to prevent the mount exports?

I tried this -

NFS\_EXPORTS=  
NFS\_SERVER\_ENABLED=0

but that didn’t have any affect.

I poked around to see if I could find it but never found anything that looked to address what I wanted.

Any info is greatly appreciated

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/aaron/32/13_2.png) [@aaron](https://community.thinlinc.com/u/aaron)\
**Post date:** [20 November 2024 21:13 UTC](https://community.thinlinc.com/t/disable-home-shares-via-a-profile-setting/1161/2 "2024-11-20T21:13:09Z")

</div>

Hi @mscroggi,

You can disable the mounting of local drives for all users by removing the following symlink on the server:

`/opt/thinlinc/etc/startup.d/40-tl-mount-localdrives`

To disable it for specific profiles might be a bit trickier. You could try calling `/opt/thinlinc/bin/tl-umount-localdrives` as part of the `cmdline` parameter in `profiles.hconf`. Perhaps something like this would work (example for an XFCE profile):

`cmdline=/opt/thinlinc/bin/tl-umount-localdrives && xfce-session`

Let us know how you get on.

---

<div class="post-metadata">

**Author:** ![mscroggi](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mscroggi](https://community.thinlinc.com/u/mscroggi)\
**Post date:** [20 November 2024 21:35 UTC](https://community.thinlinc.com/t/disable-home-shares-via-a-profile-setting/1161/3 "2024-11-20T21:35:58Z")

</div>

@aaron Ah thats perfect! Thanks a ton!

tiny tweak - I found the link in /opt/thinlinc/etc/xstartup.d

Works perfectly.
