# Running as user nobody?

**URL:** <https://talk.jekyllrb.com/t/running-as-user-nobody/2208>\
**Category:** Uncategorized\
**Created:** [September 28, 2018, 9:34pm UTC](https://talk.jekyllrb.com/t/running-as-user-nobody/2208 "2018-09-28T21:34:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iaw4](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/iaw4/32/5737_2.png) [@iaw4](https://talk.jekyllrb.com/u/iaw4)\
**Post date:** [September 28, 2018, 9:34pm UTC](https://talk.jekyllrb.com/t/running-as-user-nobody/2208/1 "2018-09-28T21:34:04Z")

</div>

dear jekyllers—I am not a ruby programmer. I have a weird problem. When I run jekyll as myself or as root, it works great. When I run it as user nobody, I get

```auto
# sudo -u nobody /usr/local/bin/jekyll build --incremental --source /home/me/mysource --destination /var/www/mydest --watch
Traceback (most recent call last):
	2: from /usr/local/bin/jekyll:23:in `<main>'
	1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': 
   can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)

```

I tried `bundle` but this was not helpful even as me. It always tells me `Could not locate Gemfile`.

what needs to be rearranged so that nobody can run jekyll, too?

regards,

/iaw

---

<div class="post-metadata">

**Author:** ![andy5995](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/andy5995/32/1372_2.png) [@andy5995](https://talk.jekyllrb.com/u/andy5995)\
**Post date:** [December 7, 2018, 4:43pm UTC](https://talk.jekyllrb.com/t/running-as-user-nobody/2208/2 "2018-12-07T16:43:45Z")

</div>

@iaw4 What operating system are you using, and what are the permissions of the files in the jekyll directory?

---

<div class="post-metadata">

**Author:** ![TerminalAddict](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/terminaladdict/32/1300_2.png) [@TerminalAddict](https://talk.jekyllrb.com/u/TerminalAddict)\
**Post date:** [December 9, 2018, 7:49pm UTC](https://talk.jekyllrb.com/t/running-as-user-nobody/2208/3 "2018-12-09T19:49:42Z")

</div>

the user nobody has nologin shell, and no privs, and no home dir (so therefore has no environment, … and therefore no ruby env)

```
cat /etc/passwd | grep nobody
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin

```

You need to sort out your login creds etc for the user nobody
