Most Popular
1500 questions
69
votes
7 answers
automate dpkg-reconfigure tzdata
I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata. But I can only seem to change it if I use the dialog. Is…
razor
69
votes
8 answers
A previous IT worker probably left some backdoors. How can I eliminate them?
I started working for a company that fired a previous IT worker for leaking data.
I can only say the following things:
We use a Firebird DB with an application written by another company, Proxmox, for virtualization of Windows Server 2008 R2, SQL…
user2265690
- 729
- 1
- 5
- 4
69
votes
4 answers
How do I change the NGINX user?
I have a PHP script that creates a directory and outputs an image to the directory. This was working just fine under Apache but we recently decided to switch to NGINX to make more use of our limited RAM. I'm using the PHP mkdir() command to create…
David
- 925
69
votes
4 answers
_default_ VirtualHost overlap on port 443, the first has precedence
I have two ruby on rails 3 applications running on same server, (ubuntu 10.04), both with SSL.
Here is my apache config file:
ServerName example1.com
DocumentRoot…
Mohit Jain
- 953
69
votes
2 answers
iptables: difference between NEW, ESTABLISHED and RELATED packets
Part of a firewall on a server :
iptables -A INPUT -p tcp --dport 22 -m state NEW --state -m recent --set
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 100 --hitcount 10 -j DROP
When I search online I always…
Kris
- 1,417
69
votes
12 answers
Exchange server replacement that runs on Linux
I've worked as a sysadmin for some years and what I keep coming back to is that users like Microsoft Outlook and want to use its Exchange features. I have tried my fair share of commercial alternatives but usually there is either a fundamental…
Andrioid
- 2,760
69
votes
8 answers
Rsync : copying over timestamps only
Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command :
rsync --dry-run -crvv A/ B/
then all files are marked "uptodate", whereas the command :
rsync…
artella
- 1,099
69
votes
2 answers
Executing a command as a nologin user
I've recently set up my server so that my suPHP 'virtual' users can't be logged into by using this article: Linux shell restricting access and disable shell with nologin
My issue now is that before when I ran a rake command for my Ruby on Rails…
user82250
69
votes
9 answers
Linux: How to know where a process was started and how it was started?
I was checking a Linux box and found a perl process running and taking a good share of cpu usage. With top, i could only perl in process name.
When i pressed c, to view the command-line, it showed /var/spool/mail. Which does not make sense, since…
Fernando
- 1,269
69
votes
4 answers
Windows equivalent of iptables?
Dumb question:
Is there an equivalent of iptables on Windows? Could I install one via cygwin?
The real question: how can I accomplish on Windows what I can accomplish via iptables?
Just looking for basic firewall functionality (e.g. blocking certain…
Aaron F.
- 915
69
votes
5 answers
How can I set environment variable for just one command in fish shell?
In bash, I can do EDITOR=vim crontab -e. Can I get similar effect in Fish shell?
skalee
- 803
69
votes
1 answer
Linux FHS: /srv vs /var ... where do I put stuff?
My web development experience has started with Fedora and RHEL but I'm transitioning to Ubuntu. In Fedora/RHEL, the default seems to be using the /var folder while Ubuntu uses /srv.
Is there any reason to use one over the other and where does the…
wag2639
- 2,175
69
votes
11 answers
How do I check if Log4j is installed on my server?
I have read about security vulnerabilities related to Log4j.
How do I check if Log4j is installed on my server?
My specific servers use Ubuntu 18.04.6 LTS.
I have installed many third-party packages and maybe some of them contain it.
Is there a…
Uri
- 928
69
votes
7 answers
Should websites live in /var/ or /usr/ according to recommended usage?
According to a guide on the Linux directory structure, /usr/ is for application files, and /var/ is for files that change (I assume this means "files that belong to the applications"). Is this correct?
If this is the case then I'm a little torn…
Nick Bolton
- 5,186
68
votes
2 answers
Why does AWS recommend against public S3 buckets?
"We highly recommend that you never grant any kind of public access to your S3 bucket."
I have set a very granular public policy (s3:GetObject) for one bucket that I use to host a website. Route53 explicitly supports aliasing a bucket for this…
Andrew Johnson
- 791