Most Popular
1500 questions
61
votes
8 answers
How to remove Private Key Password from pkcs12 container?
I extracted certificate using Chrome's SSL/export command.
Then provided it as input to openvpn - in the config for openvpn:
pkcs12 "path/to/pkcs12_container"
When calling openvpn ~/openvp_config it asks for a password for private key (wich I…
Ayrat
- 713
61
votes
11 answers
how to use xauth to run graphical application via other user on linux
My regular user account is, let's say, user1. I created separate user2 for some x application that i would like to run while being logged into x as user1 but in a way that will prevent it from read/write access to user1 data. I thought that i could…
Phil
- 2,119
61
votes
11 answers
Why do I need to purchase an SSL certificate when I can generate one locally?
I am having trouble understanding why we need to purchase SSL certificates when we can generate them locally using openSSL. What is the difference between the certificate I purchase and a test certificate I generate locally? Is it just a big scam?
S-K'
- 1,311
61
votes
4 answers
Multiple EC2 security groups - permissive or restrictive?
What happens when I assign multiple security groups to an instance? Is it permissive in the sense that the traffic is allowed in if any one of the security groups allows it. OR is it restrictive in the sense that every security group must allow…
Suraj
- 865
61
votes
4 answers
logrotate daily and size?
If a logrotate config is specified with "size" and "daily" parameters, which one takes precedence? Where is this documented? I would like these rotations to occur as a boolean OR operation, ie, if the logs are a day old they get rotated, OR if they…
cat pants
- 2,363
61
votes
2 answers
What are SPF records, and how do I configure them?
This is a canonical question about setting up SPF records.
I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook.…
vulgarbulgar
- 769
61
votes
8 answers
Is it possible to run sshd as a normal user?
I'm aiming to start up a second sshd instance on a non-privileged port (e.g. 2222) with my own configuration file.
Obviously, the sshd process can't setuid so logging in as users other than the one who is running the sshd daemon is clearly…
Bo Jeanes
- 1,670
61
votes
12 answers
Linux command line utility to resolve host names using /etc/hosts first
There are several command line utilities to resolve host names (host, dig, nslookup), however they all use nameservers exclusively, while applications in general look in /etc/hosts first (using gethostbyname I believe).
Is there a command line…
Zulan
- 695
61
votes
9 answers
How do you recover you RDS master user username?
Resetting the RDS master user's password is simple enough, but how do you find your master users username?
mkirk
- 733
- 1
- 5
- 7
61
votes
3 answers
Unusual HEAD requests to nonsense URLs from Chrome
I have noticed unusual traffic coming from my workstation the last couple of days. I am seeing HEAD requests sent to random character URLs, usually three or four within a second, and they appear to be coming from my Chrome browser. The requests…
JeremyDWill
- 883
61
votes
5 answers
iptables port redirect not working for localhost
I want to redirect all traffic from port 443 to the internal port 8080. I'm using this config for iptables:
iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp \
--dport 443 -j REDIRECT --to-ports 8080
This works for all…
Chris
- 611
61
votes
10 answers
How to setup a fake SMTP server to catch all mails?
I'm looking for an smtp service that essentially obeys the RFC, except rather than sending mail it simply logs to a file
[date] sent mail to
Or whatever. I can bash this together with the bare minimum of functionality I need in python in…
richo
- 998
61
votes
4 answers
Free public SSH server for testing purposes
I'm writing an application that makes connections to SSH servers. It doesn't need anything specific from the server (except running under GNU/Linux). I need SSH servers for running my application tests.
I was wondering, is there some kind of free…
nicoulaj
- 1,245
61
votes
13 answers
How to monitor a windows log file in real time?
On windows how can I easily monitor a log file and see updates to the file in real time?
Basically, same functionality like tail -f log_file on Unix systems
Platform: Windows XP/2003/2008 server
[Update] this is quite handy for a quick…
dance2die
- 2,051
61
votes
6 answers
How can I run mongod in the background on unix (mac osx)?
I would like to run mongod in the background as an always present sort of thing. What would be the best way to do this? Kind of like the way I can run MySQL on startup and it's just always there running in the background. Maybe it's just some bash…
rmontgomery429
- 759