Latest Server related questions

Score: 0
Pete avatar
Shell Script to Move a File Into Another User's Directory?
ca flag

I'm running a Ubuntu 16.04 server. On my server, I have a file in directory /home/userA/dirA:

userA@myUbuntu:~$ 
userA@myUbuntu:~$ pwd
/home/userA
userA@myUbuntu:~$ 
userA@myUbuntu:~$ ls -l
total 8
drwxrwxr-x 3 userA userA 4096 Feb 17 14:13 dirA
userA@myUbuntu:~$ 
userA@myUbuntu:~$ ls -l dirA/
total 7796
-rw-rw-r-- 1 userA userA  1234 Feb 17 14:05 theFile.txt
userA@myUbuntu:~$

Note the ownership he ...

Score: 0
How to pass variables inside docker container to application securely?
br flag

An application inside a docker container is a required connection for external PostgreSQL DB. How can I pass variables inside the docker container for this application securely? I have in the file pass.conf:

db_user=postgre
db_password=test

With hardcoded credentials that I copy inside a container in Dockerfile. This solution works but I am trying to do it more securely. thank you

Score: 0
mr-nobody avatar
Configure Domain name to Virtual Machine - Azure
cn flag

I have a virtual machine in my Azure subscription running Windows Server, having a public ip address on a specific port (https://ipaddress:port). This ip address is linked to a website in the Windows Server

I also purchased a domain name and a ssl certificate from Azure as well.

How can I link the domain name to the virtual machine ip address ?

So, instead of typing the ipaddress with the port. I can j ...

Score: 0
route all trafic from dummy0 to eth0
jp flag

I need all the IPs in the segment 10.10.0.0/29 to have access to the Internet via eth0.

ip link add dummy0 type dummy

ifconfig dummy0 10.10.0.1 netmask 255.255.255.248

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever

2: ...

Score: 0
stacky_bobo avatar
KVM stuck in boot loop
in flag

I have a server here, running Ubuntu 16.04 and libvirt 4.0.0. It is hosting a single KVM, a Jenkins Server. This server however is stuck in a boot loop after it was shut down for maintenance. I cannot quite make sense of the error log of that machine:

2022-02-22 17:47:16.939+0000: starting up libvirt version: 4.0.0, package: 1ubuntu8.20 (Christian Ehrhardt <[email protected]> Thu, ...
Score: 0
Debian 9: What powered off my system?
cn flag

For a day or so I've been trying to figure out what is powering off my system. It's Debian 9 running on a Beaglebone Black, and 5 minutes after power up (give or take a few seconds) it powers itself off. Some piece of software asks it to, and I can't find out what.

I've renamed /sbin/poweroff and /sbin/shutdown, they're gone, and it still shuts down.

I stopped all my apps/services. Virtually noth ...

Score: 0
Powershell ssh connection from linux to Domain Controller is extremely slow
cn flag

I have PHP application to create user accounts in our Windows Active Directory. This application is running on Apache and Debian 11. I have LDAP only (because of some apps which are not supporting LDAPS), so I'm unable to set password directly from PHP. I'm trying to achieve this using powershell via ssh. I have installed latest versions 7.2 on both linux and domain controller. On DC I added OpenSSH ser ...

Score: 0
Nagendra Kumar avatar
Kubernetes flow in case of pod crash
cn flag

Even if I don't configure any liveliness/Readiness probes, how Kubernetes detects my pod crash and then restart it. Can someone know the flow of Kubernetes in such case. Thanks

Score: 0
How to make OSSEC send email when it is stopped?
pk flag

OSSEC sends an email when it is started, but not when it is stopped. So, if someone would somehow get access to the server, he could just stop the OSSEC and do whatever he wants without me knowing it. Or am I missing something?

Score: 0
Postfix access file validation
no flag

I am trying to test if my postfix access files are working properly (to block spammers) but I am getting different results based on if I create a regular expression access file or a hash access file.

Here is my regular expression access file:

/@spammer.com$/ DISCARD

Here is my hash access file:

spammer.com DISCARD

I am testing their validity using the postmap -vq command but getting differing result ...

Score: 0
sar service has stopped collecting data
gb flag

We had sar working on our Ubuntu server, but did some work on the server and now it's stopped logging to the day's logfile.

sar -b 5 5

This indicates that sar is alive, and monitoring data, but

ubuntu@testing:/var/log/sysstat$ sar

outputs:

Linux 5.4.0-1063-azure (server)     02/22/22    _x86_64_    (4 CPU)

10:22:05     LINUX RESTART  (4 CPU)

10:22:46     LINUX RESTART  (4 CPU)

10:24:25     LINUX ...
Score: 1
Hagen von Eitzen avatar
Windows share not respecting NTFS permissions?
cn flag

I have a Windows server and so far shared a folder D:\AAA as "ShareRW" with full share permissions ("Everyone - Full") and some stricter NTFS permissions as required on and below that folder; for example, UserX has full access to D:\AAA\BBB, read access to D:\AAA\CCC and cannot even see D:\AAA\DDD (because it has inheritance disabled and explicit rights only to other users). I checked on the server tha ...

Score: 0
theonefromcv avatar
How to implement backup link via VPN
ru flag

I have a PTP wireless network from one location to another and it is working well. I would like to have a VPN backup in case it should ever go down.

How can I make this happen automatically? I am using MikroTik routers and I already set up the VPN, but if my PTP link goes down, how can I fail over to the VPN? Is this doable?

Network Diagram

Score: 0
Prashanth Kannan avatar
Indent issue at docker compose
eg flag

enter image description here

ubuntuserver@ubuntu:~/Nginx-Reverse-Proxy/proxy$
ubuntuserver@ubuntu:~/Nginx-Reverse-Proxy/proxy$ cat docker-compose.yml
version: "2"

services:
  proxy:
  build:
    context: ./
  networks:
    - example1
    - example2
  ports:
    - 80:80
    - 443:443

networks:
  example1:
    external:
      name: example1_default
  example2:
    external:
      name: example2_d ...

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.