# Workaround for needing sudo access for webserver user

**URL:** <https://forum.ghost.org/t/workaround-for-needing-sudo-access-for-webserver-user/18262>\
**Category:** Migrations\
**Created:** [November 15, 2020, 2:57am UTC](https://forum.ghost.org/t/workaround-for-needing-sudo-access-for-webserver-user/18262 "2020-11-15T02:57:51Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [November 15, 2020, 4:03am UTC](https://forum.ghost.org/t/workaround-for-needing-sudo-access-for-webserver-user/18262/8 "2020-11-15T04:03:34Z")

</div>

_Again, please take a moment to read the CoC linked in my previous thread._

You’re right that I didn’t tell you how, and that’s because I forgot that the CLI handles the issue you mentioned

> [@unixandria](#):
>
> And of course I’m going to run the install as the user it is going to be running as, otherwise it’s going to not going to have access

by running `sudo chown -R ghost:ghost /path/to/install/content` because that’s the only folder the system user needs access to (everything else needs to be read-only). I was expecting that saying no to systemd and nginx would be enough to have the CLI not ask for sudo access

You can bypass all sudo requirements by adding the `--no-setup-linux-user` flag to the installation and saying no to systemd and nginx. (e.g. `ghost install --no-setup-linux-user`)

Just so you understand, the CLI has a happy path that works for most users. It’s possible to use the CLI outside of the happy path, but there’s a lot less documentation and hand-holding because functionality is a “best-effort” guarantee.

---

_[View the full topic](https://forum.ghost.org/t/workaround-for-needing-sudo-access-for-webserver-user/18262)._
