New answers tagged

0 votes

Redirect unhandled routes to / in apache 2.4 and CentOS 7

The simplest, cleanest and — imo — most correct way of achieving this result is: <VirtualHost www.example.com:80> #... DirectoryIndex index.html # This is likely already set globally ...
mesr's user avatar
  • 389
0 votes

CentOS 7 - Rename network interface without rebooting

You can do it via ssh: ip link set eth0 down ip link set eth0 name nic0 ip link set nic0 up mv /etc/sysconfig/network-scripts/ifcfg-{eth0,nic0} sed -ire "s/NAME="eth0"/NAME="nic0&...
Patricio Lopez Seco's user avatar
0 votes

rsync error: some files/attrs were not transferred

You could try passing one or a combination of --perms --no-owner --no-group. This allows you to copy / override source permissions on the destination, while --no-owner and --no-group ignore owner and ...
Lukas Willin's user avatar
0 votes

MDADM - Adding a new hard disk to an existing RAID1

Was only going to comment, but I have to post as an answer because I lack the reputation to comment. Adding another disk to raid1 will add another mirror with no more space. Raid5/6 are falling out of ...
Briandotcom0's user avatar
0 votes

ldd tells me my app is "not a dynamic executable"

I ran into the error while trying to run ldd on a x86_64 system on a .so file supposedly built for ARM: $ docker run --rm python:3.8-slim sh -euxc ' apt-get update; apt-get install -y curl unzip; ...
x-yuri's user avatar
  • 3,333
0 votes
Accepted

SSHing to a CentOS server switches to a different user

This is being caused by several users including these having the same UID defined in /etc/passwd. (These are all members of the same group.) When logging in as workspaceuser the UID is set to 10000 ...
Sherri's user avatar
  • 101
1 vote

Centos7 not able to download yum-downloadonly

The yum syntax for it is yum install --downloadonly package_name which will download the rpm's into /var/cache/yum/$arch/$repo/packages (except if you use also the option --downloaddir=/tmp) and if ...
admstg's user avatar
  • 657
0 votes

What variables are valid within /etc/default/useradd file?

Short answer: run useradd -D This works with useradd from shadow.
Cyber Tailor's user avatar
0 votes

ldd tells me my app is "not a dynamic executable"

When this happened to me, it turned out that the file was located in a filesystem that was mounted with the noexec option. So the file was executable: $ ll brio.so -rwxrwxr-x. 1 xxx xxx 16K Feb 7 11:...
Andrew Schulman's user avatar
0 votes

Leasequery response in dnsmasq

Try commenting out: bind-interfaces in the configuration file. From https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html -z, --bind-interfaces On systems which support it, dnsmasq binds the ...
gerardw's user avatar
  • 163
0 votes

sed? - Insert line after a string with special characters to Neutron service

To keep things tidy put your match string in variabl A and you insertion string in variable B: $ A="--config-file /etc/neutron/plugin.ini" $ B="--config-file /etc/neutron/plugins/ml2/...
user9101329's user avatar
1 vote
Accepted

What file is /dev/btrfs-control?

It's defined in fs/btrfs/super.c in kernel source code, and used for various BtrFS-specific ioctl() system calls. Generally, unless you are developing the libbtrfs library of the btrfs-progs package, ...
telcoM's user avatar
  • 94.9k
1 vote
Accepted

What file is /dev/autofs?

/dev/autofs provides access to the autofs mount control interface; this is a set of ioctls which can be used to retrieve information about autofs mounts and to configure them. See Miscellaneous Device ...
Stephen Kitt's user avatar

Top 50 recent answers are included