1,318 reputation
833
bio website
location Mountainside, NJ
age
visits member for 2 years, 5 months
seen Jun 15 at 20:02

Mar
19
comment proper configuration of visudo NOPASSWD for bash backup script
Thanks. Yes, I had to do the same alteration of /etc/sudoers. So our results are the same for the test script. But my actual script chokes on sudo -v (as in top.bash) and I cannot find any differences in the code (or file permissions).
Mar
18
comment proper configuration of visudo NOPASSWD for bash backup script
I ran /tmp/top.bash without sudo and as my regular user; that's how my real script gets called. It worked. It even works if I add in the while true loop. But in my real script it does not work unless I remove sudo -v and the while true loop. However, I see no differences in the code at all. Very strange...
Mar
18
comment proper configuration of visudo NOPASSWD for bash backup script
Thanks. This all works for me, except for sudo -v in top.bash (and the while loop in my original script). Maybe I can find a way around using those...
Mar
18
accepted proper configuration of visudo NOPASSWD for bash backup script
Mar
18
revised proper configuration of visudo NOPASSWD for bash backup script
added 156 characters in body
Mar
18
asked proper configuration of visudo NOPASSWD for bash backup script
Mar
17
comment Removable USB stick listed as non-removable in /sys/block?
@F.Hauri I did choose your answer now. I learned from both answers (yours and @mikeserv) , so thanks to both of you!
Mar
17
accepted Removable USB stick listed as non-removable in /sys/block?
Mar
17
awarded  Popular Question
Mar
16
revised Removable USB stick listed as non-removable in /sys/block?
clarified grammar
Mar
16
suggested suggested edit on Removable USB stick listed as non-removable in /sys/block?
Mar
16
revised Removable USB stick listed as non-removable in /sys/block?
fixed typo
Mar
16
comment Removable USB stick listed as non-removable in /sys/block?
@F.Hauri - thanks. Works great! I use kdialog, so I posted an answer showing your code working with kdialog here: unix.stackexchange.com/a/119895/15010
Mar
16
answered Removable USB stick listed as non-removable in /sys/block?
Mar
15
comment Removable USB stick listed as non-removable in /sys/block?
@F.Hauri - /sys/block/sdl/events is empty
Mar
15
comment Removable USB stick listed as non-removable in /sys/block?
this works for me. I like it.
Mar
15
answered Bash script to output path to USB flash memory stick
Mar
15
comment Removable USB stick listed as non-removable in /sys/block?
@mikeserv I added output of lsblk -do name,rm. Thanks.
Mar
15
comment Removable USB stick listed as non-removable in /sys/block?
@F.Hauri added lsusb output. Thanks
Mar
15
revised Removable USB stick listed as non-removable in /sys/block?
added more output