Questions tagged [centos]

Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

NFS mount reporting files below 65 bytes as using zero blocks

I've encountered a puzzling issue with small files on an NFS4 mount. Under 65 bytes they show as using zero data in certain scenarios. This produces apprently empty looking files in (for example) du ...
user avatar
  • 3,755
0 votes
0 answers
15 views

How to create custom repo and make it available within network through Apache on Centos7?

So i need to create custom repo & make it available within network through Apache. Steps i did. sudo yum install createrepo sudo yum install yum-utils Got tools to create repo sudo mkdir –p /var/...
user avatar
  • 1
0 votes
0 answers
20 views

How to restrict read access to directory for specific user in centos?

So here is the deal, i create directory /home/accounting, i have users donna and mike and i want to restrict read privileges for them to this directory. After going to google I was able to find how to ...
user avatar
  • 1
3 votes
1 answer
42 views

File permissions not matching allowed operations...?

I have been having several issues with a CentOS 9 VM related to file permissions. I've never had this much trouble before, and I'm wondering if it has something to do with the security options and ...
user avatar
  • 204
-1 votes
0 answers
28 views

Unable to install lynx text only browser in centos8 stream OS

This is the output I am getting: (base) [dexterdev@localhost ~]$ sudo yum install lynx Updating Subscription Management repositories. Unable to read consumer identity This system is not registered ...
user avatar
  • 333
0 votes
0 answers
8 views

SAR / syssstat issues

I am having issues with SAR not populating daily logs from the 10 minute interval runs it is supposed to be doing. I have the same configuration on multiple servers, and they are running sar just fine....
user avatar
1 vote
1 answer
27 views

Trouble understanding file partitions

I am trying to run fdisk on /dev/sda and create a new partition on /dev/sda3. I am not understanding what to do if no free sectors are available. I looked online and found different solutions and I am ...
user avatar
0 votes
0 answers
15 views

CentOS 9 and Alma 9 installers can't see my computer's hard drive

When I try to install 64-bit CentOS Stream 9 or Alma Linux 9 from either a USB stick or a DVD, the installation program lists all the hard drives on my system except the one to which I want to install ...
user avatar
0 votes
0 answers
27 views

Scripted commands via ssh on old Centos boxes

I need to run the same change on lots of Linux hosts. Before anyone suggests Ansible - that's a non-starter - many of these are Centos 5 which has python 2.4 and current versions of Ansible require a ...
user avatar
  • 4,324
0 votes
0 answers
15 views

Printer online and enabled - receives job but doesn't print

I have setup a printer with the command lpadmin -p printername -o printer-error-policy=retry-current-job -E -v lpd://printername/RAW?timeout=10. The printer is detected and enabled. However, when I do ...
user avatar
0 votes
2 answers
23 views

Install software on CentOS VM?

I want to install a software (Veeam) on my CentOS 7 virtual machine, but the thing is, all I have on that VM is the shell, so there's no GUI. How can I install software on this VM? I am a newbie ...
user avatar
0 votes
0 answers
18 views

Linux file compression and extraction (CentOS)

I seem to be having an issue with file extraction on centOS 7. Scenario: PC1 is collecting .csv and .txt extension files into one directory, every 5 minutes everything inside this directory is ...
user avatar
0 votes
2 answers
22 views

installed cabextract manually using make install, but its not available when using rpm

[root@mybox ~]# cabextract --v cabextract version 1.9.1 [root@mybox ~]# rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm error: Failed ...
user avatar
1 vote
0 answers
27 views

`ifconfig -a` and /etc/sysconfig/network-scripts/ifcfg* do not match

I have a CentOS box where the output of ifconfig -a shows an eth1 NIC but, there is no corresponding script at /etc/sysconfig/network-scripts/ifcfg-eth1. Is there any way to make sure this doesn't ...
user avatar
  • 119
0 votes
1 answer
32 views

How to use Systemd user services without Desktop session[No D-Bus]

I'm trying to setup user level Services(Python/Java/Node JS Processes) which need to run all the time, until I stop explicitly. The service need to be start/stopped as non root user. I've created ...
user avatar
  • 101
0 votes
1 answer
22 views

Spam Messages cb crond[1288]: No configuration file found at /root/.esmtprc or /etc/esmtprc

Centos 8, fresh install with asterisk on it all log drains by one message 20-100 per sec cb crond[1288]: No configuration file found at /root/.esmtprc or /etc/esmtprc
user avatar
  • 111
0 votes
1 answer
17 views

How do you put conditionals in an RPM spec file for %install and %file macros?

I only want files copied into an RPM spec file under a certain condition like: %install if [ %{test}=="true" ]; then cp %{topdirectory}/file1.txt $RPM_BUILD_ROOT/home/user1 fi %files ...
user avatar
0 votes
1 answer
23 views

