Tag Info

New answers tagged

0

The problem was that I encrypted the volumes before enabling FIPS. As garethTheRed alluded to in a comment, LUKS used a non FIPS approved algorithm, so when FIPS was enabled things went bonkers. The solution is to Enable FIPS Encrypt volumes This guide was also useful in solving the problem. It is lengthy with extra explanation so I won't copy ...


1

Usually, only source rpms have a spec file. You can extract it with rpm2cpio myrpm.src.rpm | cpio -civ '*.spec' or you can install the src rpm, as a user, with rpm -i myrpm.src.rpm, when the directory rpmbuild/SPECS/ will get the spec file.


-1

tail -f /var/log/audit/audit.log | ausearch -i


1

If you plan on editing text file you want to create, you can also start with text editor. Let's take an Emacs for example: Go to directory where you want to create file and name the file C-x C-f /path/to/file.txt Press enter. If directory did not exist, you have to create it: M-x make-directory Press enter twice. Voila, you're in newly created file, ...


1

I believe it only gives you the option to create a file if there is a template in your Templates directory - ~/Templates/. If it's empty, create an empty text file in there called (for example) Text Document. Also, confirm that XDG_USER_DIRS environment variable points to the above directory. If not, change it in ~/.config/user-dirs.dirs. The (not-a-)bug ...


0

I did some more digging around and while I cannot extract the SPEC file into another file such as text, I can use rpmrebuild to view the SPEC file and edit it. So, with that being said, here is the command I used: rpmrebuild -e -p sampleBuild.rpm


2

you have created VM one by manually and second one by vagrant . so , both using different default network generally for manual it create 192.168.122.0/24 ( in libvirt) and vagrant default network 192.168.121.0/24 (in general case may be different ). so , you will be able to connect from host to both guest machine (even they are different network) because ...


0

It appears that yum no longer can find octave. I'm fairly sure that I was able to find it via yum search octave last week. Where can I find old yum repositories? The octave package is available through the EPEL repository for CentOS. The easiest way to set this up is: # yum install epel-release But you can also follow the instructions on the linked ...


1

File management is handled at kernel level, not user space. This means that the kernel will ensure that there is no file corruption when 2 programs try to read or write the same file at the same time, including daemon or any other application. So I would say that it depends on the filesystem that you are using, but not on the number of daemons accessing the ...


1

ssh-agent -k then the passphrase was entered again and solved problem


-1

You can try to disable SELinux: set SELINUX=disable setenforce 0


1

Many devices at once is at least supposed to work, according to his LJ article about making a serial console remote-access server. Limits of up to 127 USB devices (including hubs) per controller are mentioned (i.e. per pair of ports). Maybe Linux has problems reaching that USB-imposed limit. Probably the kernel log has something interesting to say, so ...


1

You might want to use rvim or vim -Z to avoid the trivial root shell escape. Personally I'd write a short script that allowed the user to edit just the necessary files. Then, if any changes were detected it could offer to restart the Apache server, too. The script could even make automatic backups.


4

Means folk can leverage this to get a root shell, thereby bypassing your security, eg :!/bin/sh from within vim. Or :r /etc/shadow and :w /etc/shadow. And so on...


0

Not sure about the easter egg, but Why does oot say “hey” in usleep -o? simple, because it's in the source: struct poptOption options[] = { { "version", 'v', POPT_ARG_NONE, &showVersion, 0, "Display the version of this program, and exit" }, { "oot", 'o', POPT_ARG_NONE, &showOot, 0, "oot says hey!" }, ...


0

so, you basically are trying to have four addresses of the same ip-net on the same vlan route traffic over interfaces with similar ip-adresses on the remote net to the remote interfaces with just these similar addresses? I've never heard of a solution like yours, but i'm out of the network business for a long time now. So just to give you an idea: Why ...


0

It looks like you might have two epel-release packages installed - one for EPEL 6, one for EPEL 7. Your first yum command shows epel-release-7-5 is installed, your second yum command is pulling in fail2ban-0.9.2-1.el6 which is from EPEL 6 (not 7). If this is the case, you should see two results from rpm -q epel-release. If you then yum remove the EPEL 6 ...


1

Maybe better than earlier answer; firewall-cmd --permanent --zone=trusted --change-interface=docker0 firewall-cmd --permanent --zone=trusted --add-port=4243/tcp firewall-cmd --reload


