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.
Questions tagged [system-administration]
983 questions
49
votes
2 answers
What are the limitations of the flask built-in web server
I'm a newbie in web server administration. I've read multiple times that flask built-in web server is not designed for "production", and must be used only for tests and debug...
But what if my app touchs only a thousand users who occasionnaly send…

edelans
- 8,479
- 4
- 36
- 45
48
votes
5 answers
How do I make cron run something every "N"th minute, where n % 5 == 1?
I know that I can have something run every five minutes in cron with a line like:
*/5 * * * * /my/script
What if I don't want it running at 12:00, 12:05, 12:10, but rather at 12:01, 12:06, 12:11, etc? I guess I can do this:
…

mike
- 46,876
- 44
- 102
- 112
35
votes
4 answers
Free DNS server for Windows XP/Vista/Win7?
I'm currently developing a security solution that should work across domains and as such I need a small private dns server to add various entries to. I could alter the hosts file to achieve the same result but since the hosts file doesn't support…

JohannesH
- 6,430
- 5
- 37
- 71
34
votes
3 answers
How do I get a list of locked users in an Oracle database?
I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I'm having is querying the "locked" status for a given user, I though it might have been on all_users but…

ninesided
- 23,085
- 14
- 83
- 107
33
votes
8 answers
When could or should I use chmod g+s on a file or directory?
In deploying to a new (Solaris 9) environment recently, one of the steps was to copy a set of files and directories to their new location and then to apply the group UID bit (using "chmod -R g+s") to all files in the directory tree giving a mode of…

Jordanhillbilly
- 331
- 1
- 3
- 3
29
votes
4 answers
How do you uninstall the package manager "pip", if installed from source?
I was unaware that pip could be installed via my operating system's package manager, so I compiled and installed pip via source with the following command:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python
I…

D.C. Rockwell
- 292
- 1
- 3
- 7
27
votes
5 answers
Python script to list users and groups
I'm attempting to code a script that outputs each user and their group on their own line like so:
user1 group1
user2 group1
user3 group2
...
user10 group6
etc.
I'm writing up a script in python for this but was wondering how SO might do…

Derek
- 982
- 1
- 8
- 19
26
votes
3 answers
Opening a remote machine's Windows C drive
I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something…

Ross Rogers
- 23,523
- 27
- 108
- 164
22
votes
5 answers
Comprehensive methods of viewing memory usage on Solaris
On Linux, the "top" command shows a detailed but high level overview of your memory usage, showing:
Total Memory, Used Memory, Free Memory, Buffer Usage, Cache Usage, Swap size and Swap Usage.
My question is, what commands are available to show…

user40626
- 221
- 1
- 2
- 3
22
votes
20 answers
How can I automate running commands remotely over SSH to multiple servers in parallel?
I've searched around a bit for similar questions, but other than running one command or perhaps a few command with items such as:
ssh user@host -t sudo su -
However, what if I essentially need to run a script on (let's say) 15 servers at once. Is…

f4nt
- 2,661
- 5
- 31
- 35
22
votes
1 answer
How to create System Apps in android
I want to create an system application(while installing it will ask user permission to make it as system app) for UN-rooted application. As I am not familiar in android, please tell me how to create it.
Thanks in advance.

ponraj
- 738
- 1
- 7
- 21
21
votes
5 answers
Tar error: Unexpected EOF in archive
I tar a directory full of JPEG images:
tar cvfz myarchive.tar.gz mydirectory
When I untar the archive:
tar xvfz myarchive.tar.gz
I get an error:
tar: Unexpected EOF in archive
Looking at the output, it fails in the middle of one particular JPEG…
Cyrille
20
votes
5 answers
Test admin rights within PowerShell script?
Whats the best/easiest way to test for administrative rights in a PowerShell script?
I need to write a script that requires administrative rights and want to know the best way to achieve it.

resolver101
- 2,155
- 11
- 41
- 53
19
votes
4 answers
How to find out the free disk space for a given path on a linux shell?
1) I am in some directory
2) I want to find out how much free space is left there
Is there a simple command that does this? I don't want to look in fstab or whatever, having to map the devices & mount points in my mind in order to determine how much…

Michael Böckling
- 7,341
- 6
- 55
- 76
18
votes
6 answers
Run a linux system command as a superuser, using a python script
I have got postfix installed on my machine and I am updating virtual_alias on the fly programmatically(using python)(on some action). Once I update the entry in the /etc/postfix/virtual_alias, I am running the command:sudo /usr/sbin/postmap…

Nanda Kishore
- 2,789
- 5
- 38
- 61