![]() ![]() The sudo configuration by default will reset the path regardless of how sudo is called. Sudo: mount-remove-hiberfile: command not found ![]() rwxr-xr-x 1 root root 84 May 21 16:59 space-usedĭrwxr-xr-x 1 root root 0 May 21 17:00 sudo mount-remove-hiberfile rwxr-xr-x 1 root root 80 May 21 16:59 portquiz ![]() rwxr-xr-x 1 root root 3881 May 21 16:59 firewall.save rwxr-xr-x 1 root root 5142 May 21 16:59 firewall rwxr-xr-x 1 root root 164 May 21 16:59 download rwxr-xr-x 1 root root 2185 May 21 16:59 connected rwxr-xr-x 1 root root 109 May 21 16:59 check-port rwxr-xr-x 1 root root 2283 May 21 16:59 backup UPDATE (include a paste that includes the command and the error and directory ) ls -l /scripts/ rwxr-xr-x 1 root root 1085 May 16 21:25 mount-remove-hiberfile rwxr-xr-x 1 root root 370 May 16 22:45 extractgst.sh rwxr-xr-x 1 root root 769 Apr 28 20:47 create-desktop-file rwxr-xr-x 1 root root 40 Apr 26 22:45 apt-update rwxr-xr-x 1 root root 95 Apr 26 22:45 apt-manage Note: I have found a few questions regarding this but none which answered my question The script 'mount-remove-hiberfile' cannot be run as a normal user, thus I would need to run sudo mount-remove-hiberfile. My User: echo $PATH //and 'sudo echo $PATH' return the same path echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/scripts Scripts folder: '/scripts' (all my custom scripts are kept here) Running a script as sudo returns sudo: mount-remove-hiberfile: command not found ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |