Following a re-installation of Ubuntu and all my files and odd bits of s/w, a remaining problem concerns the implementation of my scripts. I keep them in a directory called (for historical reasons) .bin in my home directory, and I have added it to my .profile file so that the system can find it when one of its scripts is called.
As an inveterate photographer of my garden flowers I wrote a script to download the photos from my camera into a directory for later manipulation. The script is called photos_get and the dialogue goes like this:
keith@E5570:~$ photos_get
bash: /home/keith/.bin/photos_get: Permission denied (why, I donât know)
keith@E5570:~$ sudo photos_get
sudo: photos_get: command not found
keith@E5570:~$ chown -Rv keith /home/keith/.bin | head -n 3
ownership of â/home/keith/.bin/backup_file_listâ retained as keith
ownership of â/home/keith/.bin/backup_reminder.pngâ retained as keith
ownership of â/home/keith/.bin/.xdp_backup_v4.3.N4CO50â retained as keith
âŚetc etcâŚ
keith@E5570:~$
andâŚ
keith@E5570:~$ chown -Rv keith /home/keith/.bin | grep âphotos_getâ
ownership of â/home/keith/.bin/photos_get_2â retained as keith
ownership of â/home/keith/.bin/photos_getâ retained as keith
keith@E5570:~$
⌠does recognise the file although the photos_get command still isnât recognised.
It looks like the .profile file is not being recognised:
$PATH contains /usr/games but Games are no longer listed in the Applications menu, so it begins to look like $PATH is not being recognised by the system, although this doesnât seem likely.
Before finding your post I had a sudden thought about permissions and the command ls -l showed that copying the .bin directory back to my PC from the backup had left the contents without execution permission!!!
No idea why that might be but I have solved the problem - as had you.
Many thanks for your advice - and I am sorry to have troubled you.