Most Popular
1500 questions
50
votes
3 answers
How to forward port 80 to another port on the samemachine?
How can I forward requests coming in on port 80 to another port on the same linux machine?
I used to do this by changing nat.conf, but this machine that I'm using doesn't have NAT. What's the alternative?
Nohsib
- 601
50
votes
7 answers
Get IP addresses and computer names in the same network
What is the command that can be used to get the IP address and the names of the computers that are located in the same network?
I am running Windows
Graviton
- 2,935
50
votes
5 answers
How to export result of a MySQL query using phpMyAdmin 3.4.3?
I've got a 30K row table
When I run a long, 50-line query on that table, a GROUP function reduces the number of rows to 7K
I want to export the grouped 7K rows as a new table, or save them as a
CSV
When I attempt to export, instead of getting the…
grape
- 501
50
votes
3 answers
How to use openssh sftp command with a RSA/DSA key specified from the command line
The Openssh ssh and scp command provied an -i command line option to specify the path to the RSA/DSA key to be used for authentication.
Looking at the sftp man pages I was not able to find a way to specify the RSA/DSA key.
I am looking for a way to…
Adi Roiban
- 833
50
votes
6 answers
How to check that an OpenVPN server is listening on a remote port without using OpenVPN client?
I need to check that an OpenVPN (UDP) server is up and accessible on a given host:port.
I only have a plain Windows XP computer with no OpenVPN client (and no chance to install it) and no keys needed to connect to the server - just common WinXP…
Ivan
- 3,398
50
votes
7 answers
How can I remove balanced node from haproxy via command line?
I have haproxy running as my load-balancer and from the stats web interface that comes with haproxy, I can put a web server into maintenance mode (and bring it back out again) - which is great!
However, I also want to be able to perform that same…
isNaN1247
- 1,705
50
votes
2 answers
What does the suffix .d mean in Linux?
I am configuring apache and by default I have the directories /etc/httpd/conf and /etc/httpd/conf.d. What is the difference?
Also you can see the suffix in many other directories like /etc/init.d, /etc/cron.d, etc...
SCL
- 905
50
votes
3 answers
How do I clear the "s" permission on a directory in Linux?
I have a directory that is showing up with the permission mask drwsrwsr-x. When I try to reset the permissions to 755 the S still remains.
What is the "s" and why cant I change the permissions back to 775 (drwxrwxr-x)?
Matt Elhotiby
- 949
50
votes
13 answers
Ban IP address based on X number of unsuccessful login attempts?
Is it possible to ban an IP address after X number of unsuccessful login attempts to a Windows Server? Not to a particular account, which I know how to do, but to the whole machine.
We get hit pretty hard by brute force attacks trying to guess…
HeavyWave
- 755
- 1
- 6
- 9
50
votes
4 answers
50
votes
3 answers
stop apache from asking for SSL password each restart
Using instructions from this site but varying them just a little i created a CA using -newca, i copied cacert.pem to my comp and imported as trusted issuer in IE. I then did -newreq and -sign (note: i do /full/path/CA.sh -cmd and not sh CA.sh -cmd)…
user274
49
votes
4 answers
Munin vs Nagios
We're currently using Nagios to monitor about 20 Linux machines (services and functional links). I just find out about Munin and I wonder if this is a Nagios replacement, or it can be used together with Nagios? I don't want to spend hours setting it…
Milan Babuškov
- 1,030
- 2
- 15
- 20
49
votes
3 answers
Is there a way to check that a dictionary key is not defined in ansible task?
So in my code I have a task:
- name: cool task
shell: 'touch iamnotcool.txt'
when: me.cool is not defined
and my vars looks like:
---
me:
stumped: yes
So when I run the task it comes back with the following error:
{"failed": true, "msg":…
Luis F Hernandez
- 743
49
votes
9 answers
Is there any reason not to enforce HTTPS on a website?
A website I frequent have finally decided to enable TLS to their servers, only not to mandate it as a lot of websites out there do. The maintainer claims that TLS must be optional. Why?
On my own website I have long set up mandated TLS and HSTS with…
Maxthon Chan
- 649
49
votes
3 answers
systemd: Grant an unprivileged user permission to alter one specific service
I'm running a private game server on a headless linux box. Because I'm not an idiot, said server is running as its own unprivileged user with the bare minimum access rights it needs to download updates and modify the world database.
I also created a…
Shadur-don't-feed-the-AI
- 1,367