Skip to main content
52 votes
Accepted

Unix system(“unzip archive.zip”) Extracting Zip Files Silently

man unzip: -q perform operations quietly (-qq = even quieter). Ordinarily unzip prints the names of the files it's extracting or testing, the extraction methods, any ...
Ipor Sircer's user avatar
  • 14.7k
34 votes
Accepted

What are the correct permissions for a systemd .service?

Any local user can read the definition of any systemd system unit through the DBus interface (for example using systemctl show someUnitName), unless you have a custom DBus policy in place to prevent ...
TooTea's user avatar
  • 2,458
20 votes
Accepted

What is the difference between AmbientCapabilities and CapabilityBoundingSet?

They're complete opposites: AmbientCapabilities grants capabilities that the process normally wouldn't have started with. CapabilityBoundingSet limits capabilities the process is allowed to obtain. ...
u1686_grawity's user avatar
18 votes
Accepted

How to block clients by IP address from accessing certain URLs on my web server?

This may be more heavy weight than you're looking for, but you might consider using fail2ban (https://www.fail2ban.org). That's a tool that can monitor your log files and automatically ban addresses ...
Andy Dalton's user avatar
  • 14.2k
14 votes
Accepted

Apache SSL: server cert does not include ID which matches server name

Okay, I noticed that this post is viewed quite often recently and so it seems that a lot of people are facing the same issue that I did. If so then this might help you. I have followed a simple step-...
pixelmusik's user avatar
12 votes

How to determine which webserver is installed with no information?

A basic approach would be to use netstat -tnlp with an additional grep on the browser ports that it is supposed to be serving. Typically, that would then be: netstat -tnlp | grep 80 netstat -tnlp | ...
lx2610's user avatar
  • 125
10 votes

Unix system(“unzip archive.zip”) Extracting Zip Files Silently

From the unzip man page: -q perform operations quietly (-qq = even quieter). Ordinarily unzip prints the names of the files it's extracting or testing, the extraction methods, any file or zipfile ...
Artemis's user avatar
  • 231
9 votes

Simple command line HTTP server

A simple fix/enhancement to a slightly unfairly (imho) down voted answer might also work. Let's set up the html file first ... echo '<html><head><title>My Test File</title><...
Vijay's user avatar
  • 91
9 votes

systemd - My custom service exits with status code 216/GROUP

Group=nobody When the error message tells you that there's a problem setting the group that the service runs as, which is what that status code is doing, really your first thought should be "Have I ...
JdeBP's user avatar
  • 69.5k
8 votes
Accepted

login with apache user

The www-data user is evidently configured with /sbin/nologin (or equivalent) as its shell, and thus the system will not allow you to login to that account. sudo lets you run a command as any user on ...
D_Bye's user avatar
  • 14k
8 votes
Accepted

Can't ssh into my server from home linux but can ssh into same server from windows

I've found solution for this problem (sorry for answering my own question). I'm answering it because If someone has this problem then he/she can use solution that I found. Actually problem is on both ...
Mohan Sharma's user avatar
8 votes
Accepted

How to use asciinema offline?

Just pass asciinema rec a file name as an argument, in which case it will simply save the recording to the local file and not try to upload it to the server. For example: $ asciinema rec demo.cast ...
filbranden's user avatar
  • 21.9k
7 votes

Apache SSL: server cert does not include ID which matches server name

In my case I have resolved this by replaced in my apache ssl config file for each concerned domain : ServerName mydomain.com ServerAlias www.mydomain.com by : ServerName www.mydomain.com ...
user2267379's user avatar
7 votes

How to block clients by IP address from accessing certain URLs on my web server?

Don't. At best you'll achieve nothing but making your logs less cluttered; at worst you'll end up blocking legitimate visitors who happened to get (via DHCP) an IP address that used to belong to ...
R.. GitHub STOP HELPING ICE's user avatar
7 votes
Accepted

find command of nobody runs on every fresh boot in the morning - debian stretch

The find is indeed part of updatedb, which runs daily, triggered by the cron daemon. You can verify by comparing the find parameters from your process list against the configuration in /etc/updatedb....
Marvin's user avatar
  • 361
