Tag Info

Hot answers tagged

32

And now, the systemd answer. You're using, per the tag on your question, Red Hat Enterprise Linux. Since version 7, that has used systemd. None of the other answers are correct for the world of systemd; nor even are some of the assumptions in your question. Forget about runlevels; they exist, but only as compatibility shims. The systemd documentation ...


17

halt instructs the hardware to stop all CPU functions, but leaves it in a powered-on state. This usually means someone has to reboot or shut the machine down manually by pressing the power button afterwards. The specific way to achieve this is architecture specific, but for instance the x86 instruction set provides the HLT instructions which halts the ...


3

Try this with GNU find: echo "File Name,Modified Date"; find . -name '*.csv' -printf "%f,%TY-%Tm-%Td %TI:%TM\n"


3

It sounds like you created a key but you didn't configure the account on the server to authorize that key. Copy the contents of id_rsa.pub to the server and add it to ~/.ssh/authorized_keys. Do not copy id_rsa to the server, and keep it protected. This file contains the private key and the server doesn't need to see that. Note that if the key is stored in ...


3

readiness protocol mismatch As Wieland implied, the Type of the service is important. That setting denotes what readiness protocol systemd expects the service to speak. A simple service is assumed to be immediately ready. A forking service is taken to be ready after its initial process forks a child and then exits. A dbus service is taken to be ready ...


3

halt, poweroff and shutdown -h are completely equivalent. In fact, halt and poweroff do nothing but call shutdown -h. From the halt/poweroff manpage: If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the shutdown(8) ...


2

It's not a great solution, but: make the directory writable only by you, or some designated user or pseudo-user, or, perhaps better yet, a group (that your users are not members of), carefully write a wrapper for mkdir, and install it setuid or setgid. If you choose the group / setgid option, it could be as simple as mkdir("root_scripts/<user's ...


2

The file logstash-forwarder_linux_386 is an executable. It's ready to run, there's no unzipping to be done. You can see that with the file command: $ file logstash-forwarder_linux_386 logstash-forwarder_linux_386: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped You need to make this file executable and place it in ...


1

Letting adduser choose a user ID is the right way to do it. This won't conflict with official packages because automatically-assigned UIDs and statically-assigned UIDs are in different ranges. Yes, this does lead to different user IDs across systems; there's no easy way to do that because you'd have to tell the whole world (every system administrator and ...


1

The RHEL6 migration guide documents that there's a list for statically-assigned UIDs in /usr/share/doc/setup-*/uidgid, which currently goes up to roughly 200, and dynamic system users count downwards from 499. I read that as "use adduser -r in this case and certainly don't worry if you stay above 300; you won't collide unless you have hundreds of system ...


1

In fact mkisofs 2.01 points to genisoimage: $ mkisofs --version mkisofs 2.01 is not what you see here. This line is only a fake for too clever GUIs and other frontend applications. In fact, this program is: genisoimage 1.1.11 (Linux) From man genisoimage you can try the -m option: -m glob Exclude files matching glob, a shell wildcard pattern, ...


1

Wyse60 is a completely different command set from the basic VT100-compatible ANSI command set that' used e.g. on the linux console or by xterm etc. so you probably have the correct terminfo files installed and have set the TERM environment variable to the correct value (probably wy60 I guess) when using TinyTerm (which I'm unfamiliar with). When using the ...


1

find does not sort the files, it lists them out in the order it finds them. It also traverses directories in the order it finds them. You cannot make any assumptions about the order but I believe it will be repeatable in the sense that if you run find again, you'll get the same order. On Linux, files are not stored in alphabetical order. Maybe they are on ...


1

As I am not sure it is possible in the 'Requires' part of the script to specify a repo as a dependency, it may be better to include the repo file in the package you are building, or add as a dependency a RPM that provides it. A existing solution for including the repo file is the one used in the Google Chrome package, which is to add the repo file and GPG ...


1

In RHEL 7, you'll have to use nmcli command for permanent change. nmcli command uses /etc/sysconfig/network-scripts/ifcfg-con_name file first, also when you modify connection properties with nmcli it will write to ifcfg-con_name file. So, to automatically start connection, you need to use following: nmcli con mod enp0s3 connection.autoconnect yes It will ...


1

ifup enp0s3 should bring up the interface and configure it. You might want to review the Network Interfaces chapter of the RHEL manual. §10.3. “Interface Control Scripts” mentions using ifup. ifconfig enp0s3 up should not load any configuration from ifcfg-enp0s3, by the way. See e.g., What is the difference between 'ifconfig up eth0' and 'ifup eth0'? on ...


1

On Gentoo I use PulseAudio's built-in equalizer. Any further info can be found here: https://wiki.gentoo.org/wiki/PulseAudio#Equalizer


1

One thing to be aware, is that STIG locks down /tmp with noexec. If you already spent some time on the box, it's possible that you won't be able to execute the files out of that folder. Try another location for download/install. Also, run your installer as SUDO


1

The equivalent command is yum groupinstall 'Development Tools'



Only top voted, non community-wiki answers of a minimum length are eligible