Most Popular
1500 questions
87
votes
3 answers
What does * * * * * (five asterisks) in a cron file mean?
The first noncomment line in a legacy crontab file begins with five asterisks:
* * * * * ([a_command]) >/dev/null 2>&1
The authors are gone, so I do not know their intent. What does all-wildcards mean to (Solaris 8) cron? The betting here is…
Thomas L Holaday
- 1,433
87
votes
4 answers
Automate the installation of postfix on Ubuntu
My system configuration script does an apt-get install -y postfix. Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix to use the defaults during installation so that an…
sutch
- 1,056
87
votes
5 answers
mirrorlist.centos.org no longer resolve?
mirrorlist.centos.org no longer online?
I can resolve to centos.org but not to mirrorlist.centos.org
Here is the output of my resolv.conf, dig, and nslookup if anyone interested.
rosdi@H-TQ0nmTkQIbRhN:~/test_ssl$ nslookup…
Rosdi
- 1,101
- 3
- 9
- 13
86
votes
5 answers
How does Ubuntu keep track of the "System restart required" flag in motd?
I have a few Ubuntu servers (8.10, 9.10) that is set to automatically install security updates. Some times these updates requires a restart of the system, and this string is shown in motd:
*** System restart required ***
To get a notice about…
Anders Lindahl
- 1,011
86
votes
4 answers
How to reload default Mac OSX routing table without rebooting
Greetings,
I'm using vpnc for a VPN client. I'm also doing some tricky things with route to make sure I can still access my local network, etc. etc. (the particulars here are not very important).
Sometimes I get the routing table so jacked up I get…
Nate Murray
- 1,013
86
votes
14 answers
What's wrong with always being root?
I have a feeling this is a stupid question, but this is something I've wondered for awhile.
I have a VPS and this is my first big linux venture. I am the only person who has access to it. My question is, what is wrong with just logging in as root as…
ryeguy
- 1,081
86
votes
10 answers
How to view connected users to open vpn server?
I'm developing a website for managing OpenVPN users with Django framework. But I need to know is there any way to extract active users from OpenVPN? My server is running Ubuntu 12.04.
hamidfzm
- 1,045
86
votes
5 answers
Nginx redirect one path to another
I'm sure this has been asked before, but I can't find a solution that works.
A website has switched CMS services, but has the same domain, how do I set up an nginx rewrite for a single page?
E.g.
Old…
SteveEdson
- 1,609
86
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
- 2,044
86
votes
5 answers
Practical maximum open file descriptors (ulimit -n) for a high volume system
We recently began load testing our application and noticed that it ran out of file descriptors after about 24 hours.
We are running RHEL 5 on a Dell 1955:
CPU: 2 x Dual Core 2.66GHz 4MB 5150 / 1333FSB
RAM: 8GB RAM
HDD: 2 x 160GB 2.5" SATA Hard…
Kevin
- 963
86
votes
8 answers
Recommended LogParser queries for IIS monitoring?
As Stack Overflow grows, we're starting to look closely at our IIS logs to identify problem HTTP clients -- things like rogue web spiders, users who have a large page set to refresh every second, poorly written one-off web scrapers, tricksy users…
Jeff Atwood
- 13,264
86
votes
4 answers
yum search - package version
How can I tell the version of a package after doing a yum search?
e.g.
yum search rabbitmq
returns
rabbitmq-server.noarch : The RabbitMQ server
I need to know the version of this server.
DD.
- 3,254
86
votes
13 answers
10 servers to administer and I'm a history major
Through reasons that don't warrant exhaustive discussion, I find myself in charge of 10 servers:
A domain controller-~500 hosts/~350 users
IIS web server-This is where we make our money
SQL server-The crown jewels
Exchange server
Linux box for data…
chipandachair
- 471
- 4
- 6
86
votes
4 answers
logrotating files in a directories and its subdirectories
Is it possible to get logrotate to consider logfiles in a directory and all its subdirectories? (i.e. without explicitly listing the subdirectories.)
ithinkihaveacat
- 1,674
86
votes
5 answers
How do I redirect subdomains to a different port on the same server?
I have some subdomains I want to redirect to specific ports on the same server.
Say I have
dev.mydomain.com
I want dev.mydomain.com to transparently redirect to mydomain.com:8080 and I want to preserve the original sub-domain name the url of the…
user35861