Comments on: How to Run Shell Scripts with Sudo Command in Linux https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 14:08:37 +0000 hourly 1 By: Leo Smith https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/comment-page-1/#comment-1920807 Sun, 27 Nov 2022 07:50:49 +0000 https://www.tecmint.com/?p=27687#comment-1920807 Sure would have been nice to include *HOW* to “edit with visudo” in this tutorial.

The program seems to have zero instructions, and most folks will have never used it before.

]]>
By: Aaron Kili https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/comment-page-1/#comment-981583 Wed, 11 Apr 2018 12:34:04 +0000 https://www.tecmint.com/?p=27687#comment-981583 In reply to Kelly Clarke.

@Kelly

Many thanks for the feedback, and for always following us.

]]>
By: Kelly Clarke https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/comment-page-1/#comment-981412 Tue, 10 Apr 2018 21:41:24 +0000 https://www.tecmint.com/?p=27687#comment-981412 I seem to always turn to tecmint for just about everything. Thanks for all you do. This has become my main go to site.

]]>
By: Aaron Kili https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/comment-page-1/#comment-929457 Tue, 31 Oct 2017 08:10:10 +0000 https://www.tecmint.com/?p=27687#comment-929457 In reply to Jon.

@Jon

secure_path is a configuration option for sudo command not the shell environment. The directories in it can only be viewed or set by opening the /etc/sudoers file.

]]>
By: Jon https://www.tecmint.com/run-shell-scripts-with-sudo-command-in-linux/comment-page-1/#comment-929261 Mon, 30 Oct 2017 19:56:38 +0000 https://www.tecmint.com/?p=27687#comment-929261 Thanks – I learned something today. :)

However, hoping you might be able to advise why this occurs?

$ sudo cat /etc/sudoers | grep secure_path
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
$ sudo echo $secure_path

No output? Shouldn’t $secure_path be set?

]]>