Tag Info

New answers tagged

0

sudo fdisk /dev/sda Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the DOS compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit ...


0

is there a possibility that I can change it to sda2 fdisk utility itself has an option to toggle the boot partition. fdisk /dev/sda type 'a' to toggle the bootable flag


0

SOLVED. 1-Downloaded the kernel-lt-devel-3.10.40-1.el6.elrepo.x86_64.rpm from http://ftp.nluug.nl/os/Linux/distr/elrepo/archive/kernel/el6/x86_64/RPMS/ 2-Installed (just executing the file) 3-Pointed de VMware configuration to /usr/src/kernels/2.6.32-431.20.3.el6.x86_64/include/linux/ When the VMware start, another error appeared. Said that ...


0

Try installing CodeAnalyst with yum: yum localinstall <path to CodeAnalyst rpm>


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 ...


0

It is a bug of Centos/RHEL 6.x minimal install. Network is not activated during installation, because for some reason, they expect all installations to use Network Manager. Change the line ONBOOT="no" to ONBOOT="yes" in the file /etc/sysconfig/network-scripts/ifcfg-eth0 (or whatever your eth connection number is). Btw, using ifconfig is deprecated, instead ...


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. ...


0

This is an old thread but came up in my search for a similar issue. In case anyone else runs into this, the following answer solved it for me: http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/ Note* The URL says 2010 but the article was updated in 2013.


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 ...


0

You can always disable a root account by setting his login prompt to nologin in /etc/passwd file. However, after setting this, you would not be able to use root account even using ssh or su. root:x:0:0:root:/root:/sbin/nologin Now, as per this link, after setting sudo privileges to an user, the user must log off and log in back again for the effects to ...


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 ...


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


0

According to this web page vSphere Client is available only for Windows. The web page gives options on how to use vSphere Web client on Linux.


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 ...


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

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


0

yum list installed gives me the output as below. pam_krb5.i386 2.2.14-22.el5 installed Now, rpm -qa has the below to say. pam_krb5-2.2.14-22.el5 Both the commands give me the same number of lines as output. I would go with rpm -qa list. Also, from this answer, I see the below piece of information. ...


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

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 ...


0

You can use yum to accomplish this. [root@insomnia ~]# yum deplist php-soap Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.greenmountainaccess.net * epel: mirror.metrocast.net * extras: mirror.rackspace.com * updates: mirror.lug.udel.edu package: php-soap.x86_64 5.4.16-21.el7 dependency: ...


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


0

You should set "lesstrust1" users home directory to /var/www/html/oxwall. usermod --home /var/www/html/oxwall lesstrust1 And add the following line to your vsftpd configuration file. chroot_local_user=YES


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 ...


1

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


0

It appears that you are trying to configure lo interface to use DHCP. lo is a loopback device, virtual network interface that your computer uses to communicate with itself. You need to find out the name of your network interface card by running ifconfig -a command and then creating a configuration file for it in /etc/sysconfig/network-scripts. Here is an ...


2

Depending on your SSH configuration (usually defined in /etc/ssh/sshd_config) root access may be disabled in a number of ways: No root access at all (PermitRootLogin=No or DenyUsers root) root is allowed access, but only via key-pair authentication (PermitRootLogin=without-password or PasswordAuthentication=no) root access is allowed, but only specific ...


1

Chances are, tcpdump will be in the yum repositories. A simple sudo yum install tcpdump should get you up to date with the latest version available in the repositories. Since you are a newbie on Linux, I would recommend doing everything through your package manager and not installing software outside of the package manager. It will make your life easier if ...


0

You must remove comment in line: NameVirtualHost *:80 in your httpd.conf to make apache use Name-based Virtual Host, otherwise, it will use IP-based Virtual Host. Restart apache to make change applied.


2

The syntax error is not related to the value you set to ServerRoot directive, your syntax for set ServerRoot is right. Run: httpd -t to check your configuration syntax. For you comment, simply putting this line in your /etc/httpd/conf/http.conf: ServerName localhost You can see more details in apache documentation.


2

you are able to ping and ssh to the VM, So I guess it is not a firewall problem, I guess your httpd service isn't running: try to run it using: service httpd start or: /etc/init.d/httpd start httpd should installed on centos by default!!!!, to install httpd you can simply do this on centos: yum install httpd to set the apache service to start on ...


7

Your path looks ok, but does not include /sbin, which may be intended. You were probably looking for the command /sbin/ifconfig. If this file does not exist (try ls /sbin/ifconfig), the command may just be not installed. It is part of the package net-tools, which is not installed by default, because it's deprecated and superseeded by the command ip ...


