I take it `visudo` is in /home/pi/bin and you expect it to be executed by `sudo visudo`Following code executed:but upon verification withCode:
PATH=/home/pi/bin:$PATH
this new path does not appear..Code:
sudo visudo
What now?
How to get a path properly programmed?
SUDO changes the path it looks on I just discovered at https://unix.stackexchange.com/question ... serve-path
I was able to get one of my local commands to run using "$ sudo env "PATH=$PATH"
Code:
paul@p400PI:~ $ send_email_attachmentusage: send_email_attachment [-h] --subject SUBJECT --file FILE [--debug] [--nosend]send_email_attachment: error: the following arguments are required: --subject, --filepaul@p400PI:~ $ sudo send_email_attachmentsudo: send_email_attachment: command not foundpaul@p400PI:~ $ sudo env "PATH=$PATH" send_email_attachmentusage: send_email_attachment [-h] --subject SUBJECT --file FILE [--debug] [--nosend]send_email_attachment: error: the following arguments are required: --subject, --file
Statistics: Posted by DS256 — Tue Jan 07, 2025 7:55 pm