Permissions error as root user?

Hi,

During the install of Keystone JS on Linode with Ubuntu 64 bit, I run through the Keystone JS questionaire and then get a permissions error when it tries to mkdir what looks like a subdirectory:

    You can skip this for now (we'll include demo account details)

    Please enter your Cloudinary URL: 
? ------------------------------------------------
    Finally, would you like to include extra code comments in
    your project? If you're new to Keystone, these may be helpful. Yes
/usr/local/lib/node_modules/generator-keystone/node_modules/mkdirp/index.js:90
                    throw err0;
                    ^

Error: EACCES: permission denied, mkdir '/var/www/html/stepbystepcoding.com/models'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:794:18)
    at Function.sync (/usr/local/lib/node_modules/generator-keystone/node_modules/mkdirp/index.js:71:13)
    at KeystoneGenerator.models (/usr/local/lib/node_modules/generator-keystone/app/index.js:345:7)
    at /usr/local/lib/node_modules/generator-keystone/node_modules/yeoman-generator/lib/base.js:395:14
    at processImmediate [as _immediateCallback] (timers.js:383:17)
root@linhost:/var/www/html/stepbystepcoding.com# ^C
root@linhost:/var/www/html/stepbystepcoding.com# 

You can see I'm the root user. How can I fix this type of error?

1 Reply

Solved! I used the following line:

chmod g+rwx /root /root/.config /root/.config/var/www/html/[my domain address)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct