Questions tagged [system-administration]

Use this tag for asking about programs you have written to perform system-administration tasks. Non-programming questions about system administration are off-topic for Stack Overflow and should not be asked here.

983 questions
10
votes
9 answers

What Python way would you suggest to check whois database records?

I'm trying to get a webservice up and running that actually requires to check whois databases. What I'm doing right now is ugly and I'd like to avoid it as much as I can: I call gwhois command and parse its output. Ugly. I did some search to try to…
kender
  • 85,663
  • 26
  • 103
  • 145
10
votes
6 answers

Is there a lint like program for crontab?

Is there anything like lint for crontab? I'd like to know that i've got all my spaces and stars sorted out without waiting for something to not work.
Uberfuzzy
  • 8,253
  • 11
  • 42
  • 50
10
votes
4 answers

Edit current user's shell with ansible

I'm trying yo push my dot files and some personal configuration files to a server (I'm not root or sudoer). Ansible connects as my user in order to edit files in my home folder. I'd like to set my default shell to usr/bin/fish. I am not allowed to…
hugoShaka
  • 4,977
  • 3
  • 17
  • 29
10
votes
9 answers

As a developer, what changes or installs, do you make on a vanilla OS X system?

As an example these are some of the things I always do when starting a new machine: Install 'Visor' - gives you an always available HUD style terminal window via F1. Install 'Clix' - run a million system customization command line instructions.…
defmeta
  • 1,322
  • 3
  • 11
  • 19
10
votes
3 answers

Logstash not creating index on Elasticsearch

I'm trying to setup a ELK stack on EC2, Ubuntu 14.04 instance. But everything install, and everything is working just fine, except for one thing. Logstash is not creating an index on Elasticsearch. Whenever I try to access Kibana, it wants me to…
9
votes
5 answers

Is there a good way to migrate from a Mailman list to a web forum?

I have a Mailman managed list with years of history that I want to migrate into a web-based forum. Things it would be nice to do: Keep the mailing list going for those who are used to and prefer it to a web interface, but have it integrate with…
jbm
  • 1,482
  • 11
  • 26
9
votes
5 answers

RSync only if filesystem is mounted

I want to setup a cron job to rsync a remote system to a backup partition, something like: bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/' I would like to be able to "set it and forget it" but what if…
thelsdj
  • 9,034
  • 10
  • 45
  • 58
9
votes
2 answers

How to run command on Zabbix agents?

I want to run a command on Zabbix agents: Some simple unix commands, to obtain our reporting data. When there is some processing required on the agent side. There seem to be a variety approaches being talked about. So how to execute such commands…
Dreamcat4
  • 292
  • 1
  • 3
  • 12
9
votes
3 answers

How does Apache access SSL certs created by root user?

I have a Debian server on which I am running Apache HTTPD. I have configured it to use certain SSL certificates which reside in /etc/ssl/private/. Only root user has read-write access to this directory. The HTTPD process is run as www-data user, but…
vaidik
  • 2,191
  • 1
  • 16
  • 22
8
votes
2 answers

local user name disallowed chars

currently if I try to add local user "jim,bob" to a Windows 7 system, as expected, the following error dialog is shown displaying all the illegal chars for a user name. Is there a quick .net method to call which returns the same chars?…
Jeb
  • 3,689
  • 5
  • 28
  • 45
8
votes
2 answers

How do I correctly use the ansible hostname module?

I am trying to use ansible to modify the hostnames of a dozen newly created Virtual Machines, and I am failing to understand how to loop correctly. Here is the playbook I've written: --- - hosts: k8s_kvm_vms tasks: - name: "update hostnames" …
goliath16
  • 101
  • 1
  • 1
  • 6
8
votes
4 answers

How can I extract a subtree from my SVN repository into a new one?

We have a Subversion repository with one directory that is: Not really in need of revision control beyond the capabilities of RCS Not versioned in conjunction with anything else in the repository Modified about six times as often as the rest of the…
Chris R
  • 17,546
  • 23
  • 105
  • 172
8
votes
6 answers

How to comply with the new Federal Desktop Core Configuration (FDCC), which will remove local administrator access for all users?

As developers, we believe that not having local administrative access is going to severely handicap our productivity. We will be restricted from running IIS (we’re a web development shop), installing applications, running Microsoft power tools,…
Curt
  • 396
  • 1
  • 11
8
votes
4 answers

mongoDB replication+sharding on 2 servers reasonable?

Consider the following setup: There a 2 physical servers which are set up as a regular mongodb replication set (including an arbiter process, so automatic failover will work correctly). now, as far as i understand, most actual work will be done on…
MGriesbach
  • 344
  • 2
  • 6
8
votes
1 answer

find out what is the right block size for SWAP?

i found the following method to create swap, from here dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 Is there any thumb rule that to decide block size ? What is the best block size for Swap in any machine ? Here it is 1M..
user412125
  • 219
  • 3
  • 7