All Questions
207
questions
3
votes
1
answer
930
views
Cross domain authentication with transitive forest trust for linux
I have two domains -- one for dev and one for corp.
I can join a Windows machine to the dev domain and login as a corp user because of the transitive forest trust. I can join a Linux machine to the ...
1
vote
0
answers
210
views
How to change Public Key in Oracle Cloud
I have CentOS running on AMD and Ubuntu running on ARM services on Oracle cloud. Previously, I shared my private key (used for connecting SSH/Putty) with my freelance developer. However, over a month ...
-1
votes
1
answer
890
views
PermitRootLogin set to no but can still use root on Centos Stream 9
Im following an RHCSA training course and to disable root I need to set PermitRootLogin to no in the /etc/ssh/sshd_config file and restart sshd using systemctl. I've done all this and can still login ...
-1
votes
1
answer
52
views
Linux analyze and monitoring log tool?
I have a server using OS centos-7, but sometimes my server got slow with some processes. I want to check which service or process makes the system slow. how to check the percentage of CPU, ram, or ...
0
votes
0
answers
312
views
Nginx equivalent for apache mod_rewrite rule
My script is hosted on centos 7 apache server, with below htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
...
0
votes
2
answers
672
views
How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?
I just joined a new company. I've been asked to build a CI/CD pipeline for a Laravel app. It is very fragile. It was built for PHP 5.5 and it breaks when they've tried to upgrade to 5.6 or 7. They don'...
4
votes
1
answer
20k
views
Not able to backup of postgres DB from DBeaver
Hope you are doing great.
We have postgres install on centos server and accessing it through DBeaver from Ubuntu machine.
Whenever we try to take backup of Database it is giving error as "Native ...
0
votes
0
answers
645
views
How to preserve file access time when using `chmod`
I would like to know how can I preserve file access time ("atime") when using "chmod". Sometimes I need to use the code below:
chmod -R 777 /directory
It works fine, however all ...
0
votes
0
answers
15
views
Public Cloud Virtual Machine - Restrict Uninstalling Packages
During the evaluation on public cloud(VMs) security product, Below question came into my mind. I would like to request your kind consultancy to fix this challenge
Requirement: Install a security agent ...
0
votes
1
answer
607
views
CentOS stream 8 or ubuntu
Which operating system is suitable for website?
I have 1 website on VPS and I use CentOS stream 8, Is this good or do I need to change?
I want my server to be stable and up to date and need less ...
1
vote
1
answer
546
views
My DHCP client server (CentOS) cant get IP from DHCP server (Ubuntu)
Good day
kindly i have set up my DHCP server ( ubuntu Server) to provide IP for servers as client but the client is getting another IP out of submitted rang IP and i can't find any symptom in this ...
1
vote
1
answer
4k
views
SSH looks connect but password prompt not come
When SSH clients try to connect CentOS 7 openssh-server waiting for password prompt but never comes. When I debug, connection log and netstat shows connection established.
Here is my client debug:
...
0
votes
0
answers
101
views
iptables on nested KVM appears to be dropping return traffic
I'm trying to get nested KVM working in Google Cloud, but I'm having trouble with Centos 7 dropping traffic that's returning through IP Tables.
Centos 7 forms a virtual router (VR), which sits at the ...
0
votes
0
answers
419
views
How to connect Dynamodb from Docker?
I am running a DynamoDB as docker container on a linux virtual machine.
The url for DnyamoDB docker image: link
But in the description, no where they mentioned about access key and private key.
If it ...
1
vote
1
answer
4k
views
Ansible does not load environment variables from .bashrc
I want to preload variables from .bashrc file with an Ansible playbook.
I tried these ways:
- hosts: my_host
tasks:
- name: Display environment variables
shell: |
. ./....
0
votes
1
answer
541
views
is running `apt full-upgrade` daily basically the Ubuntu equivalent of CentOS Stream?
I've been reading a lot about how CentOS Stream is like a rolling release between RHEL point releases. Is running apt full-upgrade or apt-get dist-upgrade on a daily basis essentially doing the same ...
2
votes
1
answer
85
views
Sending starting from one ip address and receivig with another
Friends, I wanted to test my firewall traffic for certain situations and wondering whether I could do it with a single computer. I configured following IP addresses (single network card, 2 ip ...
1
vote
0
answers
2k
views
How to enable system-wide crypto policies using the "crypto-policies" utility in Ubuntu?
The "crypto-policies" utility from Redhat and CentOS is also available in Ubuntu. It is supposed to help with the management of configuration of the core cryptographic subsystems like TLS, ...
-3
votes
1
answer
410
views
Downgarde CentOS 7+ to CentOS 6 [closed]
I've been doing some research and most of forum I've read so far say that there's no way to go down from 7 or 8 to version 6.
I did follow a guide and they said this notice:
Note: The following steps ...
1
vote
1
answer
312
views
KVM VM which MAC address to give hosting company (Fasthosts)
To allow traffic to be routed through there network for my KVM VM my hosting company want to know the MAC address. The way I have it set up is my VM used a different IP from the host. I have bridges ...
0
votes
0
answers
16
views
Why am I seeing the Apache2 default screen for CentOS even if I am running ubuntu
I have two apache virtual hosts (domain based) installed on a server running ubuntu (82.223.117.149).
It's uname -a is Linux localhost 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 ...
0
votes
1
answer
3k
views
I am trying to setup some auditd rules but getting error -F missing operation for auid
i am trying to setup the below rule in /etc/audit/audit.rules
-a always,exit -S unlink -S unlinkat -S rename -S renameat -F auid>= 1000 -F auid!=4294967295 -k delete
which didn't work so i tried ...
1
vote
1
answer
2k
views
Running two Django project in the same server , or use a new one?
I already have created one Django project in an Apache server using CentOS 7 , python3... Now I have to create another django project and I wonder if I should add this project in the same server or in ...
0
votes
3
answers
2k
views
How do I limit new users from accessing the GUI application
Existing setups has Login's are connected to Active directory where new user's are created.
My task is to limit the new users from accessing the apps.
I would like to seclude them to use ...
2
votes
0
answers
57
views
Why Does "yes" have drastically different performance on different ditros? [closed]
I tested yes using pv with following command on two different distros :
yes | pv > /dev/null
Results :
Ubuntu 16.04 : 5.83GiB/s
Centos 7.x : 100MiB/s
Here is my Specs:
1st distro : Ubuntu ...
0
votes
1
answer
366
views
Linux create symlink from tmpfs to slow drive
My application creates cache inside my OS drive which is slow so I have mounted tmpfs and created a directory inside it. Then I created a symlink and pointed it to my slow OS drive path where caches ...
0
votes
1
answer
2k
views
How to mount CIFS shares in Linux without password, using domain credentials?
I have Ubuntu 18.04 and CentOS 7 boxes, they are members of Windows domain (using sssd).
Linux users need to mount CIFS shares from domains fileservers. What should be done in order to provide ...
0
votes
1
answer
7k
views
kickstart file /run/install/ks.cfg is missing centos
I am in a bit of trouble in regards to an kickstart installation and this is done via net install and is running on VMWARE sphere.
All systems have as well been updated and upgraded to the latest ...
0
votes
0
answers
973
views
How to push a local DNS resolving entry to client when an OpenVPN connection established?
I am using OpenVPN-2.4.6 clients and an OpenVPN-2.4.5 server that resides an OpenWRT(18.06.01) router.
The OVPN client connects to the server by a public DNS name of the server(i.e pubName.my.router),...
0
votes
1
answer
154
views
(Open) LDAP authentication - superuser not available on client
I'm still arguing with LDAP authentication. Now I have a server running openldap in centos, some account and a client that can use that directory to log on.
The issue I have is that I'm no longer ...
4
votes
1
answer
2k
views
How to setup a cron job every random weekday?
As the question is fairly self-explanatory, I would like to know how to set a cronjob to execute any random weekday without using any external script.
EDIT: In case people have not understood this ...
2
votes
2
answers
3k
views
DHCP not sharing Internet access
I have several Virtual Machines in Vmware ESXi 6.5 with 2 Network Groups.
Created a DHCP Server Machine on CentOs with 2 networks interface.
1 / vm network from which it takes a network and has IP ...
0
votes
1
answer
1k
views
centos 7 VM keep shutdown and restart automatically for unknown reason
centos 7 VM keep shutdown and restart automatically for unknown reason.
I have checked my log messages, But I can't find what is the exact reason?. Please give any suggestions. I have attached my ...
0
votes
1
answer
1k
views
comparing the default enabled modules of httpd on CentOS to apache2 on Ubuntu
I'm migrating a server from Ubuntu 16.04 running Apache2 to CentOS 7.5 using httpd.
By checking the enabled modules on both machines I found that httpd enables many more modules by default in ...
0
votes
1
answer
4k
views
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have a Linux server (Centos 7) running WordPress and another Linux server (Ubuntu) running MySQL. Communication between WordPress and the Database was working. However, after a web server reboot, I ...
1
vote
0
answers
366
views
Strange error with Invoke-Command : Windows Principal functionality is not supported on this platform
Sometimes, When I try to execute a remote command in a PowerShell Session from PowerShell in Linux, I get this error:
Invoke-Command : Windows Principal functionality is not supported on
this ...
0
votes
1
answer
415
views
Linux boot stuck on a server running Xeon L5420
I have this relatively old Supermicro server with m/b X7DBR-3, it has dual Xeon L5420 cpu and 32G ECC memory. I am trying to install Linux on it, tried both Ubuntu 16.04.4 and CentOS 7 (the ...
2
votes
1
answer
3k
views
Why my url's are encoded in nginx.conf?
Basically I have this nginx.conf file where I receive some parameters from my index.html page form. One of these parameters is called $url and I use it to do a:
proxy_pass $url;
The thing is that ...
0
votes
1
answer
52
views
Which are the files created while installing a package..suppose httpd? [closed]
I know /etc/http and /var/www/html folder will be created.Also init.d file and log files for service will be created.Other than this what are the changes occuring?Could anyone explain this please.
I ...
0
votes
1
answer
412
views
KVM with public static IP requires network restart every time
I set up the kvm vm with public static IP and everything works fine, but only after network restart on host. I mean, every time after host turned on, i must run "service network restart" and only ...
1
vote
0
answers
276
views
Relations beetween apache processes and pageloads/views /hits
When I run the command ps aux, I see many entries /usr/sbin/apache2 -k start (In Ubuntu machine) and /usr/sbin/httpd -k start (In Centos). I have read fro somewhere that each of those entries is an ...
1
vote
0
answers
618
views
usernames in nfs share between nfs server (CentOS) and nfs client (Ubuntu)
I have a NFS server (CentOs 6.9) and a NFS client (Ubuntu 16.04). I have installed nfs-utils and rpcbind on the server. The server configurations are as follow:
/etc/exports
/home 192.168.1.11(rw,...
1
vote
2
answers
4k
views
My apache server has stopped running after ssl update on a live site
I have a standard amazon ami(The one created by amazon), which has apache installed on it. We needed to update the ssl certificate which i did by going through these steps
I have done this before so ...
-1
votes
1
answer
89
views
merge space on linux - from /data to / (root)
when i check space on centos server i see
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/md1 58883 54328 1558 98% /
tmpfs 15946 0 15946 ...
5
votes
1
answer
3k
views
Proper way to override Mysql my.cnf on CentOS/RHEL?
Context: I'm porting an opensource server software (and writing associated documentation) from Debian/Ubuntu to CentOS/RHEL.
For the software to run correctly, I need to add a dozen of specific ...
2
votes
1
answer
59
views
How to define envrionment variables accesisble by crontab's run and bash shell
I want to define environment variables in one place which will be accessible through different user's crontabs, and from bash shell running.
How can I write it once in one place to be accessible to ...
0
votes
1
answer
77
views
KVM Centos6 Windows Guest No Network
Running a windows 2008 r2 virtual on KVM via this guide. https://wiki.centos.org/HowTos/KVM#head-8424c473b52c407c62d08e8a37406821d05f5862
Using the interface provided by: virt-manager &
With ...
-1
votes
1
answer
553
views
Cannot chroot mounted volume to reset root password ( hangs )
I am trying to reset the root password on my instance. I boot it in rescue mode and mount the primary disk.
fdisk -l
sudo mount /dev/sdb1 /mnt
sudo chroot /mnt
The prompt just hangs here and it ...
1
vote
2
answers
47
views
How to manage versions and dependencies on a virtual machine
I am new here on serverfault so bear with me please.
I am currently working with static web (angular2) and php deployment primarily on DigitalOcean and AWS using nginx and apache2.
Until now debian ...
-2
votes
1
answer
2k
views
How to create RDNS (Reverse DNS) [closed]
How to create a RDNS (Reverse DNS) in centos or Ubuntu [PTR record]
I searched a lot in Internet and didn't find any solutions. I got a idea it can be done by BIND or BIND9.
In some forum i seen ...