I wrote an automatic backup script for my wife's Mint computer. It runs fine on my OpenSUSE laptop and my debian desktop. But it uses methods like tar and scp, and apparently she doesn't have permissions to run those? The error returned when I tried to edit the script reads:
- Code: Select all
Command 'vi' is available in '/usr/bin/vi'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
The same error appears when we try to chmod the script to make it executable, and when the script gets to the scp part.
The output of echo $PATH is:
- Code: Select all
:/home/mj/bin:/bin
Both of those are there because I put them there, which means before I did that, there was NO path declaration. I added /bin so the chmod would work.
I know how to add directories to the path, but it seems odd to have to add paths that are normally available on other distros, so I thought I'd ask here and see if there's something about Mint that I'm not familiar with. Can a normal user run CLI commands under Mint?


using Cinnamon 1.8.8 & Nemo 1.8.3