Most Popular

1500 questions
142
votes
69 answers

The Joel Test for system administrator jobs

Based on “Organizational issues” — sore spots of IT? I think it would be fair to say that system administrators need to determine if a place is worth working at. There is a similar well known test by Joel for programmers. What are the 12 questions…
Nick Kavadias
  • 10,866
141
votes
39 answers

What useful things can one add to one's .bashrc?

Is there anything that you can't live without and will make my life SO much easier? Here are some that I use ('diskspace' & 'folders' are particularly handy). # some more ls aliases alias ll='ls -alh' alias la='ls -A' alias l='ls -CFlh' alias…
Gareth
  • 8,733
141
votes
4 answers

Postgresql: what does GRANT ALL PRIVILEGES ON DATABASE do?

I'm trying to grant all privileges on all tables of a given database to a new postgres user (not the owner). It seems that GRANT ALL PRIVILEGES ON DATABASE my_db TO new_user; does not do that. After running said command successfully (as the…
rz.
  • 1,513
140
votes
4 answers

How to handle security updates within Docker containers?

When deploying applications onto servers, there is typically a separation between what the application bundles with itself and what it expects from the platform (operating system and installed packages) to provide. One point of this is that the…
Make Mark
  • 2,024
  • 4
  • 17
  • 16
140
votes
4 answers

What type of DNS record is needed to make a subdomain?

I'm making a website, and I need a sub-domain. I need to add the new part to my website, but I don't know which type of DNS record to add in the DNS console to point to this new site. Is it A or CNAME?
Keavon
  • 1,501
140
votes
8 answers

Can I make `find` return non-0 when no matching files are found?

Even when /tmp has no file called something, searching for it with find will return 0: $ find /tmp -name something $ echo $? 0 How can I get a non-zero exit status when find does not find anything?
yael
  • 1,599
139
votes
4 answers

What does Apache's "Require all granted" really do?

I've just update my Apache server to Apache/2.4.6 which is running under Ubuntu 13.04. I used to have a vhost file that had the following: AllowOverride All But when I ran that I…
139
votes
4 answers

Nginx: How do I forward an HTTP request to another port?

What I want to do is: When someone visits http://localhost/route/abc the server responds exactly the same as http://localhost:9000/abc Now I configure my Nginx server like this: location /route { proxy_pass http://127.0.0.1:9000; } The HTTP…
WoooHaaaa
  • 1,755
139
votes
5 answers

How does IPv6 subnetting work and how does it differ from IPv4 subnetting?

This is a Canonical Question about IPv6 Subnetting. Related: How does IPv4 Subnetting Work? I know a lot about IPv4 Subnetting, and as I prepare to (deploy|work on) an IPv6 network I need to know how much of this knowledge is transferable and…
Michael Hampton
  • 252,907
138
votes
24 answers

How do you make it obvious you are on a production system?

A few of us at my company have root access on production servers. We are looking for a good way to make it exceedingly clear when we have ssh'd in. A few ideas we have had are: Bright red prompt Answer a riddle before getting a shell Type a random…
Sionide21
  • 1,553
137
votes
4 answers

Why do we use a OS Base Image with Docker if containers have no Guest OS?

I've just started to study Docker and there's something that's being quite confusing for me. As I've read on Docker's website a container is different from a virtual machine. As I understood a container is just a sandbox inside of which an entire…
137
votes
18 answers

How do you increase a KVM guest's disk space?

I setup an Ubuntu guest on a CentOS KVM host with initially 6GB of disk space. How do I go about increasing the Ubuntu guest's disk space from the command line? EDIT #1: I'm using a disk image file (qemu).
137
votes
4 answers

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
user962449
  • 1,497
137
votes
7 answers

Certification authority root certificate expiry and renewal

In 2004, I set up a small certification authority using OpenSSL on Linux and the simple management scripts provided with OpenVPN. In accordance with the guides I found at the time, I set the validity period for the root CA certificate to 10 years.…
Remy Blank
  • 2,055
137
votes
13 answers

How to tell if a Linux system is big endian or little endian?

I know that certain processors are Big Endian and others are Little Endian. But is there a command, bash script, python script or series of commands that can be used at the command line to determine if a system is Big Endian or Little Endian?…
Jake Wilson
  • 9,133