6 votes

How can I start the python SimpleHTTPServer on port 80?

Do something like : python -m SimpleHTTPServer 50505 Where 50505 is the port number.
Akash Yellappa's user avatar
6 votes
Accepted

Problem running CURL with the dns option

The curl binary that's built for Debian and Ubuntu doesn't contain support for libc-ares. That's because that library can't return both A (IPv4) and AAAA (IPv6) queries in a single response, so if ...
bk2204's user avatar
  • 4,199
6 votes
Accepted

Download list of directory/file names only from web server index

HTTP protocol has no feature to request a "list of files" from an HTTP server. curl / wget/ browser requests a URL, which contains an arbitrary request string and the server sends back some arbitrary ...
binarysta's user avatar
  • 3,082
5 votes
Accepted

Should I deploy with the same user who is running the website?

Actually, the files should not be owned by www-data because that means Nginx can modify them, which in most cases is not what you want (unless it is a CMS that needs to self-update.) So all the files ...
Alexis Wilke's user avatar
  • 2,929
5 votes
Accepted

create a virtual machine from the CLI? (KVM)

Just use: virt-install \ --name vm_name \ --ram=2048 \ --vcpus=2 \ --disk pool=guest_images,size=30,bus=virtio,format=qcow2 \ --cdrom /var/iso/debian.iso \ --network bridge=kvmbr0,model=virtio \ --...
Egor Vasilyev's user avatar
5 votes
Accepted

How to download adminer with wget?

The -mysql and -en portions are optional: wget https://www.adminer.org/latest.php will download the latest version, wget https://www.adminer.org/latest-en.php will download the latest version in ...
Stephen Kitt's user avatar
5 votes
Accepted

Invalid SSL certificate only on my Linux machine

This sounds like Chrome doesn't have access to the necessary CA certificate. A quick check with ssllabs.com suggests that your site is missing an intermediary certificate. When you purchase a ...
Philip Couling's user avatar
4 votes

Simple command line HTTP server

try caddy curl https://getcaddy.com | bash serve content from /var/www caddy -root /var/www "browse" now you find the server at http://localhost:2015 https://caddyserver.com/ https://nwgat.ninja/...
nwgat's user avatar
  • 171
4 votes

find IP and PORT in use by Apache

That last column is the process (process # / process name) and not the port. The port is in the fourth column, in your case it shows two ports open ulistproc and https. Both ports are open on the ...
MAP's user avatar
  • 595
4 votes
Accepted

How to set up a localhost server with http protocol on apache

How to setup localhost server with http protocol on apache? Its depends upon the OS you are using. if you are using Ubuntu sudo apt-get install apache2 if you are using CentOS/Redhat sudo yum install ...
Raja G's user avatar
  • 5,997
4 votes

Apache SSL: server cert does not include ID which matches server name

If you are seeing no other SSL errors, and if you have tried setting 'LogLevel debug' in the httpd.conf file, this error message can also suggest 'Listen 443' is missing from the httpd.conf file.
BenjaminBrink's user avatar
4 votes
Accepted

Hosting Linux: Is there any way to run multiple website applications?

When you're asking for multiple instances, are you referring to multiple websites? If so what you're looking for is called Virtual Host. This can definitely be setup within Apache. See the ...
AfroJoe's user avatar
  • 635
4 votes
Accepted

How to enable SMTP forwarding?

As I mention in my comment there are really several questions being asked. I will talk here a little bit about the port 25 issue. Port 25 is the standard unencrypted SMTP port and it is quite common ...
B Layer's user avatar
  • 5,181
4 votes

I need a script that detects when there is activity on port 443

Rather than trying to spin the drive up in time for handling an incoming request (you can't do this faster than the web server anyway), don't allow the drive to spin down. This can be done in a ...
Kusalananda's user avatar
  • 339k
4 votes

How to change adminer's default port?

The correct question would be: How to change my web server's default port? In case you're using Apache Web Server, then follow this steps: In /etc/apache2/ports.conf, change the port to: Listen ...
galoget's user avatar
  • 349

Only top scored, non community-wiki answers of a minimum length are eligible