Most Popular
1500 questions
277
votes
15 answers
How to Unban an IP properly with Fail2Ban
I'm using Fail2Ban on a server and I'm wondering how to unban an IP properly.
I know I can work with IPTables directly: iptables -D fail2ban-ssh
But is there not a way to do it with the fail2ban-client?
In the manuals it states something…
psp
- 3,033
- 3
- 14
- 14
275
votes
5 answers
What's the difference between IP address 0.0.0.0 and 127.0.0.1?
I know that 127.0.0.1 ~ 127.255.255.254 are the loopback IP addresses for most modern operating systems, and these IP addresses can be used to refer to our own computer.
But what's 0.0.0.0? It seems it also refers to the local computer, so what's…
Jichao
- 2,937
- 4
- 17
- 14
275
votes
2 answers
Create a public SSH key from the private key?
Let's suppose I have a SSH key, but I've deleted the public key part. I have the private key part. Is there some way I can regenerate the public key part?
Amandasaurus
- 30,211
- 62
- 184
- 246
273
votes
6 answers
How to assign permissions to ApplicationPoolIdentity account
In IIS 7 on Windows Server 2008, application pools can be run as the "ApplicationPoolIdentity" account instead of the NetworkService account.
How do I assign permissions to this "ApplicationPoolIdentity" account. It does not appear as a local user…
Triynko
- 3,408
- 6
- 30
- 30
270
votes
15 answers
Finding out what user Apache is running as?
I want to secure a file upload directory on my server as described beautifully here, but I have one problem before I can follow these instructions. I don't know what user Apache is running as.
I've found a suggestion that you can look in httpd.conf…
Anna
268
votes
15 answers
I've inherited a rat's nest of cabling. What now?
You know, you see pictures like below and sort of chuckle until you actually have to deal with it.
I have just inherited something that looks like the picture below. The culture of the organization does not tolerate down time very well, yet I have…
Chad Harrison
- 6,960
- 10
- 28
- 41
268
votes
2 answers
Why is "chmod -R 777 /" destructive?
This is a Canonical Question about File Permission and Why 777 is "destructive".
I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault (reinstall OS). Why does it do anything destructive at…
samwise
- 2,383
- 2
- 14
- 9
262
votes
3 answers
Moving an already-running process to Screen
My office job routinely sees me connected to a Linux box via VNC.
Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that one under Screen in the first place...)
I don't want…
DevSolar
- 2,796
- 3
- 16
- 11
259
votes
6 answers
command for checking Apache configuration
I'm looking for a command that checks the validity of the config files in Apache server on both Debian and RHEL distros. I need to do this prior to restart, so there will be no downtime.
Sigtran
- 2,693
- 2
- 14
- 5
258
votes
4 answers
Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?
This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this:
127.0.0.1 localhost
127.0.1.1 myhostname
On most 'nixes I've used, the second line is omitted, and if I want to add my hostname…
Tom
- 3,133
- 2
- 19
- 19
256
votes
7 answers
What’s the point in having “www” in a URL?
Other than for historical reasons, is there is reason to have “www” in a URL?
Should I create a permanent redirect from www.xyz.com to xyz.com, or from xyz.com to www.xyz.com? Which one would you suggest and why?
Quintin Par
- 4,293
- 10
- 46
- 72
255
votes
10 answers
How can I run Debian stable but install some packages from testing?
Say you're running a server and you don't want to upgrade to Testing (Squeeze) from Stable (Lenny) to just install a required package or two.
What's the best way of installing only certain packages from Testing?
Gareth
- 8,413
- 13
- 43
- 44
254
votes
11 answers
Is it bad to redirect http to https?
I just installed an SSL Certificate on my server.
It then set up a redirect for all traffic on my domain on Port 80 to redirect it to Port 443.
In other words, all my http://example.com traffic is now redirected to the appropriate…
JasonDavis
- 2,658
- 6
- 25
- 32
253
votes
6 answers
how to download the ssl certificate from a website?
I want to download the ssl certificate from, say https://www.google.com, using wget or any other commands. Any unix command line? wget or openssl?
RainDoctor
- 4,162
- 3
- 22
- 25
253
votes
6 answers
How can I find out what AD groups I'm a member of?
I'm running a Windows XP desktop in a corporate environment. How can I find out what AD groups I belong to?
chris
- 3,933
- 6
- 26
- 35