Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
1881 views
Downgrade Perl Version 5.16.3 on RedHat 7 to 5.10.1
I'm making a migration of my monitoring application from a redhat 6 server to a redhat 7 server. There are perl plugins I have on the redhat 6 server that work. But when migrated to redhat 7, they dont. The package in question here is **perl-DBD-Sybase.x86_64 1.10-1.el6.rf** Im able to install this...
I'm making a migration of my monitoring application from a redhat 6 server to a redhat 7 server. There are perl plugins I have on the redhat 6 server that work. But when migrated to redhat 7, they dont. The package in question here is **perl-DBD-Sybase.x86_64 1.10-1.el6.rf** Im able to install this package on redhat 7 (there doesnt appear to be a redhat 7 version of it - at least, i havent found one). And when I install the package and try to use the plugin that uses the package, I get the following error: [/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/DBD/Sybase/Sybase.so: undefined symbol: Perl_Istack_sp_ptr] Do i have any other alternative to dealing with this? how can i resolve this so it works on redhat 7?
swenson (11 rep)
Aug 21, 2017, 03:53 PM • Last activity: Aug 1, 2025, 10:08 PM
3 votes
1 answers
2223 views
How can I install the unity-desktop on Red Hat?
I am using a computer system with the gnome desktop system, with which I am not able to work properly (resizing of windows does not work etc). Therefore I would like to install the unity-desktop. Is that possible on Redhat (Red Hat Enterprise Linux Workstation release 6.8 (Santiago))? And if so, how...
I am using a computer system with the gnome desktop system, with which I am not able to work properly (resizing of windows does not work etc). Therefore I would like to install the unity-desktop. Is that possible on Redhat (Red Hat Enterprise Linux Workstation release 6.8 (Santiago))? And if so, how? A simple yum install unity did not find anything....
Alex (5848 rep)
Jan 18, 2017, 11:43 AM • Last activity: Aug 1, 2025, 08:08 PM
5 votes
2 answers
2096 views
Kernel parameters are not changed permanently for RHEL7
Trying to permanently change some vm kernel parameters, I created `/etc/sysctl.d/01-custom.conf` config file as it described in Red Hat knowledgebase article. Here is its content: # cat /etc/sysctl.d/01-custom.conf vm.swappiness=10 vm.dirty_ratio=20 vm.vfs_cache_pressure=200 But after reboot only `v...
Trying to permanently change some vm kernel parameters, I created /etc/sysctl.d/01-custom.conf config file as it described in Red Hat knowledgebase article. Here is its content: # cat /etc/sysctl.d/01-custom.conf vm.swappiness=10 vm.dirty_ratio=20 vm.vfs_cache_pressure=200 But after reboot only vm.vfs_cache_pressure is changed and swappines and dirty_ratio have previous values. # sysctl vm.swappiness vm.swappiness = 30 # sysctl vm.dirty_ratio vm.dirty_ratio = 30 In /etc/sysctl.conf file there is no changes for vm.dirty_ratio parameter and vm.swappines is set to 10 as well. Does it mean that the system takes these values from somewhere else? There are no any config files under /etc/sysctl.d besides mine and link to /etc/sysctl.conf: # ll /etc/sysctl.d/ total 4 -rw-r--r-- 1 root root 147 May 30 04:40 01-custom.conf lrwxrwxrwx. 1 root root 14 Apr 3 15:00 99-sysctl.conf -> ../sysctl.conf **Update:** sysctl --system shows that values from my config were taken. Nothing for vm.swappines and vm.dirty_ratio are set to 30.
sys463 (355 rep)
May 30, 2018, 09:13 AM • Last activity: Aug 1, 2025, 03:01 AM
1 votes
1 answers
858 views
Error when installing openssl-devel [sss_cache] DB version too old
I am building a RHEL8 instance and when installing openssl-devel and python36-devel I get the error > [sss_cache] [sysdb_domain_cache_connect] (0x0010): DB version too old > [0.23], expected [0.24] for domain implicit_files! > > Higher version of database is expected! In order to upgrade the > datab...
I am building a RHEL8 instance and when installing openssl-devel and python36-devel I get the error > [sss_cache] [sysdb_domain_cache_connect] (0x0010): DB version too old > [0.23], expected [0.24] for domain implicit_files! > > Higher version of database is expected! In order to upgrade the > database, you must run SSSD. > > Removing cache files in /var/lib/sss/db should fix the issue, but note > that removing cache files will also remove all of your cached > credentials. I added *sss_cache -E* before the openssl-devel install step but that didn't help.. I also tried restarting the sssd service and the error still appears every time
Regulator (11 rep)
Oct 3, 2024, 12:32 AM • Last activity: Jul 31, 2025, 05:52 PM
5 votes
1 answers
2612 views
Limit Openldap Transaction Log Disk Usage
Openldap (specifically version 2.4) stores transaction history in log files by default in the ldap data directory (so `/var/lib/ldap/log.###########`). Currently these log files take up a lot of space, are never removed automatically, and grow infinitely. Manual removal for old logs works fine, but...
Openldap (specifically version 2.4) stores transaction history in log files by default in the ldap data directory (so /var/lib/ldap/log.###########). Currently these log files take up a lot of space, are never removed automatically, and grow infinitely. Manual removal for old logs works fine, but I'd like to limit the amount of logs slapd keeps automatically. # MY SCENARIO # I know that these transaction logs are used to recover ldap in case of a catastrophic failure. In my scenario ldap is regularly wiped and populated via a script (this isn't used for system login accounts). Because of this I don't need to concern myself with recovery, in case of a failure it's acceptable to run the script again. On the other hand, the regular wipe/population of ldap includes a lot of transactions, so these transaction logs build up pretty quickly. # LOGROTATE # logrotate has potential here, but if the most recent transaction log is ever removed then slapd will fail to start (it will complain about needing to perform recovery). Because I can't rely on the log names (because slapd keeps many small logs, incrementing the log file number as it goes) I'd like to use the Berkeley DB settings which creates these logs. I can count on the access/creation dates (most recent modify date is the most recent transaction log), but I'd still prefer to use Berkeley if possible. # DB_CONFIG # The settings for the transactions logs are said to be controlled by the Berkeley DB settings in /var/lib/ldap/DB_CONFIG. The example DB_CONFIG that comes with openldap specifies some transaction log settings: set_lg_regionmax 262144 set_lg_bsize 2097152 According to the Oracle documentation on Berkeley: set_lg_regionmax: Set the size of the underlying logging area of the Berkeley DB environment, in bytes. The log region is used to store filenames, and so may need to be increased in size if a large number of files will be opened and registered with the specified Berkeley DB environment's log manager. So this seems to just set the size of the file that tracks the transaction log files. set_lg_bsize: Set the size of the in-memory log buffer, in bytes. This seems to control how much RAM is allotted to the transaction buffer. The log.########### files in the ldap data directory are all 10485760 bytes which seems to correspond closely to set_lg_bsize (10485760 / 5 = 2097152 = set_lg_bsize) though I'm not sure if this is a coincidence. My interpretation of this is that $lg_bsize amount of transaction history is stored in memory at a time. When this limit is exceeded it pushes some of the transaction history to the most recent log file, and creates a new log if the current log reaches a certain size. # DB_LOG_AUTOREMOVE # According to the Berkeley documentation transaction logs can be removed by setting the flag DB_LOG_AUTOREMOVE in the DB_CONFIG. DB_LOG_AUTOREMOVE: If set, Berkeley DB will automatically remove log files that are no longer needed. However when I added this to the DB_CONFIG: set_flags DB_LOG_AUTOREMOVE and restarted slapd I didn't notice a difference. I removed the old transaction logs and ran the ldap population script that I have, and was able to rack up 290MB in transaction logs. It still doesn't seem to be limiting the logs at all. The reason for this may be related to the phrase: that are no longer needed # Actual Question # How does one configure the automatic removal of slapd's transaction logs using the Berkeley DB DB_CONFIG file?
Centimane (4520 rep)
Oct 5, 2016, 05:14 PM • Last activity: Jul 30, 2025, 11:08 AM
3 votes
2 answers
8271 views
How to export proxy in Redhat Linux 7 using the current login credentials?
I need to export proxy on RHEL 7 with the current logged user credentials. I am able to achieve this by adding manually in **.bashrc or .bash_profile.**: export http_proxy=http://username:password@proxy.example.com:6080 export https_proxy=http://username:password@proxy.example.com:6080 The above met...
I need to export proxy on RHEL 7 with the current logged user credentials. I am able to achieve this by adding manually in **.bashrc or .bash_profile.**: export http_proxy=http://username:password@proxy.example.com:6080 export https_proxy=http://username:password@proxy.example.com:6080 The above method works fine. But I don't want this method, since we are hard-coding the username and password and also it's not secure. Is it possible to use the existing **/etc/shadow** file as password for exporting the proxy?
M S (291 rep)
Apr 22, 2018, 10:23 AM • Last activity: Jul 30, 2025, 09:07 AM
2 votes
2 answers
389 views
How to test whether a secondary inet address exists on an eth interface?
RHEL9 Sometimes server 1 has the secondary address 10.143.170.80/24, and sometimes server 2 has that secondary address. My script needs to test which server has that secondary address. However, `ip address show dev ${VirtDev} secondary` always returns 0, whether or not the secondary address exists o...
RHEL9 Sometimes server 1 has the secondary address 10.143.170.80/24, and sometimes server 2 has that secondary address. My script needs to test which server has that secondary address. However, ip address show dev ${VirtDev} secondary always returns 0, whether or not the secondary address exists or not. Server 1: ip address show dev $VirtDev secondary echo $? 0 Server 2: ip address show dev $VirtDev secondary 2: ens33: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:50:56:8e:73:35 brd ff:ff:ff:ff:ff:ff altname enp2s1 inet 10.143.170.80/24 scope global secondary ens33:0 valid_lft forever preferred_lft forever echo $? 0 This works, but seems janky: Exists=$(ip address show dev $VirtDev secondary) [ -n "$Exists" ] && echo exists || echo not exists Is there a better way? EDIT: when parsing json... ip -j -4 a ls to 10.143.170.80 | jq -e .[].addr_info [ {}, { "family": "inet", "local": "10.143.170.80", "prefixlen": 24, "scope": "global", "secondary": true, "label": "ens33:0", "valid_life_time": 4294967295, "preferred_life_time": 4294967295 } ] ip -j -4 a ls to 10.143.170.80 | jq -e .[].addr_info.local jq: error (at :1): Cannot index array with string "local"
RonJohn (1421 rep)
Jul 29, 2025, 03:50 PM • Last activity: Jul 30, 2025, 06:35 AM
0 votes
1 answers
45 views
Grub cannot find any of my rhel 9 kernel
I'm using a red hat developer subscription, so no official support from red hat. I have a rhel 9.6 installed to a 2TB nvme SSD, whose partitions are as follows: - 1 : 600MB (EFI) - 2 : 1GB (forget what it is, seemed to be a rhel boot-related partition) - 3 : 904.01GB (rhel main partition) - 4 : 200G...
I'm using a red hat developer subscription, so no official support from red hat. I have a rhel 9.6 installed to a 2TB nvme SSD, whose partitions are as follows: - 1 : 600MB (EFI) - 2 : 1GB (forget what it is, seemed to be a rhel boot-related partition) - 3 : 904.01GB (rhel main partition) - 4 : 200GB (a Windows 11 system partition) - 5 : 200GB - 6 : 557.41GB After I executed `dnf update and reboot` as normal, grub cannot find any of my rhel kernel(including rescue mode). The only thing grub found was Windows boot manager. Then I boot into Windows to check my partitions, finding that all my partitions were fine. So how to find my rhel back? Please help. enter image description here
tofucurd (1 rep)
Jun 20, 2025, 07:53 AM • Last activity: Jul 29, 2025, 11:30 PM
-2 votes
2 answers
50 views
HISTTIMEFORMAT not working as desired in RHEL 8 bash 4.4.20
so trying to capture history with date and readable timestamps AND the command should appear on same line. following is failing: Bash ver is: GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu) OS: RHEL 8.x in .bashrc.... setopt EXTENDED_HISTORY export HISTTIMEFORMAT='%F %I:%M:%S %T' #expo...
so trying to capture history with date and readable timestamps AND the command should appear on same line. following is failing: Bash ver is: GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu) OS: RHEL 8.x in .bashrc.... setopt EXTENDED_HISTORY export HISTTIMEFORMAT='%F %I:%M:%S %T' #export HISTTIMEFORMAT="%F %T " export HISTSIZE=1000 export HISTFILE=$HOME/.bash_history-$USER export HISTFILESIZE=1000 export PROMPT_COMMAND='history -a' env variables: $ env|grep HIST HISTCONTROL=ignoredups HISTTIMEFORMAT=%F %I:%M:%S %T HISTFILE=/home/user1/.bash_history-user1 HISTSIZE=1000 HISTFILESIZE=1000 the records appear as: #1753745611 cd #1753745616 ls -ltra|tail #1753745626 cat .profile #1753745633 cat .kshrc **expected:** Mon Jul 28 23:33:31 GMT 2025 cd Mon Jul 28 23:33:36 GMT 2025 ls -ltra|tail Mon Jul 28 23:33:46 GMT 2025 cat .profile Mon Jul 28 23:33:53 GMT 2025 cat .kshrc two problems with this. 1. Timestamp appears in UNIX EPOCH format. 2. Timestamp and command appears on separate lines. They should be together. Also behaves the same way when using KSH. How can this be fixed? preferably using HISTTIMEFORMAT Thank you.
Rajeev (256 rep)
Jul 29, 2025, 03:33 PM • Last activity: Jul 29, 2025, 10:01 PM
2 votes
2 answers
3611 views
Cannot change UDP fragmentation offload
I have a Dell PowerEdge R740 server with an Intel Corporation Ethernet Controller x710 for 10GbE SFP+ network interface. I have installed RHEL 8 on it. I am trying to enable UDP Fragmentation Offload (UFO): $ sudo ethtool --offload eno1 ufo on I get this message: ``` Cannot change UDP fragmentation...
I have a Dell PowerEdge R740 server with an Intel Corporation Ethernet Controller x710 for 10GbE SFP+ network interface. I have installed RHEL 8 on it. I am trying to enable UDP Fragmentation Offload (UFO): $ sudo ethtool --offload eno1 ufo on I get this message:
Cannot change UDP fragmentation offload  
Cannot change any device features.
eno1 has SFP+ DAC cable. Is the issue because of SFP+ cable? or any driver that I might be missing?
Ramzah Rehman (21 rep)
Nov 13, 2019, 11:16 AM • Last activity: Jul 28, 2025, 12:01 PM
51 votes
6 answers
55436 views
/dev/tcp listen instead of nc listen
With a netcat listener like: nc -l / > ~/.bashrc My question is: Is there a way to mimic the capabilities of `nc -l ` in my first line with /dev/tcp instead of `nc`? The machines I'm working on are extremely hardened lab/sandbox environment RHEL (no ssh, no nc, no LDAP, no yum, I can't install new s...
With a netcat listener like: nc -l / > ~/.bashrc My question is: Is there a way to mimic the capabilities of nc -l in my first line with /dev/tcp instead of nc? The machines I'm working on are extremely hardened lab/sandbox environment RHEL (no ssh, no nc, no LDAP, no yum, I can't install new software, and they are not connected to the internet)
h3rrmiller (13506 rep)
Oct 4, 2012, 06:26 PM • Last activity: Jul 27, 2025, 06:42 PM
1 votes
1 answers
2626 views
Make Python3 default without breaking yum in RHEL7
> **What specific syntax needs to be changed or added to the below in order for commands calling `python` in a RHEL7 VM to be interpreted using Python3 WITHOUT breaking programs like `yum` that require Python2?** **FIRST ATTEMPT:** Our first attempt was to add the following 2 lines to the very end o...
> **What specific syntax needs to be changed or added to the below in order for commands calling python in a RHEL7 VM to be interpreted using Python3 WITHOUT breaking programs like yum that require Python2?** **FIRST ATTEMPT:** Our first attempt was to add the following 2 lines to the very end of the cloud-init startup script which instantiates the VM: rm /usr/bin/python ln -s /usr/bin/python3 /usr/bin/python **ERROR THAT RESULTED:** The problem is that adding the above two lines to the end of the cloud-init startup script causes yum commands to break when yum is called afterwards as follows: $ sudo yum update -y File "/bin/yum", line 30 except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax $ **TOGGLING THE ERROR:** We can turn off the error by removing the above 2 lines from the cloud-init startup script and re-instantiating a new replacement VM. This isolates the source of the problem, but still we have the problem of how to default python to Python3 without breaking apps like yum.
CodeMed (5357 rep)
Jul 7, 2020, 05:24 PM • Last activity: Jul 27, 2025, 02:04 AM
3 votes
1 answers
3873 views
How to remove protected package using microdnf
How a protected package can be removed using microdnf package manager? When running docker container `almalinux/9-minimal` (or `redhat/ubi9-minimal`) like ``` podman run -it --rm almalinux/9-minimal ``` and inside the container ``` microdnf install -y dnf && microdnf remove -y dnf ``` the latter com...
How a protected package can be removed using microdnf package manager? When running docker container almalinux/9-minimal (or redhat/ubi9-minimal) like
podman run -it --rm almalinux/9-minimal
and inside the container
microdnf install -y dnf && microdnf remove -y dnf
the latter command fails with
error: Could not depsolve transaction; 1 problem detected:
 Problem: The operation would result in removing the following protected packages: dnf
czerny (1757 rep)
Oct 14, 2022, 01:36 PM • Last activity: Jul 25, 2025, 10:22 PM
3 votes
2 answers
6094 views
How do I install some required libraries for a program without sudo?
I am trying to run a program on a computer running Red Hat 6.5. This results in the three following errors: "/lib64/libc.so.6: version `GLIBC_2.14' not found" "/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found" "/lib64/libm.so.6: version `GLIBC_2.15' not found" Clearly I have to install...
I am trying to run a program on a computer running Red Hat 6.5. This results in the three following errors: "/lib64/libc.so.6: version `GLIBC_2.14' not found" "/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found" "/lib64/libm.so.6: version `GLIBC_2.15' not found" Clearly I have to install those libraries, but when searching I only found solutions that suggest running "sudo apt-get", which I sadly can't (no sudo access). Thus I need a solution to install them without sudo. (EDIT: This system does not have apt-get, but I am under the impression that yum, which it does have, is not far from the same thing. Still requires root though). Additionally, I would prefer if the solution only affected my account, or even were limited to the program I am trying to run, so I don't affect other users on this system. I would appreciate if I could receive some help on how to achieve something like this, or if it is impossible, I would like to know that (and out of curiosity, maybe also why).
felix (31 rep)
Feb 19, 2015, 12:39 PM • Last activity: Jul 23, 2025, 10:58 PM
12 votes
1 answers
17861 views
What are the groups 'users' and 'other' for?
There is a proprietary document about system hardening/security standard stating that group `users`, `nogroup`, `other`, and some other groups should not contain any user except system administrators. I've found an explanation about `nogroup` group [here](https://unix.stackexchange.com/questions/225...
There is a proprietary document about system hardening/security standard stating that group users, nogroup, other, and some other groups should not contain any user except system administrators. I've found an explanation about nogroup group [here](https://unix.stackexchange.com/questions/22520/what-is-nogroup-groups-purpose) . What about the users and other groups and what are they for? Why regular (non-administrator) users should not be member of these groups? Distro is, RHEL (Red Hat Enterprise Linux)
fikr4n (1001 rep)
Nov 29, 2016, 07:21 AM • Last activity: Jul 22, 2025, 03:01 PM
1 votes
1 answers
1906 views
Linux Traffic Control (tc) not working without reboot
When trying to run ``` tc qdisc add dev $INTERFACE root handle 1: prio priomap 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 tc qdisc add dev $INTERFACE parent 1:1 handle 10: netem loss "${LOSS}"% ``` I get the error of `Specified qdisc not found` `yum -y install kernel-modules-extra` works as a fix, but requires...
When trying to run
tc qdisc add dev $INTERFACE root handle 1: prio priomap 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
   tc qdisc add dev $INTERFACE parent 1:1 handle 10: netem loss "${LOSS}"%
