Latest Server related questions

Score: -1
Does exposing an absolute system filepath to the public present a security vulnerability, and if so, how so?
dz flag

EDIT: I have reworded the title and my question to be more general, as well as being more specific as to the answer I am seeking.

I made an error when making some changes in my PHP files, and used __DIR__ to dynamically create the url in a redirect. So if users hit the redirect due to being logged out, they would have gotten directed to a url that is something like: /home/filesystem/path/to/logoutpage.p ...

Score: 0
comctimert avatar
How to create TCP proxy that supports multiple hosts?
jp flag

I would like to create a TCP proxy that supports multiple hosts. The example I saw was where a DNS server was used to point a specific host to a TCP proxy which had the host hardcoded in it. The TCP proxy can not handle multiple hosts because if all hosts were routed to the TCP proxy, the proxy would not know where to send the data to. Are there any ways to get around this issue?

Score: 0
rk92 avatar
Allow users in chroot to SSH to another VM instance
tr flag

Been coming across some issues with setting up SSH from a chroot directory out to a secondary VM. This is all being done in Google Cloud at the moment using CentOS 8. I think I have created the chroot directory correctly, added /bin/ssh to the chroot directory, added shared libraries for /bin/ssh.

I am stuck currently at running ssh <IP_ADDRESS>. I had to first create a /home/<USER>/.ssh ...

Score: 2
Adrian avatar
Initial connection (TCP handshake) takes 150 seconds first time with https only, but normal from then onwards - Apache - AWS EC2 - Route 53
in flag

I'm new to web deployment. I have this at this stack at the moment:

  1. Django
  2. Apache
  3. EC2
  4. Route 53
  5. Namecheap

When I access the website through the public IPv4, it is instantaneous.

However, when I access the web page through the domain, it takes 2 minutes and 30 seconds exactly.

This picture shows the waterfall graph

In more detail

I see that there's no problem with the DNS lookup, nor the SSL, so the  ...

Score: 0
Mounted .img file does not clear up disk space when files are deleted
cn flag

I have a requirement to use more inodes than normally available on most file systems. Therefore, I create and mount a ext4 filesystem with a custom inode setting:

dd if=/dev/zero of=loop0.img bs=1MB count=5000
losetup --find --show `pwd`/loop0.img
mkfs -t ext4 -i 1024 /dev/loop0
mount /dev/loop0 /mnt

This will create a 5000MB file on the disk (via ls /mnt), but when I check using df it shows as  ...

Score: 0
Two applications on apache2 subdomain.example.com and example.com
ng flag

I would like to get working apache2 configuration with http://openproject.example.com and https://example.com (wordpress blog).

My configuration:

/etc/apache2/sites-enabled/wordpress.conf

<VirtualHost *:80>
        ServerAdmin admin@HOSTNAME_HERE.com
        DocumentRoot /var/www/HOSTNAME_HERE/wordpress/
        Redirect / https://HOSTNAME_HERE.com/
        <Directory /var/www/HOSTNAME_HERE/wor ...
Score: 0
System-wide Docker login?
ua flag

Is there any way to log a whole machine / Docker daemon into a registry?

Everything I see about docker login and various proprietary credentials helpers uses ~/.docker/config.json, i.e. is per-user.

I have a situation where I would like to pull images from a private registry; multiple people have both arbitrary sudo access on those machines and should be able to use Docker against our registry.

Sinc ...

Score: 1
hyogy avatar
Socat - is it possible?
us flag

Is there any way to listen and execute a command ( for every connection ) while port forwarding with socat? A non-working example to make it more clear:

socat TCP-LISTEN:8080,reuseaddr, "exec:ls" fork tcp:localhost:80

Score: 0
buri tv avatar
Postfix cannot send any mail to internal domain
us flag

wasted too much time but could not find the problem. Postfix send any email to everywhere except not to my own domain.

I am getting 550-Unrouteable address 550 Sender verify failed (in reply to RCPT TO command)) error.


smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" war ...
Score: 1
Pablo Xavier avatar
Freeradius doesn't start when CoS user attributes are configured
us flag

I have a problem with a POC, I tried use Freeradius for authentication purpose and assign attributes for users of a broadband network (PPPoE). When I configure the user with this parameters I can connect the PPPoE client in the network and the Freeradius start without problems:

[email protected]     Cleartext-Password := "Passwd123"
                  ERX-Virtual-Router-Name = "test",
                   ...
Score: 0
Jim Seymour avatar
Is it possible to remove my domain controller and switch to a simpler Windows network?
gb flag

I have a small network (about five client PCs running Windows 7 or 10 and a server running a stripped-down version of Small Business Server 2011).

The only relevant things our SBS server does is host a couple of shared folders and being a Domain Controller. I've disabled Exchange and all(?) the other server functions. (It still runs DNS and DHCP, but that could easily be switched over to our in ...

Score: 1
Show free SSD space after TRIM / UNMAP / Deallocate?
ru flag

For a hard drive supporting ATA TRIM, SCSI UNMAP, or NVMe Deallocate, is it possible to report on the amount of unallocated space?

For example, we take a 1TB drive, then write 500GB data to it, then delete 300GB. Is there any command to show that the drive itself (not the filesystem) has 200GB used / 800GB free?

Score: 0
mrtz avatar
The specified package is not valid Windows package. Error: 0x800f0805
de flag

I installed Windows Server 2016 on VirtualBox, and now I am trying to install DHCP server on my Windows Server 2016 machine, but I got an error. I set this machine as a Domain Controller before, so I thought this situation may cause the error. I searched it on web, and found a solution. Then I deleted some language packages from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Componen ...

Score: 1
ONDER avatar
Configuring 3 VLAN with different IP ranges?
us flag

I bought TP-Link T2500G-10TS L2 switch. My intention is to establish 3 VLANs.

Company A - IP range starts from 192.168.1.1 to 255

Company B - IP range starts from 192.168.2.1 to 255

Guest - IP range starts from 10.0.0.1 to 255 (for Wi-Fi)

This is an 8 port switch. Port assignments;

Internet cable will be plugged into 1st port so all VLAN can access to the Internet.

2nd port can remain same for accessi ...

Score: 1
rdowell avatar
USB networking setup between Android and embedded Linux
lk flag

I'm working on a project right now where we have an embedded Linux system running some sensor/motor control functionality, and we're creating a GUI application to allow the user to control the system. In the future we may run both applications on a single system, but for the time being, we want to be able to install this as an upgrade to existing machines, and the existing controller boards don't have  ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.