V
V
Vyacheslav Shevchenko2019-09-12 19:06:37
linux
Vyacheslav Shevchenko, 2019-09-12 19:06:37

How to allow execution of a file from the root folder?

Hello. I compiled node-sass and placed it in the node global modules folder: /root/.nvm/versions/node/v10.16.3/lib/node_modules/node-sass/
Executable file /root/.nvm/versions/node/v10. 16.3/lib/node_modules/node-sass/bin/node-sass has "-rwxrwxrwx" permissions.
But when I try to execute this file not as root, I get an error about lack of access rights.
Tried to create a link to /usr/bin. The link is created but the rights are not enough to start.
How to allow execution of this file by other users?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2019-09-13
@WebDev2030

How to allow execution of this file by other users?

Leave the root alone. Do not work from him, never collect anything on his behalf, do everything through su / sudo. And executable modules "for all" should be in the common space - /usr/bin, /usr/local/bin, /opt/bin etc.

P
Pavel Mezhuev, 2019-09-12
@mezhuev

A non-root does not have access to / root, so what further rights are assigned there no longer plays a role.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question