Why can't I see print statements in my RPM spec file?

In my RPM spec file I have the following lines: %pre echo "This is a test" When I run the "rpmbuild" on my spec file, it builds everything correctly, but I never see the ...
user avatar
0 votes
0 answers
39 views

Yum/dnf error (35) when using https connections on CentOS Stream 9

BLUF: Can someone help me set yum and/or dnf to prefer TLS 1.3 when connecting to https sites? Situation: fresh installation of CentOS Stream 9 (CentOS-Stream-9-20220718.0-x86_64-dvd1.iso) on ...
user avatar
0 votes
0 answers
16 views

lastlog only showing results for single user

If I run lastlog with the option -l and a range, I get # lastlog -u 1000- Username Port From Latest nfsnobody **Never logged in** However, I ...
user avatar
  • 153
0 votes
1 answer
37 views

Installation stuck at installing packages for openstack.kolla.docker

I am a newbie trying to install AIO OpenStack using Kolla Ansible under a virtual environment. I am following the docs at https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html. I am ...
user avatar
  • 267
0 votes
0 answers
22 views

Centos security update

When i am using this : yum updateinfo summary i see the output showing security alerts available 3 Alerte de sécurité 1 Alerte de sécurité important(s) But when i try to do update of security this ...
user avatar
  • 57
0 votes
0 answers
7 views

I got Psych error while installing redmine

I am trying to install redmine (which is a ruby app ) in my centos 7 system. I worked fine. But when I clone the server that is installing my centos to another machine, redmine on the clone machine ...
user avatar
1 vote
2 answers
36 views

Switch off the status line at bottom of Centos 9 shell

I'm running a minimal install of CentOS 9 Stream and accessing it only via ssh. A problem that I haven't seen before with CentOS 6, 7 or 8 is that there is now a status line displayed at the bottom ...
user avatar
0 votes
0 answers
4 views

How do I stop nxagent from suspending when nxproxy disconnects?

I am trying to setup NX over X forwarding with nxagent on a CentOS 7.9 remote server and nxproxy on a local Windows client. The issue I'm having is that when nxproxy disconnects, nxagent suspends the ...
user avatar
  • 2,195
0 votes
1 answer
27 views

How to generate C.UTF-8 locale on CentOS6

Failing to generate C.UTF-8 locale on CentOS6 : # locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or ...
user avatar
  • 1,303
0 votes
0 answers
24 views

SSH no longer works after adding second NIC Card with different subnet

I have a CentOS 7 VM on ESXI. The IP is 192.168.22.31. I set up SSH keys and I can get to it just fine from my machine (192.168.21.9) with the private key as well as ssh to it using the password. ...
user avatar
0 votes
1 answer
20 views

Port forwarding 3389 into local network safety

I've installed xrdp on a system running centOS7 - this allows me to rdp from any pc on the network using the local ip/hostname. I'm looking to be able to rdp straight into the system from outside of ...
user avatar
0 votes
1 answer
21 views

Booting into Xen with grub2-mkconfig 2.03 on centos8 x86_64

Linux localhost.localdomain 4.18.0-394.el8.x86_64 #1 SMP Tue May 31 16:19:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux grub2-mkconfig (GRUB) 2.03 On my centos8, I have installed centos-release-...
user avatar
0 votes
1 answer
43 views

SFTP Only Users Unable to Delete/Edit Files They Create

I modified /etc/ssh/sshd_config with these lines to support an sftp user group that isn't able to SSH. Subsystem sftp internal-sftp -l VERBOSE Match Group sftpusers X11Forwarding no ...
user avatar
0 votes
0 answers
13 views

How to resolve "Unable to resolve host" in OpenStack Yoga?

I’m trying to install Openstack on CentOS Stream 9 by following the official openstack installation guide for Yoga available at: https://docs.openstack.org/install-guide/ When I try to bootstrap ...
user avatar
0 votes
1 answer
33 views

How to make libvirtd service to start at boot in Centos 9

I would like to start the service libvirtd.service is enabled but do not active at startup [root@GTS ~]# systemctl enable libvirtd.service [root@GTS ~]# systemctl status libvirtd.service ○ libvirtd....
user avatar
0 votes
0 answers
22 views

bash: pass output of multiple commands to script, but only execute them if condition met

