Most Popular

1500 questions
80
votes
6 answers

Do SPF Records For Primary Domain apply to subdomains?

I have a quick question regarding SPF records: Do they need to be present for all subdomains? Lets say that I have a TXT record with SPF info for domain.com Let's also say that I have a seperate email domain for subdomain.domain.com Will the SPF…
Mike B
  • 11,871
  • 42
  • 107
  • 168
80
votes
13 answers

How Often Do Windows Servers Need to be Restarted?

A little background: We have several Windows servers (2003, 2008) for our department. We're a division of IT so we manage our own servers. Of the four of us here I'm the only one with a slight amount of IT knowledge. (Note the "slight amount".) My…
Evan
  • 919
  • 1
  • 6
  • 4
80
votes
2 answers

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
DucDigital
  • 1,491
  • 3
  • 18
  • 26
80
votes
5 answers

Best location to keep SSL certificates and private keys on Ubuntu servers?

On Ubuntu, it looks like the best place for a private key used to sign a certificate (for use by nginx) is in /etc/ssl/private/ This answer adds that the certificate should go in /etc/ssl/certs/ but that seems like an unsafe place. Do .crt files…
Adam Nelson
  • 1,647
  • 3
  • 14
  • 12
80
votes
2 answers

sudoers: how to disable requiretty per user

I don't want to comment out the line in /etc/sudoers: Defaults requiretty Instead, I only want a certain user not to require a tty. How can this be done?
user27451
  • 1,161
  • 2
  • 11
  • 14
79
votes
2 answers

Downloading docker image for transfer to non-internet-connected machine

I'm working in an office where my laptop is internet-connected, but tightly controlled. I am not allowed to install unauthorized software onto it. My development workstation is mine to do with as I please, but it does not have an internet…
shearn89
  • 3,403
  • 2
  • 15
  • 39
79
votes
6 answers

How to unify package installation tasks in ansible?

I am starting with ansible and will use it, among others, to install packages on several Linux distros. I see in the docs that the yum and apt commands are separated - what would be the easiest way to unify them and use something like this: - name:…
WoJ
  • 3,607
  • 9
  • 49
  • 79
79
votes
15 answers

Get list of AD groups a user is a member of

Suppose I have the user id of a user in Active Directory. I'd like to get a list of all AD groups in which that user is currently a member of. How can I do this from the Windows command line? I've tried the following: dsget user "DC=jxd123"…
JustBeingHelpful
  • 1,964
  • 7
  • 37
  • 53
79
votes
5 answers

Change default directory when I SSH to server

I was wondering if there is a way to change the default directory that I get put into after I SSH into my Ubuntu server. 99% of the time when I'm logging into my server, it is to access files within a specific directory: /var/www/websites Is there…
Bob Flemming
  • 1,245
  • 3
  • 14
  • 17
79
votes
9 answers

Enable HTTP Strict Transport Security (HSTS) in IIS 7

What is the best way to turn on HTTP Strict Transport Security on an IIS 7 web server? Can I just through the GUI and add the proper HTTP response header or should I be using appcmd and if so what switches?
Bob
  • 2,569
  • 3
  • 26
  • 22
79
votes
10 answers

How to avoid lftp Certificate verification error?

I'm trying to get my Pelican blog working. It uses lftp to transfer the actual blog to ones server, but I always get an error: mirror: Fatal error: Certificate verification: subjectAltName does not match ‘blogname.com’ I think lftp is checking the…
patrick
  • 892
  • 1
  • 6
  • 6
79
votes
4 answers

How to keep the full path with rsync?

When backing up with rsync, How do I keep the full directory structure? For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named backup. I want to have (locally)…
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
79
votes
4 answers

How to make wireshark filter POST-requests only?

How to make wireshark filter POST-requests only?
Ilya Smagin
  • 893
  • 1
  • 6
  • 6
79
votes
2 answers

nginx url rewriting: difference between break and last

I don't understand the difference between break and last (flags of rewrite). The documentation is rather abstruse. I've tried to switch between the two in some of my configs, but I couldn't spot any difference in behavior. Can someone please explain…
user39883
78
votes
9 answers

What is the debian-sys-maint MySQL user (and more)?

I have been bitten several times by the 'debian-sys-maint' user that is installed by default on the mysql-server packages installed from the Ubuntu repositories. Generally what happens is I pull a fresh copy of our production database (which is not…
Joe Holloway
  • 1,909
  • 3
  • 19
  • 17