1

As you mentioned that it should be an automated shell script, at least for the two yum commands you would need to add -y so yum will assume an answer of "yes" for all questions it will ask. See the yum man page, relevant excerpt: -y, --assumeyes Assume yes; assume that the answer to any question which would be asked is yes. ...


0

Why not use yum to install claws-email? It downloads the dependencies that go with this software: sudo yum install claws-email Just note that if that is not the correct program name, try: sudo yum install claw*


0

Apache 2.4 doesn't use the init scripts. As Saul Ortega said the apachectl script can be used to start the server. It can also be used as a standard SysV init script. Further informations can be found in the apache doc http://httpd.apache.org/docs/2.4/en/invoking.html


0

CentOS 7 switched to systemd - use systemctl restart network.service to restart your network. For static network settings like yours you may want to install NetworkManager-config-server RPM package using yum


1

Where should I store the user's cell phone number? And how should it be retrieved by the PAM module? This is entirely your design decision. Some PAM modules store information in local files in /etc, like pam_access or the google authenticator module. Other modules may contact a remote server, like the radius authentication module. A scalable solution ...


-1

Usually when I install apache on centOS, it gets installed in /etc/httpd/conf/ check there, otherwise do a find / -name httpd or find / -name apache. Also, if I want to start it now you start/stop it with sudo systemctl httpd start/stop or httpd -k start or apachectl start


0

I had the same issue on my CentOS 7 VPS, and I solved it now. I had install tmux before by: yum install tmux Then I remove it and install it by source code. So I have the same issue problem as you. I realized that I just installed many libraries, so maybe I should reboot the server. So I restart the server, the issue just gone away!!!


2

You need to add a DNS A record for sub.mydomain.com to point to server IP like you did for mydomain.com Getting Started guide step 1 at http://centminmod.com/getstarted.html lists how to setup main hostname's DNS which is basically a subdomain as well so same thing add a DNS A record


0

AIUI the latest versions of abrt don't actually install anything, they just use yum to download the packages and it unpacks the data itself. Update: https://wiki.centos.org/TipsAndTricks/ABRT#head-6ec8c2ca60fa7a4f2e8167a19299ea6d61217df2 suggests that abrt-action-analyze-ccpp-local unpacks them to /var/cache/abrt-di/. Unless you have the very latest yum ...


1

