Reputation
6,455
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 8 33
Newest
 Revival
Impact
~190k people reached

Jul
2
comment How to run a script on a remote machine using the screen command and ssh?
I missed the -d.
Jul
2
comment How to run a script on a remote machine using the screen command and ssh?
(Also, ssh:ing in as root pretty much warrants a downvote in and of itself...)
Jul
2
comment How to run a script on a remote machine using the screen command and ssh?
I edited the answer.
Jul
2
comment How to run a script on a remote machine using the screen command and ssh?
This isn't a sysadmin question, though - you're using end-user applications on your server. Which is perfectly OK in itself, but the question fits better on Unix/Linux, and I've voted to move it there.
Jun
26
comment Hiding Password in Shell Scripts
Thanks for the compliment! If this had been ServerFault I would have voted to close it for not being according to business practices... but here I'm more willing to take the time to educate people being new to things.
Jun
26
comment Hiding Password in Shell Scripts
I've written my answer now. What I was trying to get at from you was partly my fifth point - once the credentials are stored in memory they are not fully secure from an attacker with access to the server. Also that your terse answer was not very helpful, even though not incorrect. I'm thinking of pointing at it the next time someone complains that we at ServerFault are not as nice as the people at Unix/Linux :-)
Jun
26
comment Hiding Password in Shell Scripts
It would have been really interesting to get to read an actual answer that the poster could have used to implement a more secure system from you. Do you think you might write one at some point?
Jun
26
comment Hiding Password in Shell Scripts
You are claiming to know my answer before I've written it.
Jun
26
comment Hiding Password in Shell Scripts
Your predictive powers are lacking.
Jun
26
comment Hiding Password in Shell Scripts
Firstly, At no point did I recommend using passwords in scripts. Secondly, for a script that is run interactively, obviously entering the password or the key is trivial - the problem is when the scripts are not run interactively. I'd be very interested in your take on this in an answer.
Jun
26
comment Hiding Password in Shell Scripts
And then you have the problem of protecting the key - which, again, if you have access to the script, then you can get at the credentials, whether they be a password or a file. The problem isn't new, but that doesn't mean that it's easily solved for your average shell script writer.
Jun
26
comment Hiding Password in Shell Scripts
Sure, but again within the constraints of a shell script, anyone who can get at it can also get at the certificate...
Jun
26
comment Hiding Password in Shell Scripts
I'm unclear on how this will solve the problem of a) being able to connect to a service requiring a password, and b) users being able to see the script and thus being able to figure out the authentication details, whether those are passwords or not
Jun
25
comment Unable to use ssh-copy-id - mktemp: failed to create file via template
@wilhil - file /path/to/program is your friend :-)
Jun
24
comment Gedit start problem in kali linux
Try reinstalling gedit - seems the binary is b0rken.
Jun
23
comment Restart firewall from bash file
What happens if you run the script using set -x?
Jun
23
comment Alias name for ip address
Please don't cross-post questions to multiple sites (serverfault.com/questions/700893/…).
Jun
12
comment How to give root power to another user
@reinierpost However, this is RHEL, not ubuntu.
May
29
comment Inject lines to bash history
@CameronKerr Have a look at the answer just below this one (serverfault.com/a/695115/120438 ).The downside to using Ctrl+R in this particular case is that it gives you the relevant commands one at a time, while ewwhite's approach returns a list of all relevant commands.
May
27
comment Unexpected Bash completion of ~ on OS X
It's the same when I try it on FreeBSD.