In various scripts I frequently need to generate computationally complex file, BUT reuse the file if it already exists. How can I create a reusable function that does just that: checks for condition (...
user avatar
0 votes
0 answers
21 views

CentOS 7: how to debug/fix DNS nameservers timeout in /etc/resolv.conf?

I have to reconfigure the DNS nameservers used by a CentOS 7 server cat /etc/centos-release CentOS linux release 7.6.1810 (Core) with the new ones based on the CISCO Umbrella technology (I don't know ...
user avatar
  • 251
0 votes
0 answers
37 views

Permission denied while doing mandatory mount

I was trying to do mandatory lock on a file before that I was doing mandatory mount but I was getting error [root@magneto /]# sudo mount -t tmpfs -o mand,size=1m tmpfs ./hpdir mount: /hpdir: ...
user avatar
  • 101
0 votes
1 answer
21 views

Why does yum install stall when performing an RPM install from my spec file?

I normally start with a Minimal Centos 7 and run rpm -i postgres10-libs-10.15-1PGDG.rhel7.x86_64.rpm And this works perfectly. However, I am now writing an RPM spec file and trying to get it to do ...
user avatar
2 votes
1 answer
32 views

How do you modify the RPM spec file to require perl libraries on centos 7?

I normally start with a Minimal Centos 7 and run yum install perl-libs.x86_64 This works perfectly. I am now trying to create an RPM spec file that uses the "Requires" clause to package ...
user avatar
0 votes
2 answers
20 views

Controlling access to folders for a single user

I have many folders under the directory /home/storage I want a user guest to be able to access only /home/storage/guest and no other folders under /home/storage The rest of the users should be able to ...
user avatar
0 votes
1 answer
38 views

Remi php-pecl-zip yum update error

I have installed multiple PHP versions and now is problem to update zip module with dependency errors. Following files are waiting for update. libzip5 C library for reading, creating, and modifying ...
user avatar
  • 103
0 votes
2 answers
39 views

How do I modify the rpm spec file to require java-1.8.0-openjdk on centos 7?

I normally start with a Minimal Centos 7 and run yum install java-1.8.0-openjdk in order to install a Java Runtime Environment. This works perfectly as I am able to execute JAR files. I am now ...
user avatar
0 votes
2 answers
31 views

Linux kernel on my centos 8 server is filling up /boot partition

I am having this issue in my instance where /boot partition is getting full . I would like to remove the old kernels that are in my instance to clean up the /boot partition. However, when I run this ...
user avatar
0 votes
2 answers
29 views

Install avahi-tools on Centos 9

I want to use avahi-browse on Centos 9. I have installed the avahi package but i cannot find the avahi-tools package.
user avatar
  • 11
0 votes
0 answers
21 views

in.telnetd Disables encryption support negotiation

in.telnetd Disables encryption support negotiation i try to disable the encryption support negotiation in.telnetd this is options file of telnet-server lib on linux i have install telnet-server on my ...
user avatar
3 votes
1 answer
186 views

meld says it uses "monospace regular", but shows a variable-width font

I'm using meld 3.16.4 on a CentOS 7.x machine (yes, woe is me). Now, the font meld uses for the text of the files it compares is a variable-width font, but - the preferences dialog says the font is &...
user avatar
  • 7,601
0 votes
2 answers
174 views

“systemctl start dhcpd.service” command not working for PXE server setup virtual

I am trying to setup a PXE server on my laptop on CentOS 7 to connect to a physical test client, following the tutorial on: https://www.linuxtechi.com/configure-pxe-installation-server-centos-7/#...
user avatar
0 votes
0 answers
39 views

How to resolve baseurl issue with CentOS-Base.repo on Linux (Centos 6.7) to run "yum install ftp"

I am working in installing FTP and found this issue that I am unable to install yum. Referred many places and did yum clean all and configured CentOs-Base.repo to have vault.centos.org as baseurl for -...
user avatar
0 votes
0 answers
47 views

Blacklist /dev/sdo

I have a computer with an SD card slot without any card in it which by default linked to the /dev/sdo name. Since no SD card was inserted no block device is shown while viewing lsblk output, therefore ...
user avatar
0 votes
1 answer
26 views

Resize root partition on Linux CentOS 6.7

I have a 1.5TB SSD for CentOS 6.7 . But when I created a partition, I just created a small storage size for root, but the /home partition had lots of capacity. Could I move the available capacity from ...
user avatar
  • 1
0 votes
0 answers
13 views

How to add windows client machines IP’s and names in squid proxy so the logs output as clients name instead IP

I have configured squid proxy server on centos stream and its up and running perfectly I want access.log output as windows client usernames instead of machine IP . As example below . current output ...
user avatar
0 votes
0 answers
5 views

Centos-Http connection fails for GUI applications/browser over Xwindows

http proxy is defined inside profile and all cli applications like curl,wget,yum all work fine. When running any browser over Xwindows and setting the proxy through the browser menu or system wide ...
user avatar
  • 103

1
2 3 4 5
162