Most Popular

1500 questions
63
votes
2 answers

How to run cron job on a specific hour every day?

What do I need to write in crontab to execute a script at 3pm every day?
john
  • 1,025
  • 3
  • 9
  • 15
63
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,189
  • 6
  • 23
  • 32
63
votes
7 answers

What permissions are needed to write a PID file in /var/run?

On Ubuntu: touch: cannot touch `/var/run/test.pid': Permission denied I am starting start-stop-daemon and like to write the PID file in /var/run start-stop-daemon is run as my-program-user /var/run setting is drwxr-xr-x 9 root root I like to…
s5804
  • 755
  • 1
  • 6
  • 8
63
votes
6 answers

Forcing the from address when postfix relays over smtp

I'm trying to get email reports from our AWS EC2 instances. We're using Exchange Online (part of Microsoft Online Services). I've setup a user account specifically for SMTP relaying, and I've setup Postfix to meet all the requirements to relay…
John Whitlock
  • 1,107
  • 2
  • 9
  • 14
62
votes
11 answers

How Often Should I Update our Linux Server?

I am responsible for managing both our production server (mail, web, database are all on one server) and our test server. Both are built on Debian. However as I am very new to system administration, I have only been installing updates as I come…
Noah Goodrich
  • 19,427
  • 6
  • 25
  • 16
62
votes
13 answers

Windows 2008: WinSXS directory growing uncontrollably, blocking server

I run a (remotely hosted) virtual Server with Windows 2008 Server for a client. Initially, it had 10 GB of space. During the course of a few weeks - during which nothing was done on the machine except normal work using a web-basedt icket system -…
Pekka
  • 2,178
  • 3
  • 20
  • 32
62
votes
4 answers

What characters should I use or not use in usernames on Linux?

I want to create user accounts named after a domain name. adduser complains that the usernames need to match the NAME_REGEX regular expression. adduser: Please enter a username matching the regular expression configured via the NAME_REGEX…
Ed Haber
  • 775
  • 1
  • 8
  • 9
62
votes
5 answers

I accidentaly forbid SSH connection to a remote server... What's next?

Let's say it again, we all make mistakes, and I have just made one. A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat command I saw an non-authorized connection through…
tomatoGuy
  • 621
  • 5
  • 3
62
votes
2 answers

nginx set variable in location

I am trying to optimize my nginx configs, so it would be possible to set one variable, and all location paths would update automatically. I have four lines in question: server_name php.domain.com; root /srv/web/vhosts/php/web; error_log…
Bogdan Kuštan
  • 723
  • 1
  • 5
  • 6
62
votes
5 answers

How can I check /dev/xvda1?

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof shows jbd2/xvda 172 root cwd …
user1836587
  • 723
  • 1
  • 6
  • 4
62
votes
10 answers

How to [politely?] tell software vendor they don't know what they're talking about

Not a technical question, but a valid one nonetheless. Scenario: HP ProLiant DL380 Gen 8 with 2 x 8-core Xeon E5-2667 CPUs and 256GB RAM running ESXi 5.5. Eight VMs for a given vendor's system. Four VMs for test, four VMs for production. The four…
62
votes
2 answers

debian packages version convention

I'm using debian/Ubuntu, and get confused about versions of packages. When using dpkg -l command, I get: ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - enhanced vi editor ii vim-common …
cizixs
  • 923
  • 2
  • 8
  • 11
62
votes
2 answers

Can we have multiple CNAMES for a single Name?

I need this for load balancing. For example, I've two azure storage accounts (say a and b) and the blob addresses for those are a.blob.core.windows.net and b.blob.core.windows.net. Both of them store identical data. Now I need to provide a single…
Raghuram Murthy P
  • 723
  • 1
  • 5
  • 4
62
votes
5 answers

What is the difference between a public and private subnet in a Amazon VPC?

When I launch a server with a security group that allows all traffic into my private subnet, it displays a warning that it may be open to the world. If it is a private subnet, how can that be?
Developr
  • 872
  • 3
  • 9
  • 19
62
votes
8 answers

What is causing Access Denied when using the aws cli to download from Amazon S3?

I'm really flailing around in AWS trying to figure out what I'm missing here. I'd like to make it so that an IAM user can download files from an S3 bucket - without just making the files totally public - but I'm getting access denied. If anyone can…
Josh Gagnon
  • 755
  • 1
  • 5
  • 6