Most Popular

1500 questions
71
votes
3 answers

How to ensure OpenVPN connection uses specific DNS?

I'm using OpenVPN through Tunnelblick on MacOS X Lion. I need to set specific DNS (with local IP, which works only when VPN is up) for the duration of this VPN session only. I do not have access to the OpenVPN server configuration. Only client…
Stanislav Shabalin
  • 813
  • 1
  • 6
  • 6
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,826
  • 4
  • 47
  • 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
  • 1
  • 5
  • 3
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,050
  • 4
  • 36
  • 50
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,867
  • 1
  • 23
  • 22
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,799
  • 27
  • 84
  • 148
71
votes
7 answers

How to read in N random characters from /dev/urandom?

read /dev/urandom 3 The above is not working..How can I read random bytes from /dev/urandom in bash?
linux
  • 1,223
  • 4
  • 13
  • 15
71
votes
2 answers

How do I edit the crontab of another user on my linux server?

I have a user on my linux server who has sudo. I want to edit the crontab of another user. I'm new to this though and don't understand what the man pages are telling me yet. Man crontab tells me I can use this format for the crontab…
bflora
  • 849
  • 1
  • 6
  • 3
71
votes
11 answers

How to mount a CD/DVD ISO in Windows 7?

Does Windows 7 have native support for mounting CD/DVD ISO images? If not, what is the best tool to use for that under Windows 7 64-bit? I am looking for a solution to allow installing MSDN downloads without burning them to CD/DVD.
Jim McKeeth
  • 1,906
  • 4
  • 20
  • 21
71
votes
4 answers

Redirect URL within Apache VirtualHost?

I have a dedicated server with Apache, on which I've set up some VirtualHosts. I've set up one to handle the www domain as well as the non-www domain. My VH .conf file for the www: DocumentRoot /var/www/site ServerName…
DisgruntledGoat
  • 2,629
  • 4
  • 28
  • 36
71
votes
16 answers

How do I know if I'm working on a Virtual Machine or not?

Is there a way to know if the Windows machine I'm working on is virtual or physical? (I'm connecting with RDP to the machine. If it's a virtual machine it is working and handled by VMWare).
user33705
70
votes
15 answers

Are IP addresses "trivial to forge"?

I was reading through some of the notes on Google's new public DNS service: Performance Benefits Security Benefits I noticed under the security section this paragraph: Until a standard system-wide solution to DNS vulnerabilities is universally…
Jeff Atwood
  • 13,104
  • 20
  • 75
  • 92
70
votes
9 answers

Command to prepend string to each line?

Looking for something like this? Any ideas? cmd | prepend "[ERRORS] " [ERROR] line1 text [ERROR] line2 text [ERROR] line3 text ... etc
user14645
  • 1,590
  • 2
  • 13
  • 17
70
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
  • 811
  • 1
  • 7
  • 4
70
votes
16 answers

Is FreeNAS reliable?

FreeNAS seems like a great product with a full checklist of features, even iSCSI. But how reliable is it? There are a few scary stories about lost data, for example here. Here is another example. If you have used freeNAS for a longer period of time…
Console
  • 447
  • 1
  • 6
  • 11