Ich arbeite als root und ich habe versucht, die Erlaubnis dieser Datei zu ändern, so dass ich lesen, schreiben und ausführen konnte, aber jedes Mal, wenn ich 'yo hubot' laufen es ändert sich zurück.Datei ausführen Erlaubnis ändert sich wieder in Linux
chmod -v u=rwx /root/.config/configstore/insight-yo.json
mode of â/root/.config/configstore/insight-yo.jsonâ changed from 0400 (r----
----) to 0700 (rwx------)
[[email protected] configstore]# ll
total 8
Die Erlaubnis ändert hier
-rwx------. 1 root root 30 Jul 24 21:38 insight-yo.json
-rwxr-xr-x. 1 root root 55 Jul 24 21:24 update-notifier-npm.json
Dann laufe ich die "yo" gebiete es wirft einen EACCES Fehler
[[email protected] configstore]# yo hubot root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53 root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
Fehler:
EACCES: permission denied, open '/root/.config/configstore/insight- yo.json' : You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at Object.get
(/root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26) at Object.Configstore.get (/root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:13) at Insight.get (/root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22) at Object. (/root/.nvm/versions/node/v6.11.0/lib/node_modules/yo/lib/cli.js:194:47)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)`
ich überprüfen Sie die Datei wieder und bemerkt, es ändert sich zurück
[[email protected] configstore]# ll
total 8
-rw-------. 1 root root 30 Jul 24 21:45 insight-yo.json
-rwxr-xr-x. 1 root root 55 Jul 24 21:24 update-notifier-npm.json`
ich Ihre Frage haben sich verbessert, wie es möglich war, Vorwände Fehler in qoutes mit „>“ Zeichen am Anfang des Fehlers schreiben. –
@AliMajedHA danke – Iruoma