Tag Info

Hot answers tagged

4

You can do yes | cp -rf myxx, Or if you do it as root - your .bashrc or .profile has an alias of cp to cp -i, most modern systems do that to root profiles. You can temporarily bypass an alias and use the non-aliased version of a command by prefixing it with \, e.g. \cp whatever


2

%{?rhel} will expand to 6. Therefore 0%{?rhel} will expand to 06 and it shouldn't match 6. You probably want instead: %if 0%{?rhel} Requires: packageName %endif %description Check dependencies and make OS modifications. %files This will expand to 0 if %{rhel} not defined and it will expand to 06 if it is defined. In spec-file-land, 0 is a false ...


2

It seems that you simply don't have these tools installed. On CentOS, you should be able to install them easily with yum. Try this: $ yum install nmap netstat


1

I've figured out what's going on. The messages are coming to the server from remote hosts via UDP. I didn't notice the host field changing at first, my mistake. BTW, actually there is a possibility to login using public key authentication with no authorized_keys file involved. RedHat (and variants) have a supported patch for OpenSSH that adds the ...


1

You do realise that RHEL and CentOS have tried to protect novice users by setting up aliases for the root user to prevent accidentally overwriting and deleting files? alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' The -i switch is what requires confirmation when modifying or removing existing files. Because alias expansion happens before execution of ...


1

Your new user new_username will not have root privileges after editing the sudoers file. This change only allows new_username to run sudo in order to run a task with superuser privileges: $touch testfile $chown new_username testfile chown: changing ownership of 'testfile': Operation not permitted $sudo chown new_username testfile [sudo] password for ...


1

yum list installed has 930 lines while rpm -qa has 895 lines, what might be the difference ? This is likely just formatting differences. yum list will do a bunch of clever wrapping to your terminal size. What you probably want to do is use: # Run this on the master server yum-debug-dump # Run this on the new server, with the input from the above. ...


1

I'm not entirely sure why the lists are different, but I do know that 'rpm -qa > installed.txt' is the correct way to find all of the installed packages. It will look for yum installed as well as rpm installed. In addition, the format of 'rpm -qa' output will work better with the yum install command that you are wanting to execute.


1

You've edited the file /etc/passwd with a Windows editor, or with an editor configured to produce Windows files. Don't do that. Windows uses the two-character sequence CR-LF to represent a line break, whereas Linux and other unix systems use just LF and see that CR as an ordinary character that happens to be last on its line. Generally speaking, use a Linux ...


1

Try the following when logged in: su root Then you login as root. When this works, you can edit the passwd file.


1

Does it accept the password from the console? you might have upgraded your system and your sshd_config might have been replaced. By default root access through ssh is disabled. By the way, the password is not stored in /etc/passwd, it is stored in /etc/shadow. The only thing affected would be your login shell which is what is the last field of /etc/passwd ...


1

Quick and Dirty Fix # chcon -R -u system_u -t httpd_sys_content_t /srv/vhosts you can read more, here and here


1

If I'am not mistake you mean this repo. Try to get URL form Releases. This case work for me: $ wget https://github.com/SpiderLabs/ModSecurity/archive/v2.8.0.tar.gz P.S.: I also have the same error message when try to run your case; $ wget https://github.com/downloads/SpiderLabs/ModSecurity/modsecurity-apache_2.7.1.tar.gz


1

CentOS - install using yum Apache 2.4 for detailed installation process Install Apache 2.4, MySQL 5.5, PHP 5.5 on CentOS/RHEL 6/5



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