Most Popular

1500 questions
44
votes
7 answers

Forward local port or socket file to remote socket file

Quick question - I run two linux boxes, one my own desktop and the other my VPS. For security reasons on the VPS end I opted for socket connections to MySQL (/var/run/mysqld/mysql.sock). I know I can tunnel like this: ssh -L 3307:127.0.0.1:3306…
user32616
44
votes
4 answers

How to list symbolic link chains?

Given this example: mkdir a ln -s a b ln -s b c ln -s c d If I execute: ls -l d It will show: d -> c Is there a way for ls or any other linux command to show d -> c -> b -> a instead?
Kalecser
  • 543
  • 1
  • 4
  • 5
44
votes
2 answers

Does Apache Webserver use log4j (CVE-2021-44228)?

Does the apache webserver (apache2) use log4j? I have Apache2 2.4.38 (debian) installed on Raspberry Pi OS (64bit) and found some strange records in my log regarding CVE-2021-44228 from kryptoslogic-cve-2021-44228.com (honeypot/scanner),…
gilex
  • 523
  • 1
  • 3
  • 6
44
votes
6 answers

Rsync daemon: is it really useful?

Are there any practical benefits in using rsyncd compared to rsync over ssh? Does it really increase speed, stability, anything?
kolypto
  • 11,058
  • 12
  • 54
  • 66
43
votes
6 answers

Linux - How do I see when a process started?

How can I see when a process started, assuming I know the pid. (On Linux)
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
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
4 answers

What's wrong with my cronjob syntax, I'm trying to use a backtick (`)?

Here's what I'd like to automate: 00 08 * * * psql -Uuser database < query.sql | mail somone@null.com -s "query for `date +%Y-%m-%dZ%I:%M`" Here's the error message: /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c:…
Terry G Lorber
  • 667
  • 2
  • 9
  • 14
43
votes
4 answers

Authentication is required to manage system services or units.

I have a strange issue whenever trying to stop/start a daemon as a regular user, it asks to authenticate with the credentials of another regular user - for example: [bob@server ~]$ systemctl stop some-daemon.service ==== AUTHENTICATING FOR…
Jack O'Leary
  • 533
  • 1
  • 4
  • 4
43
votes
6 answers

What are named and default instances?

What are named and default instances? What is/are the difference(s) between them? Why they are used?
Novice Developer
  • 533
  • 1
  • 4
  • 4
43
votes
4 answers

What time zone is a cron job using?

I'm guessing there's a difference between my PHP time and the server time. When I check the current time in PHP, it's showing that MST is being used. However, cron jobs aren't running at the correct time. How can I check to see what timezone the…
Edward
  • 533
  • 1
  • 4
  • 4
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
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
  • 16
43
votes
5 answers

How do you use systemd's journalctl patterns

I am trying to use journalctl's pattern matching on SYSLOG_IDENTIFIERS. As an example, I have a ton of message tagged sshd: $ journalctl -t sshd | wc -l 987 but if I try to use pattern matching to find them: $ journalctl -t 'ssh*' -- No Entries…
Mark Grimes
  • 654
  • 1
  • 6
  • 8
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,869
  • 5
  • 22
  • 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
1 2 3
99
100