Most Popular

1500 questions
43
votes
3 answers

Change current directory to the batch file directory

I have a bat file on windows that execute a procdump operation. The issue with the batch file is that I need to cd to the batch file directory first before executing the job, or else the script won't work. How to change to the current batch file…
Graviton
  • 2,775
  • 12
  • 41
  • 62
43
votes
16 answers

Early signs of a bad sysadmin

We're about to get our first sysadmin to look after a multitude of SQL Servers which have previously been awkwardly looked after by a mixture of the developers and IT support. It's long overdue, and we've been trying to persuade the higher-ups to…
MartW
  • 1,305
  • 10
  • 15
43
votes
3 answers

systemd: Grant an unprivileged user permission to alter one specific service

I'm running a private game server on a headless linux box. Because I'm not an idiot, said server is running as its own unprivileged user with the bare minimum access rights it needs to download updates and modify the world database. I also created a…
Shadur
  • 1,297
  • 1
  • 10
  • 20
43
votes
3 answers

Can different AWS accounts manage different subdomains?

I have two AWS accounts. The master account with example.com as a Hosted Zone, this then has a number of record sets (i.e. api.example.com and kibana.example.com). A second account will be managing testing.example.com as a Hosted Zone, with the…
mlk
  • 541
  • 1
  • 4
  • 7
43
votes
10 answers

Check is container/service running with docker-compose

I am using the docker-compose. Some commands like up -d service_name or start service_name are returning right away and this is pretty useful if you don't want the containers running to depend on the state of the shell, like they do with regular up…
Ivan Kolmychek
  • 1,154
  • 2
  • 9
  • 13
43
votes
2 answers

IIS6 vs. IIS7 and IIS7.5: handling URLs with plus sign (+) in base (not querystring)

For any URL with a plus sign (+) in the base URL (not the querystring), IIS7 and IIS7.5 (Windows Server 2008 and 2008 R2) do not appear to forward the URL to the default handler on an ASP.NET application. I started noticing the issue with a custom…
patridge
  • 982
  • 1
  • 10
  • 15
43
votes
3 answers

Ubuntu 15.10 Server; W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast

I'm running Ubuntu 15.10 server on a Asrock E3C226D2I board. When I get a kernel update or run update-initramfs -u I get a warning about missing firmware: root@fileserver:~# update-initramfs -u update-initramfs: Generating…
wouter
  • 533
  • 1
  • 4
  • 6
43
votes
10 answers

Is it viable to run very lightweight services straight off a Raspberry Pi 2?

If computers were much simpler, there would be less points of failure which in turn might improve stability and simplify maintenance. This got me thinking - for a smallish team of about 25 people, does anybody have experience with running certain…
Frerich Raabe
  • 801
  • 7
  • 15
43
votes
2 answers

Slow ssh login - Activation of org.freedesktop.login1 timed out

On one of my servers I've noticed really delay on SSH logins. Connecting using the ssh -vvv options the delay occurs at debug1: Entering interactive session. extract of connection: debug1: Authentication succeeded (publickey). Authenticated to…
Alasdair
  • 551
  • 1
  • 4
  • 7
43
votes
3 answers

Linux: how to give a user permission to restart apache?

I have a script running under a non-root user which, under certain conditions, should restart apache httpd. What would be the simplest way for me to allow the user to do that? I'm using Ubuntu Server 8.04 LTS.
itsadok
  • 1,839
  • 5
  • 21
  • 33
43
votes
6 answers

How can you tell what a server actually does?

I've been handed 3 Linux boxes, 1 front facing with apache on it and another 2 which, as far as I can tell, don't do an awful lot. All running on Redhat. The question is simple: How can I tell what the server is actually doing? Zero documentation is…
Bizmark
  • 598
  • 4
  • 5
43
votes
4 answers

How to identify who/what uses a Windows 2003 server?

How can I determine if a Windows 2003 server is still being used by anyone/thing, and if it is, what it is being used for? I'm drawing a blank on what else to check other than event viewer to see what accounts are connecting to the server.
SumDumGuy
  • 441
  • 4
  • 5
43
votes
9 answers

How to hide a password passed as command line argument?

I'm running a software daemon that requires for certain actions to enter a passphrase to unlock some features which looks for example like that: $ darkcoind masternode start Now I got some security concerns on my headless debian…
q9f
  • 630
  • 3
  • 10
  • 21
43
votes
2 answers

postgres server fails to start, produces no log, how to to troubleshoot?

I'm starting up a postgres 9.3 instance on a ubuntu 12.04 server : ~# service postgresql start * The PostgreSQL server failed to start. Please check the log output. [fail] the…
Max L.
  • 541
  • 1
  • 4
  • 5
43
votes
9 answers

People think a "hidden" save file dialog box means the computer is frozen

I have had reports of my remote workstation freezing for several months, and it turns out that this is happening: User goes to print something to PDF (or save it). The file dialog box comes up asking where they want the file to go. They click…
Eli
  • 741
  • 2
  • 8
  • 16