First you need to define what "upgrade" means. Eg. upgrade with only a newer kernel will be an install (and likely an erase of an older one). If someone does "upgrade foo" does that count? What about "distro-sync" that ends up just doing upgrades (or if it doesn't)? Does it count if the transaction failed? Then stop greping output, it will only lead to pain ...


0

I've got vsftpd running and it works fine for FTP, and when I log on as the user via SSH it defaults to their home directory but they can then just "cd /" and go where they want. Yes. SSH is shortcut of Secure Shell. After authentication you have the same access as if you were sitting next to the computer and were typing into the terminal. I realize ...


1

I have solved the issue. I have been meaning to do this move for a few months. in that time I have been rsyncing all users folders to the new server. I forgot to add the --delete command to the rsync command thus old email messages were accumulating on the destination (new) server even after the user had deleted them from the old server. Therefore when I ...


1

Can you specify the rsync command that you used as if I'm not mistaken you need to make sure the modification timestamps are preserved when doing the rsync. A quick look at man rsync tells me that rsync should have the options like -tPrlHpogEAXz when you run it.


2

If you have configured server and created user accounts on debian. Then to migrate mails, you can use imapsync utility. This utility just synchronizes mails between two servers. You don't need to worry about mail directory path/structure on both servers. But you should know password for user account to transfer mails. Check imapsync use link for more ...


0

There is difference between subshell and child process. What you are asking is about subshell. Whenever parent shell finds executable it spawns a subshell, subshell have access to all variables of parent shell. That's why variable PATH is accessible to subshell also. When parent shell spawns a child process then access to variables is restricted in child ...


0

Your existing login session didn't load with the wheel group membership. Now that it's been granted, you can incorporate it by entering: newgrp wheel ... without having to log out or reboot.


1

You have several pieces to your question, and I can't claim familiarity with all of the commands you run, but here's my take: Either run the whole script as root (directly) or via sudo. That way, you won't need to run sudo in the script itself. If you require sudo for a particular step, then you'll either need to set your ID up with a NOPASSWD flag in ...


2

Group changes on unix are not recognized by existing login sessions; assuming, say, a Linux system with the usermod command: $ groups user $ sudo usermod -G wheel $USER ... $ grep user /etc/group | grep wheel wheel:x:10:user $ groups user To see the group change, any existing sessions (e.g. SSH, X11, etc.) must be exited, and a new session made (e.g. open ...


1

You almost answered your question. Here is a way you can find latest 5 updated packages: cat /var/log/yum.log | grep Updated: | tail -5 Output example: Aug 05 13:28:34 Updated: virt-manager-common-1.1.0-9.git310f6527.fc21.noarch Aug 05 13:28:34 Updated: glusterfs-libs-3.5.5-2.fc21.i686 Aug 05 13:28:35 Updated: virt-manager-1.1.0-9.git310f6527.fc21.noarch ...


0

nginx-release-centos-6-0.el6.ngx.noarch.rpm is not nginx package, it is nginx repository package. When you install it, it will create nginx repository. So you need one more task to install actual nginx: yum: name=nginx state=latest You can check package description: rpm -qip nginx-release-centos-6-0.el6.ngx.noarch.rpm ... Summary : nginx repo ...


0

I have manged to add the wireless network by using nmcli. I think it's something related to nmtui command. I found the help from here


1

I think nginx-release-centos-6-0.el6.ngx.noarch.rpm is an arch independent supporting package and it's insufficient for the full nginx installation. You also need to install the arch specific package found in i386 or x86_64 dirs. I recommend you to set up the yum repository based on the official install instruction: --- - hosts: testing tasks: - ...


2

As Stéphane Chazelas said in the comment, it is a bug in the specific implementation of coreutils (in coreutils-8.22-11.el7) by CentOS/Red Hat, more specifically in the buggy internationalisation patch (coreutils-i18n.patch) they wrote and applied on top of GNU's coreutils-8.22. I reported it here to CentOS and also here to Red Hat. It was already known at ...


0

There is a lot of tutorials in internet, it doesn't matter WIN10 or WIN8(8.1). First install windows, then linux.


0

Your default collation(en_US.UTF-8) cause to this. You should set LC_COLLATE value to order the text as directed. LC_COLLATE='C' sort -k1 file1


0

The instructions you're following are written for CentOS 5, you'll need to use CentOS 5 for those instructions to work. BTW, CentOS 5 will be EOL March 31, 2017. There is another repo for CentOS 7 at http://downloads2.goautodial.org/centos/7/goautodial.repo but it has some dependency failures on stuff like grub (el7 uses grub2), php-eaccelerator (project ...


2

The standard *nix authentication stack uses PAM. You'll want to look into building a module for PAM: http://www.linux-pam.org/Linux-PAM-html/ Typically multi-factor auth vendors will provide one. For example, here's a how-to guide for implementing google authenticator as a second factor for SSH login: ...


1

Within Red Hat Enterprise Linux 5, no. Unless Red Hat releases an enhancement to the package that provides the sort binary, the "human readable sort" behavior will never appear in any RHEL 5 point release. You may be able to install a RHEL 6 package to get this behavior, but I strongly recommend against doing so.


0

Assuming that you are using CentOS because of the tag I can say this: Additional packages are often in 3rd party repos. Information on additional CentOS repos is available at http://wiki.centos.org/AdditionalResources/Repositories Pay attention to the reference on yum-priorities.


3

If you want to do it for files only in your current directory: for file in $(ls *.php); do echo "define('DISABLE_WP_CRON', true)" >> $file; done If you want to do it for all php files starting from your current directory: for file in $(find . -type f -name "*.php"); do echo "define('DISABLE_WP_CRON', true)" >> $file; done Or probably you ...


0

It would be something like this: for i in /path/to/*/wp-config.php; do echo "define('DISABLE_WP_CRON', true)" >>$i done Be sure to make backup before doing this!


1

What you would need to do is include the file below the Content-Disposition: attachment; filename="por5151.pdf" line while you generate the .eml file. You can do so using the base64 utility: base64 por5151.pdf Make sure the closing boundary (--B835649000072104Jul07--) gets inserted behind that. sendmail doesn't interpret the file that you hand it, ...



Top 50 recent answers are included