Latest Server related questions

Score: 0
dognose avatar
mtime vs msec producing different result
ar flag

I've setup a little cron to compress log files of my application. Generally I need todays logs, so I can compress everything that is one day old or older.

Why do the two following commands behave different?

mtime is not finding anything at all, while using msec yields the desired result?

find /var/log/myapp/cronjobs/ -type f -mtime +1 -exec gzip {} \;

find /var/log/myapp/cronjobs/ -type f -msec +86400 - ...
Score: 0
pbies avatar
Roundcube does not take password for user at login
cl flag

I have roundcube and docker-mailserver in docker containers. I've managed to make change of password possible by roundcube password plugin. I created 'mailbox' table and added two columns: 'username' and 'password'. Now this is working, all users can change their passwords.

But still roundcube is logging in users by passwords from /config/postfix-accounts.cf, not from database.

How can I make roundc ...

Score: 0
vmrun can't delete snapshots with same name
in flag

In Vmware Workstation (16.2.1), I am creating linked clones using the following commands

vmrun.exe -T ws clone 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' D:\UbuntuMSAN1\Ubuntu.vmx linked
-cloneName=UbuntuMSAN1

vmrun.exe -T ws clone 'D:\UbuntuMSAN\Ubuntu MSAN.vmx' D:\UbuntuMSAN2\Ubuntu.vmx linked
-cloneName=UbuntuMSAN2

I can delete the VM by using the following command

vmrun.exe -T ws deleteVM D:\UbuntuMSAN ...
Score: 0
Ansible - how to loop through services present in inventory file
vn flag

winapp.example.comHello, I have an inventory file that holds both windows application servers, web servers and only respective services which need to stopped or restarted. Requirement is only specific services should be stopped for group of hosts. For e.g. appservers hosts should use services under appservers:vars

Appreciate your help !!!

Inventory\hosts.ini file contains

[appservers]
winapp1.example.com
 ...
Score: 1
DanRan avatar
Nginx Error logs: [error] open() "/etc/nginx/html/status/" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1
mx flag

I am running an Ubuntu based LEMP server with the Nginx's google pagespeed, fastcgi, and modsecurity modules active. I am going through my Nginx error logs, and cannot figure out what these errors mean, what to attribute them to, and how to fix them. It seems as if something is looking for a file inside of invalid directories, and I don't know why. If someone could please take a look at my Nginx logs lo ...

Score: 0
seb avatar
route traffic through IPIP tunnels
kr flag
seb

Host A --internet-- Host B --internet ipip tunnel-- Host C

Host A: 1.1.1.1 Host B: 2.2.2.2 Host C: 3.3.3.3

Ubuntu 18.04.

Host B ipip tunnel config

ip tunnel add tunnel0 mode ipip remote 3.3.3.3 local 2.2.2.2
ip addr add 10.0.0.0/32 dev tunnel0
ip link set tunnel0 up
ip route add 10.0.0.1/32 dev tunnel0

Host C ipip tunnel config

ip tunnel add tunnel0 mode ipip remote 2.2.2.2 local 3.3.3.3
ip addr ...
Score: 0
TaLeDa avatar
Kubernetes Nginx Ingress with Cert Manager and letsencrypt does not allow wildcarts in domain names
ru flag

I have a self-hosted Kubernetes cluster with an Nginx Ingress. Cert-manager is also running on the cluster, with which I try to get valid SSL certificates using Letsencrypt. It all works and I get a valid certificate for example.com, www.example.com or app1.example.com, but not for a general wildcard *.example.com. If I try in any way to enter a wildcard in my ingress under sec.tls.hosts, no certificate  ...

Score: 0
vsftpd : permission denied
ma flag

Running on debian10

My website :

/home/mysite.com drwxr-xr-x 16 www-data www-data 

I added a new user with

adduser alex

Content of /etc/vsftpd.conf

nano /etc/vsftpd.conf

listen=YES
listen_ipv6=NO
connect_from_port_20=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
pasv_enable=YES ...

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.