I get the error of Specified qdisc not found yum -y install kernel-modules-extra works as a fix, but requires a reboot. In my case, a reboot is not an option Is there a way around a reboot to get qdisk working? RHEL 8.6
dsuma (111 rep)
Mar 16, 2023, 11:09 PM • Last activity: Jul 22, 2025, 04:02 AM
13 votes
3 answers
35910 views
How to see the total progress while copying the files
We know that if we give `--progress` parameter to `rsync` it will show the progress of files copied. But issue is that is shows the progress for each single file not total or overall progress. So how to see the Total progress of files copied.
We know that if we give --progress parameter to rsync it will show the progress of files copied. But issue is that is shows the progress for each single file not total or overall progress. So how to see the Total progress of files copied.
OmiPenguin (4398 rep)
Mar 20, 2013, 05:21 PM • Last activity: Jul 21, 2025, 03:34 AM
0 votes
2 answers
4264 views
How can I increase the size of /tmp directory without affecting RAM or anything else? (Redhat 8.2)
I'm new at Linux and I will get use of your help guys on this.. I want to increase the size of /tmp directory without affecting RAM or anything else on Red Hat 8.2 .. any suggestions to do that? Thanks!
I'm new at Linux and I will get use of your help guys on this.. I want to increase the size of /tmp directory without affecting RAM or anything else on Red Hat 8.2 .. any suggestions to do that? Thanks!
Kai Mo (1 rep)
Sep 7, 2021, 06:42 PM • Last activity: Jul 20, 2025, 07:08 AM
23 votes
5 answers
141925 views
Invalid cross-device link while Hardlinking in the same file system
I have **/home/myuser/Desktop/rc/.netrc** file that i want hardlink to **/root**, ie home directory of **root** user. When i do: `ln /home/user/Destkop/rc/.netrc /root` it gives the following error: > ln: creating hard link `/root/.netrc' => `.netrc': Invalid > cross-device link but it works when i...
I have **/home/myuser/Desktop/rc/.netrc** file that i want hardlink to **/root**, ie home directory of **root** user. When i do: ln /home/user/Destkop/rc/.netrc /root it gives the following error: > ln: creating hard link /root/.netrc' => .netrc': Invalid > cross-device link but it works when i hardlink the file to **myuser**'s home, ie to **/home/myuser**. So, what's the problem, why it says invalid cross-devices when there is only one file system here? **PS.** I am using **RHEL6**
Elvin Aslanov (387 rep)
Jun 12, 2013, 09:48 AM • Last activity: Jul 19, 2025, 11:33 AM
0 votes
1 answers
2285 views
RHEL 8 authentication required window is not taking correct password
I'm running RHEL 8, and occasionally, I get an issue where the authentication window won't accept my password. I know I am entering it correctly because it is the same password I use to log in to the system. Checked `/var/log/secure` but didn't see anything useful. Could it be related to `pam.d`?
I'm running RHEL 8, and occasionally, I get an issue where the authentication window won't accept my password. I know I am entering it correctly because it is the same password I use to log in to the system. Checked /var/log/secure but didn't see anything useful. Could it be related to pam.d?
Kingio (1 rep)
Nov 26, 2022, 10:42 PM • Last activity: Jul 18, 2025, 09:04 PM
Showing page 1 of 20 total questions