Most Popular

1500 questions
71
votes
21 answers

How the heck is http://to./ a valid domain name?

Apparently it's a URL shortener. It resolves just fine in Chrome and Firefox. How is this a valid top-level domain? Update: for the people saying it's browser shenanigans, why is it that: http://com./ does not take me to: http://www.com/? And, do…
Christopher
  • 1,381
  • 1
  • 12
  • 22
71
votes
3 answers

How to use docker secrets without a swarm cluster?

Currently we im a running application on a single docker container, the application needs all sorts of sensitive data to be passed as environments variables, Im putting those on the run command so they don't end up in the image and then on a…
71
votes
7 answers

What's the easiest way to make my old init script work in systemd?

I don't want to do the right thing by creating a new systemd script, I just want my old init script to work again now that I've upgraded my system to an OS that's using systemd. I've briefly researched how to convert init scripts and how to write…
mlissner
  • 1,090
71
votes
6 answers

Straight forward way to run ssh-agent and ssh-add on login via SSH?

I'm trying to have the following commands be auto-executed when I login to my server via ssh: ssh-agent /bin/bash ssh-add ~/.ssh/id_rsa My ssh key has a passphrase and I'm fine with entering it once per login. I tried putting this in my .bashrc…
71
votes
7 answers

how to fix "send-mail: Authorization failed 534 5.7.14 "

I am trying to create e-mail alert on ssh root login so I had to install ssmtp and mail utility. Then I configured ssmtp.conf file as follows : # Config file for sSMTP sendmail # The person who gets all mail for userids < 1000 # Make this empty to…
Connect
  • 821
71
votes
2 answers

When building from Dockerfile, Debian/Ubuntu package install debconf Noninteractive install not allowed

I've set the following environment so that no question/dialog is asked during apt-get install: ENV DEBIAN_FRONTEND noninteractive # export DEBIAN_FRONTEND="noninteractive" Which is equivalent to: export DEBIAN_FRONTEND="noninteractive" Yet,…
Phil L.
  • 1,165
71
votes
18 answers

`mysql_upgrade` is failing with no real reason given

I'm upgrading from MySQL 5.1 to 5.5, running mysql_upgrade and getting this output: # mysql_upgrade Looking for 'mysql' as: mysql Looking for 'mysqlcheck' as: mysqlcheck FATAL ERROR: Upgrade failed Any ideas on where to look for what's happening…
71
votes
6 answers

What should NOT be managed by puppet?

I'm learning my way through configuration management in general and using puppet to implement it in particular, and I'm wondering what aspects of a system, if any, should not be managed with puppet? As an example we usually take for granted that…
Luke404
  • 5,886
  • 4
  • 48
  • 58
71
votes
4 answers

Is there a difference between how two ampersands and a semi-colon operate in bash?

If I wanted to run two separate commands on one line, I could do this: cd /home; ls -al or this: cd /home && ls -al And I get the same results. However, what is going on in the background with these two methods? What is the functional difference…
Sean P
  • 727
71
votes
6 answers

IIS complains about a locked section - how can I find out where it's locked?

I have this section in my web.config:
Michael Stum
  • 4,060
71
votes
86 answers

What are your favorite open source tools?

I believe every system administrator is used to open source by now. From Apache to Firefox or Linux, everyone uses it at least a little bit. However, most open source developers are not good in marketing, so I know that there are hundreds of very…
sucuri
  • 2,877
71
votes
7 answers

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld /var/run/mysqld/mysqld.sock I'm trying to disable that socket to…
Max
  • 3,563
71
votes
20 answers

How to create an SHA-512 hashed password for shadow?

The previous SF questions I've seen have lead to answers that produce MD5 hashed password. Does anyone have a suggestion on to produce an SHA-512 hashed password? I'd prefer a one liner instead of a script but, if a script is the only solution,…
Belmin Fernandez
  • 10,919
  • 28
  • 86
  • 149
71
votes
8 answers

Is there a way to redirect output to a file without buffering on unix/linux?

I have a long running batch process that outputs some debug and process information to stdout. If I just run from a terminal I can keep track of 'where it is' but then the data gets too much and scrolls off the screen. If I redirect to output to a…
71
votes
6 answers

How to capture ack or syn packets by Tcpdump?

I want to use a filter rule to capture only ack or syn packets. How do I do this?
larry
  • 4,107