0

I was missing this package: libpqxx-devel.x86_64


0

The issue was that I had to escape the #raw and #end raw as it was being interpreted by bash. %post #raw cat > /etc/yum.repos.d/blah.repo <<REPO [repo] name=repo baseurl=http://repo.local/repo/\$basearch enabled=1 priority=99 gpgcheck=0 REPO #end raw %end


0

After installing the VBOXADDITIONS you might need to do this: In VirtualBox click View>>Auto Resize Guest Display (Host + G) because the screen resolution did not work for me until I applied this final configuration to VirtualBox.


1

Without sudo the command doesn't have privileges to capture the device: tcpdump: eth0: You don't have permission to capture on that device But with sudo it would, but being run after ssh, it never gets password input for sudo on the remote server, so the solution is use -S (man sudo) and pipe password for sudo as follows: ssh john@server-abc.com "echo ...


0

Wireshark is a must try, as SHW suggested in his comment. It is a networking tool that shows any connections coming in or going out of your network. You can apply a filter to limit your search to your IP address range of your servers, and even track down what protocol is being used(so that you can figure out what is going on). It has a lot more tools that ...


2

You can run this command via sudo on the server to capture the data first, and then send the resulting file back to your workstation to review the data sudo tcpdump -i eth0 -s 65535 -w /tmp/wireshark


0

The difference between Basic Server and Desktop is just the type of packages that are installed. These just represent different starting points for an installation. Typically, as you work on your server and find you need "server" programs that were not installed in the Desktop version, you can easily install them with yum. If you want to make sure you ...


3

iptraf can show you a running tally per-socket so that will tell you which remote hosts are causing all the traffic. From the main menu go to IP Traffic Monitor and select the interface you want to monitor. Output is fairly intuitive:


1

I use a soft called IPTraf for quick monitoring of network connection. It runs on the terminal and can give you divers stats on the current connections status on the machine it's installed. you can also get a brake down based on the services used (or ports) which can be useful if your server only serves a particular function. Downside is that you need ...


1

MariaDB is the community-developed fork of MySQL: sudo yum install mariadb-server mariadb MySQL is the replacement for MariaDB, forked over concerns that Oracle may make MySQL a closed-source project.


5

Sherlock! Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. --Arthur Conan Doyle First you may want to check out this talk, which is a discussion about the sources of performance problems and how to diagnose them. It compares Linux to SmartOS, which is kind of separate from the point of your post, but it ...


1

If I have understood the question correctly, then you must specify the user's shell. In Active Directory Users and Computers, right-click the user account, select Properties, click the Unix Attributes tab, and specify a Login Shell like /bin/bash. The Unix Attributes tab becomes available after installing Identity Management for UNIX Components role ...


0

The cron was not running. After a restart the cron worked, and logrotate started to work as well.


0

can't comment - not enough points. What is the output of yum provides /full/path/to/file.so ? As first comment suggested, the so might be installed outside rpm db (e.g. manually compiled or copied). Some non-official rpms are poorly packaged, and rely on dependencies in the developer's machine. It would help if you could provide the package name and source. ...


6

and yet on the very top of the file it says.. Hmmm, that's strange. At the top of mine it says: # Manual customization of this file is strongly encouraged. Someone must have changed it ;) And in fact even moved it out of /etc/sysconfig so it would not get "auto uncustomized" by the package manager or anything else ;) ;) I think the point here in ...


10

Because the tool called system-config-firewall(or it´s ncurses based brother system-config-firewall-tui) manages this file. Every time you use this tool to create new iptables rules, it will overwrite /etc/sysconfig/iptables. Related Manpage: 28.1.16. /etc/sysconfig/iptables-config This is why it's not recommended, but not prohibited. The best way to save ...


1

In CentOS you have the file /etc/sysconfig/iptables if you dont have it there, you can create it simply by using iptables-save to dump the current rule set into a file. iptables-save > /etc/sysconfig/iptables To load the file you don't need to restart the machine, you can use iptables-restore iptables-restore < /etc/sysconfig/iptables


0

If you are using Xen4CentOS I would recommend using libvirt. Although it is using a xen driver to interface with xm and xl and not dedicated interface to the dom0 it will automate things like startup, shutdown, network interfaces and an easy installation interface. The trade-off for using an extra abstraction layer is compensated by having a system that is ...



Top 50 recent answers are included