Most Popular

1500 questions
121
votes
8 answers

How can I figure out my LDAP connection string?

We're on a corporate network thats running active directory and we'd like to test out some LDAP stuff (active directory membership provider, actually) and so far, none of us can figure out what our LDAP connection string is. Does anyone know how we…
Allen
  • 1,463
  • 3
  • 11
  • 8
120
votes
4 answers

In systemd, what's the difference between After= and Requires=?

I'm creating a systemd .service file and I need help understanding the difference between Requires= and After=. The man page says that Requires= "Configures requirement dependencies on other units." and After= "Configures ordering dependencies…
TomOnTime
  • 7,945
  • 6
  • 32
  • 52
120
votes
23 answers

How to recover from "Too many Authentication Failures for user root"

I've done several attempts to establish SSH-connecton for user root@host using putty terminal. While doing so I specified wrong credentials several times and after that I've specified them correctly, and then after the credentials were accepted the…
user11722
  • 1,363
  • 3
  • 10
  • 6
120
votes
16 answers

GIT as a backup tool

On a server, install git cd / git init git add . git commit -a -m "Yes, this is server" Then get /.git/ to point to a network drive (SAN, NFS, Samba whatever) or different disk. Use a cron job every hour/day etc. to update the changes. The .git…
user80776
119
votes
6 answers

What Linux distribution is the Amazon Linux AMI based on?

Amazon Web Services (AWS) offers an officially supported Amazon Machine Image (AMI), but it doesn't indicate which Linux distribution it's based upon. Is the official Amazon Linux AMI based on another Linux distribution, and if so, which one?
Trevor Sullivan
  • 2,063
  • 3
  • 14
  • 19
119
votes
8 answers

How do I create a symbolic link in Windows?

Windows Vista added the ability to create symbolic links to files and directories. How do I create a symbolic link and what are the current consumer and server versions of Windows that support it?
cowgod
  • 3,500
  • 6
  • 28
  • 20
119
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,389
  • 4
  • 14
  • 13
119
votes
12 answers

How can I automatically change directory on ssh login?

I'm trying to get ssh to automatically change to a particular directory when I log in. I tried to get that behaviour working using the following directives in ~/.ssh/config: Host example.net LocalCommand "cd web" but whenever I log in, I see the…
Gareth
  • 1,416
  • 2
  • 11
  • 12
118
votes
4 answers

How to disable timeout for nginx?

On a local development machine, I have a nginx reverse proxy like so: server { listen 80; server_name myvirtualhost1.local; location / { proxy_pass http://127.0.0.1:8080; } server { listen 80; server_name myvirtualhost2.local; …
k0pernikus
  • 4,170
  • 4
  • 17
  • 17
118
votes
14 answers

What's the reverse DNS command line utility?

What's the command to find the name of a computer given its IP address? I always forget what this command is, but I know it exists in Windows and I assume it exists on the *nix command-line.
118
votes
2 answers

Can I have multiple DHCP servers on one network?

This is a Canonical Question about Redundant DHCP Servers. Is it possible to have more than one DHCP server on the same LAN? What are the implications of doing this? What happens if there is more than one DHCP server available? How do my clients…
Rob Moir
  • 31,884
  • 6
  • 58
  • 89
118
votes
2 answers

Why does the MySQL command line tool ignore the --port parameter?

This is what I'm doing: mysql --host=localhost --port=9999 mysql -u root -p --execute="show tables;" The command works (connecting to port 3306) no matter what I provide in --port argument. I have two mysql servers running on one machine, and want…
yegor256
  • 1,836
  • 3
  • 16
  • 30
118
votes
4 answers

What firewall ports need to be open to allow access to external git repositories?

What firewall port(s) need to be open to allow access to external git repositories?
markdorison
  • 1,315
  • 2
  • 9
  • 7
118
votes
1 answer

What ports to open for mail server?

I have just finished setting up a Postfix mail server on a linux (ubuntu) platform. I have it sending and receiving email and it is not an open relay. It also supports secure smtp and imap. Now this is a pretty beginner question but should I be…
radman
  • 1,671
  • 3
  • 16
  • 17
118
votes
9 answers

How much network latency is "typical" for east - west coast USA?

At the moment we're trying to decide whether to move our datacenter from the west coast to the east coast. However, I am seeing some disturbing latency numbers from my west coast location to the east coast. Here's a sample result, retrieving a small…
Jeff Atwood
  • 13,104
  • 20
  • 75
  • 92