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
5
votes
2 answers

Change MySQL innodb_buffer_pool_size at runtime?

This may be a dumb question, but is it possible to change the MySQL configuration options such as innodb_buffer_pool_size at runtime? Or, equivalently, is there a way to reload MySQL without closing existing connections or refusing new connections…
RobM
  • 8,373
  • 3
  • 45
  • 37
5
votes
9 answers

How do I shrink the transaction log on MS SQL 2000 databases?

I have several databases where the transaction log (.LDF) is many times larger than the database file (.MDF). What can I do to automatically shrink these or keep them from getting so large?
Ed Haber
  • 1,797
  • 2
  • 14
  • 14
5
votes
8 answers

Force a Samba process to close a file

Is there a way to force a Samba process to close a given file without killing it? Samba opens a process for each client connection, and sometimes I see it holds open files far longer than needed. Usually i just kill the process, and the (windows)…
Javier
  • 60,510
  • 8
  • 78
  • 126
4
votes
3 answers

Django is redirecting from HTTPS to HTTP

I have a Django ecommerce site running, and have purchases and installed an SSL cert for it. I have added a VirtualHost entry: #Basic setup ServerAdmin blah@test.com ServerName test.com …
Simon
  • 251
  • 1
  • 4
  • 10
4
votes
10 answers

Architecture for a machine database

This might be more of a serverfault.com question but a) it doesn't exist yet and b) I need more rep for when it does :~) My employer has a few hundred servers (all *NIX) spread across several locations. As I suspect is common we don't really know…
markdrayton
  • 485
  • 6
  • 11
4
votes
4 answers

can't delete directory under linux due to broken files

kt@rails-ubuntu:~/rails/ledger/releases/20080820144914/.git/hooks$ ls -al ls: cannot access post-commit: No such file or directory ls: cannot access update: No such file or directory ls: cannot access post-update: No such file or directory ls:…
russellkt
  • 311
  • 3
  • 10
4
votes
4 answers

What programming competences should a Unix admin have?

How would you assess a Unix sys-admin. What programming competences should a Unix admin have?
lprsd
  • 84,407
  • 47
  • 135
  • 168
4
votes
2 answers

How can I boot OpenSolaris x86 into single-user mode?

Modern OpenSolaris is configured to disallow root logins during normal boots. It is only possible in single-user mode. However, many instructions online simply say to add "-s" to the end of the default grub boot arguments, which leaves a graphical…
jrk
  • 2,896
  • 1
  • 22
  • 35
4
votes
4 answers

Compare first column of one file with the first column of second and print associated column of each if there was a match

I have two files, I need to compare their first columns and if the match is found, I'd like to output the corresponding values from both files. Similar to this Q but I'd like to print columns from both files not one: How to compare multiple columns…
eskp
  • 193
  • 1
  • 7
4
votes
1 answer

Does all linux users are present on /etc/passwd?

There is one user "user1" which I cant find in /etc/passwd but I can execute cmds like $touch abc $chown user1 abc $su user1 These command runs fine, but if I try to chown to some really nonexistent user these chown and su commands fail I was…
khrist safalhai
  • 560
  • 5
  • 19
4
votes
0 answers

curl giving the error "`curl: (2) Failed initialization"

I have two curls, one that comes with the OS, and another that comes with an application I installed. When I try run the one that comes with the application, I get "`curl: (2) Failed initialization", what is the problem here?
user7676946
  • 179
  • 2
  • 7
4
votes
1 answer

NTP Audit - failed adjtimex syscall?

As part of a new PCI-DSS server deployment I am in the process of configuring a fully auditable NTP time change history. All is working as expected however I am now seeing audit logs written every single second relating to time change operations.…
puppyFlo
  • 445
  • 4
  • 16
4
votes
4 answers

Monitor a set of files for changes and execute a command on them when they do

The (command line) interface I have in mind is like so: watching FILE+ do COMMAND [ARGS] (and COMMAND [ARGS])* Where any occurrence of "{}" in COMMAND is replaced with the name of the file that changed. And note that "do" and "and" are…
dreeves
  • 26,430
  • 45
  • 154
  • 229
4
votes
8 answers

Bash: Only allow script to run by being called from another script

We have two bash scripts to start up an application. The first (Start-App.sh) one sets up the environment and the second (startup.sh) is from a 3rd party that we are trying not to heavily edit. If someone runs the second script before the first the…
HF Clibron
  • 41
  • 2
4
votes
1 answer

sudo chown /usr/bin/local not working permanently for homebrew upgrade

i have tried sudo chown $whoami /usr/local/bin , after closing terminal and reopening terminal but it keeps getting permission denied, it doesn't fix it permanently. shaunstanislaus@Master ~ $ brew upgrade ==> Upgrading 3 outdated packages, with…
Shaun Stanislaus
  • 511
  • 1
  • 6
  • 20