Reputation
6,720
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 9 35
Newest
 Nice Answer
Impact
~219k people reached

Jul
20
comment Renaming: How to attach a word or rename multiple files
It's OK to edit someone else's answer to fix things like this.
Jul
20
comment Renaming: How to attach a word or rename multiple files
There's no need to use ls - just use a fileglob to expand the filenames directly.
Jul
20
comment Renaming: How to attach a word or rename multiple files
@kasperd True - while in this particular case there were no filenames with spaces, it's a good habit to get into.
Jul
16
comment How to duplicate a daemon?
@Freedom To see which is which, run `ps auxw" which will use a wider output format and thus give you more information about the arguments.
Jul
14
comment User has write permissions but cannot write to files
Can you write to those files if you do it in some other manner, e.g. by using echo "foo" >> /path/to/network/file?
Jul
9
comment How to run multiple sudo commands over already opened ssh connection
Start by logging in and running sudo -l - that will tell you what permissions you have.
Jul
9
comment How to run multiple sudo commands over already opened ssh connection
@dnup1092 If you have the ability to use sudo to switch to root, then you have the ability to change the configuration.
Jul
7
comment sudo rm -rf returns “cannot remove directory” on empty directory owned by root
Is it possible to rename the directory?
Jul
7
comment Should the key for an automatically running cron job that runs over ssh not have a passphrase?
In addition to the things you've already mentioned, I'd recommend also limiting where the key can connect from. You do this by adding from=ipaddress.or.hostname at the start of the key, together with the command.
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.