# You don't have permission to access /UI on this server

**URL:** <https://community.wd.com/t/you-dont-have-permission-to-access-ui-on-this-server/164403>\
**Category:** Western Digital Dashboard\
**Created:** [May 19, 2016, 7:01am UTC](https://community.wd.com/t/you-dont-have-permission-to-access-ui-on-this-server/164403 "2016-05-19T07:01:59Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jwprice](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@jwprice](https://community.wd.com/u/jwprice)\
**Post date:** [July 28, 2016, 7:20am UTC](https://community.wd.com/t/you-dont-have-permission-to-access-ui-on-this-server/164403/11 "2016-07-28T07:20:50Z")

</div>

> [@Nazar78](#):
>
> Instead add your VPN subnet to the restriction:  
> `sed -ri 's/(\$\{LOCAL_NET\})$/\1 192.168.2.0\/24/' /etc/apache2/sites-available/wdnas-ui.conf>/dev/null 2>&1;`
> 
> Then restart the daemon:  
> `service apache2 restart;`

When I add the local net info there’s no error, cat wdnas-ui.conf shows edits…  
However when I service apache2 restart I get an error  
“-sh: service:not found”  
Should I be in a different location in the shh session before using the restart command? When I use the reboot command it reboots the drive, and the modification made to the wdnas-ui is no longer there.

When at root, doing “/etc/apache2 restart”  
I get a “Permission denied” error message .

I’m on the current version 2.21.111

---

_[View the full topic](https://community.wd.com/t/you-dont-have-permission-to-access-ui-on-this-server/164403)._
