Felix:
OH! I did not know that. Thank you! It has "#!/bin/bash" so I must have known it when I wrote the script 5 years ago! Your question about a launcher prompted me to create one and it works perfectly. I just have to figure out how to keep the terminal open so I can see any errors. I used to ...
Search found 79 matches
- Sun Nov 10, 2024 2:52 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
- Sun Nov 10, 2024 2:04 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Re: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
sudo PATH="$PATH" bash myscript works! It runs the script. Now I just need to find a way to automate that.
Its all about removing key strokes without compromising security for me. I once told one of my programmers when I was a project manager that I didn't care if it took 500 lines of code to ...
Its all about removing key strokes without compromising security for me. I once told one of my programmers when I was a project manager that I didn't care if it took 500 lines of code to ...
- Sun Nov 10, 2024 1:56 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Re: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
I am very sorry fehlix. I didn't realize you needed that. I use the command line and start a bash script with "bash filename.sh" works from any directory when not not using "sudo". Didn't know there was any other way. It never occurred to me to make a launcher! I have never used a launcher and only ...
- Sun Nov 10, 2024 1:50 pm
- Forum: MX Help
- Topic: Latest Update Prevents My Computer from Booting
- Replies: 9
- Views: 338
Re: Latest Update Prevents My Computer from Booting
I was wrong. Mint provides a check list about which upgrades are security-related and provides check boxes to pick and choose updates. So on my Mint computer (which I rarely use because I like MX so much more) I can do that and I never check any box that is not a security update. I cannot do that ...
- Sun Nov 10, 2024 1:24 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Re: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
I tried that. I have no idea what the significance is but here are the results:
q@mx:/home/q
$ sudo bash -c 'echo $PATH'
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
q@mx:/home/q
$ sudo bash -c "echo $PATH"
/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin ...
q@mx:/home/q
$ sudo bash -c 'echo $PATH'
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
q@mx:/home/q
$ sudo bash -c "echo $PATH"
/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin ...
- Sun Nov 10, 2024 1:13 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Re: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
I did'nt really understand but I ran:
sudo PATH="$PATH" env | grep -E '^HOME|^PATH'
PATH=/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
HOME=/root
Seems the same as yours. SO I think this means that sudo has a different env path. SO does that mean I always ...
sudo PATH="$PATH" env | grep -E '^HOME|^PATH'
PATH=/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
HOME=/root
Seems the same as yours. SO I think this means that sudo has a different env path. SO does that mean I always ...
- Sun Nov 10, 2024 1:01 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Re: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
I used:
$ sudo bash -c "echo $PATH"
/home/q/.cargo/bin:/home/q/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/q/Desktop:/home/q/Desktop/Scripts/:/home/q/Applications/:/home/q/Scripts/
Using E did not help. sudo bash -E "backupforinternaldrive2024x.sh ...
$ sudo bash -c "echo $PATH"
/home/q/.cargo/bin:/home/q/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/q/Desktop:/home/q/Desktop/Scripts/:/home/q/Applications/:/home/q/Scripts/
Using E did not help. sudo bash -E "backupforinternaldrive2024x.sh ...
- Sun Nov 10, 2024 12:33 pm
- Forum: MX Help
- Topic: Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
- Replies: 16
- Views: 283
Sudo cannot find scripts in the user's home despite the ENV set correctly [Solved]
I am trying to run a script, who's path is within subdirectories in the user's home, and is listed in the env, and works perfectly when run by the user from any directory without specifying its path, but only works with sudo when using the absolute path. In that case it works perfectly also.
I can ...
I can ...
- Wed May 08, 2024 11:47 pm
- Forum: MX Help
- Topic: Latest Update Prevents My Computer from Booting
- Replies: 9
- Views: 338
Re: Latest Update Prevents My Computer from Booting
DukeComposed:
Thanks for you help but you may have misunderstood my concern? I do not want to upgrade the kernel! I do not want to upgrade anything! But I do not want to miss any security-related upgrades either. So to make it clear:
1. While some Linux fan-boys still claim the Linux is immune to ...
Thanks for you help but you may have misunderstood my concern? I do not want to upgrade the kernel! I do not want to upgrade anything! But I do not want to miss any security-related upgrades either. So to make it clear:
1. While some Linux fan-boys still claim the Linux is immune to ...
- Wed May 08, 2024 10:51 pm
- Forum: MX Help
- Topic: Latest Update Prevents My Computer from Booting
- Replies: 9
- Views: 338
Re: Latest Update Prevents My Computer from Booting
Thanks Danger D, I fixed the problem temporarily by timeshifting back 3 days to before the upgrade. I am on version 525 for Nvidia and it works fine in Kernel 510.0-28, however, after the upgrade I could not boot to any kernel version from the advanced grub menu. Got the exact same problem and a ...