New answers tagged

0

My understanding is that prior to RHEL 6, Red Hat were wary of the AT&T KornShell because of its licence, so they included the pdksh, which is a less complete implementation. I think David Korn was doing his best to get ksh accepted in as many places as possible and somewhere along the line the licence was clarified or changed. This quote is from the ...


0

You can use your package manager to find out which package clang-tidy provides. For example on Fedora/CentOS: dnf whatprovides '*/clang*tidy*' On Debian/Ubuntu you can use an analogous apt-file search command. However, on Fedora 23 clang-tidy just isn't packaged. No match is found. There is even an open bug report: Missing clang-query and clang-tidy ...


1

If you check your repo file for CentOS 6 Base in /etc/yum.repo.d/ you'll find there such strings: [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 ...


1

The problem was that my editor was being stupid and I thought it was word wrapping. When I put sed -i.bak -c 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward = 1|' /etc/sysctl.conf Into the editor the "/etc/sysctl.conf" would be touching the edge of the window so it displayed part of it on the next line. I thought it was just word wrapping but nope. Centos ...


0

systemd is designed to cleanly handle this case. You can do so by creating a small file specifies a command you want to run as part of stopping the PostgreSQL service. First, create a directory named: /etc/systemd/system/postgresql.d/ In it, create a file with any name that ends in .conf, like custom-shutdown.conf. Add to that file a couple lines like ...


5

Never known about the command intel_gpu_time interesting, thank you. This command is part of the package intel-gpu-tools (apt-get install intel-gpu-tools) under Ubuntu and by the look of it the package under RedHat (CentOS) is called exactly the same. So, give yum install intel-gpu-tools a try.


0

CentOS 6 has 2.31.3; CentOS 7 has 3.14.3 (where the feature works). It is not a new feature, having been introduced in 2007: Bug 118967 – single line scrolling with "Ctrl+Shift+ArrowUp/ArrowDown" while 2.31.3 dates from 2010 (a noticeable delay even for the enterprise releases). However, it does not work with CentOS 6 and incidentally, the git-commit logs ...


0

After spending a lot of time on this problem this morning, I decided to call our IT. It turns out the firewall was doing deep packet inspection, actively blocking yum. Impossible to figure out on the local machine because curl/wget and pretty much everything else works as expected. So if curl works on the advertised addresses, it might be some firewall that ...


0

Adobe abandoned Flash for Linux years ago. Which is a good thing because Flash is a security nightmare. If you really must play a flash video, the best method is to just download it and play it with mplayer or similar. Or convert it from .flv to .mp4 or something with ffmpeg or handbrake. There are several video-downloader plugins available for firefox ...


1

When compiling/installing from source, as with most software distributions like this, the service will not be installed. You need to do those steps manually (or with configuration management of some type). Here's an example that I find, specifically for Samba 4 on a systemd based Linux system. Translating from here: https://dev.tranquil.it/wiki/SAMBA_-...


0

On more recent versions of gnome-terminal, Shift+Ctrl+↑ and Shift+Ctrl+↓ work for scrolling by line, but I have no way of checking for 2.31.


1

A quick look at the manual page shows: password=arg specifies the CIFS password. If this option is not given then the environment variable PASSWD is used. If the password is not specified directly or indirectly via an argument to mount, mount.cifs will prompt for a password, unless the guest option is specified. So, ...


1

Stop Those Irritating Dr. Web Antivirus Cron Update Emails on Plesk 11.5+ After recently updating our server, we started receiving some irritating cron emails from the DrWeb daemon. One every hour to be exact, that’s twenty-four every day, agh! Here is a simple way to turn it off. Log in as root to your server via SSH and open /etc/drweb/drweb32.ini. Search ...


2

I don't think Rob's answer is right. Those mails are apparently sent by the software that you installed. You need to fix the installation. Sadly, you don't provide enough information to pinpoint the problem exactly, especially information about the failed installation of that anti-spam plugin.


0

You are misinterpreting what you received. That isn't spam sent to you but a response to (possible) spam sent to them from someone who claimed to be you. It's called "bounceback". What happens is, the spammer doesn't want to get auto rejected by someone's anti-spam service, so they put in the return email address other people's addresses. Then, if it gets ...


2

It's not clear what your actual problem is. Port 3306 is MySQL, is the attacker trying to break into your database? If the DB should not be accessible from outside, you should perhaps drop all connection requests from outside (I normally consider sending any reply packets to an attacker an unnecessary courtesy...) If the attacker somehow consumes your ...


2

Let´s say you want to allow users bellonging to group users2 to do some privileged control over apache without giving them root privilege. Add to /etc/sudoers %users2 keep ALL=NOPASSWD: /sbin/service http,/etc/init.d/http,/usr/sbin/apache2ctl If you just want them to restart apache it will be: %users2 ALL=NOPASSWD: /sbin/service http restart,/etc/init.d/...


3

That last column is the process (process # / process name) and not the port. The port is in the fourth column, in your case it shows two ports open ulistproc and https. Both ports are open on the address "*" which means all addresses on your machine (that's normal default for most daemons, there's a config to limit it). If you want the actual port numbers ...


1

As root, type netstat -pat | grep httpd (or grep apache depending on your distro)


0

Turns out that just yesterday Project Atomic announced that there's a method to install using systemd. I followed that method, using the instructions from this openshift/origin project example about atomic registry. Here's the snippet from that README.md that worked at the time of authoring this example: Installation Install sudo atomic install ...


1

You cannot define eth0:0 as the origin of your ICMP packet with the pingcommand; as said in previous comments, the routing rules will be applied, and if routing to other networks, the eth0 address will be used. You can however, spoof an ICMP packet having eth0:0 IP address as origin with the hping3 command as in: sudo hping3 -1 8.8.8.8 -a 192.168.2.96 ...


0

download jdk-8u91-linux-x64.tar.gz archive of oracle jdk from http://www.oracle.com/technetwork/java/javase/downloads/index.html, unpack and set PATH and JAVA_HOME to it. Just keep in mind that you have to watch security updates on your own.


0

As soon as you ping an address in your network 192.168.2.0/24 the eth0:0 address will be used as source. Otherwise, the Interface address of eth0 will be used.


4

This proves yet again that if you run random scripts off the Internet, you lose. Who wrote that tutorial? More importantly, who wrote this "iRedMail" thing? (never heard of it). Did you review the script, so that you're sure it didn't do anything else wrong? In the best case, that script (I didn't review it) simply has a bug which caused it to set ...


2

Try purging the 8.8.5 from your rpmdb. Use rpm -q gitlab-ce to get the exact package name and insert it into the command below. rpm -e --justdb ${exact_package} Should look something like this rpm -e --justdb gitlab-ce-8.8.5


0

Actually, the best answer I believe is the combination of the two answers already posted. In order to change the device name without restarting network services, use the ip link commands suggested by James Shewey (ip link set <old_device_name>; name <new_device_name>). To make the changes survive a reboot in Red Hat Linux, modify the relevant file in ...


2

Server log says sshd: /etc/ssh/sshd_config: No such file or directory This means the the server is unable to open the file for some reason. Check if the file exists and if it has appropriate permissions (including SELinux labels) ls -lZ /etc/ssh/sshd_config should give you enough information to figure this out (restorecon /etc/ssh/sshd_config should ...


-1

It's because of ip conflict, I have same kind of issue, you should not use the same ip for other vm's. Even if you delete it, ip won't be released. try with another ip in the same network it should work.


2

According to Centos-wiki : UNetbootin is probably the most popular "outside" method, has both Windows and Linux executables, and allows you to create bootable Live USB drives for a variety of Linux distributions. This utility is no longer recommended for use as it fails to work with newer CentOS iso images. The Solution : Create a bootable USB key ...


15

In the image you show that the "other" group has read permissions; if you tried to append echo testline >> useradd or execute ./useradd it would give you a permission denied. If you're looking to remove read permissions for the 'other' users you can use sudo chmod o-r useradd


7

I believe it is because the permission on the useradd file is set to rw-r--r--, thus giving read access to all users.


1

Let me explain this to you The differnce is that linux has two ways to lock an user's login : 1- by locking the password 2- by locking the username First: passwd -l test < this will lock the password for user. passwd -u test < the locked password can only be unlocked by this, means only then user can login. Second: ...


1

Accounting for the comment that echo only "beeps" my computer, the question is not looking for a way to use echo (or tput bel), but for something like that mentioned in Remotely make the computer beep on built-in speaker. That wouldn't be in the standard CentOS repositories since it is not in Red Hat Enterprise. But there is a package for it on RepoForge, ...


3

There is a Linux module called cloop (compressed loop), packaged along with some corresponding utilities, e.g. on Debian. You can mount these images in compressed state. Caveat: Read-Only. Also, you have to specifically create them, sda1.img.gz wont just mount. In an nutshell: # create_compressed_fs - blocksize < /dev/xyz > imageName.cloop # insmod ...


1

I suppose that dd image means a compressed copy of some partition that contained a filesystem. In general, you can't mount such a compressed image, as it is not suitable for random access. You would need to decompress it, then you can mount it and access the filesystem. If you want a filesystem which compresses data automatically (like the Windows ...


0

To create a compressed image on the fly: gzip < /path/to/inpurt >/path/to/image.gz To read a compressed image on the fly: zcat /path/to/image.gz > /path/to/output


0

Hm, I'm too new to comment on Reed's answer. It worked well for me. Only thing I wanted to note (maybe this is something for Reed?) is that I had to install with a slightly different command line: yum --enablerepo=testing-devtools-5 install devtoolset-1.0 (Reed's answer had --enablerepo=testing-devtools-6, which didn't work.)


-1

My solution has been change the permission of home directory. chmod 777 /home I know, give all permissions for all users is not the best solution but at the moment works fine. Thanks! And sorry for the english...


0

The command to check if 25 is open: Telnet <your-IP> 25 If it allows it, the port is open and that's not your problem. If connection is refused, do the following: sudo vi /etc/iptables.test.rules Check that there is an entry like this: # Allows SMTP access -A INPUT -p tcp --dport 25 -j ACCEPT If not, change it using vi commands. If you're new, ...


3

From OpenVPN's man page: --server network netmask ['nopool'] A helper directive designed to simplify the configuration of OpenVPN's server mode. This directive will set up an OpenVPN server which will allocate addresses to clients out of the given network/netmask. The server itself will take the ".1" ...


3

I'm not an expert, but from the source (ply-text-progress-bar.c) it looks like you set the overall percentage done and that the different colors/layers's progress is hard coded by the following, and other functions within that file: brown_fraction = -(progress_bar->percent_done * progress_bar->percent_done) + 2 * progress_bar->percent_done; ...


0

You can parse it directly using the bash shell's built-in read function, by setting the field separator to = while IFS== read -r name value; do arr1+=("$name") arr2+=("$value") done < model.conf The arrays will be zero indexed by default, i.e. $ echo "${arr1[0]}" customer $ echo "${arr2[0]}" "airtel" Since variables (including arrays) have ...


0

With awk: eval $(awk -F= -v i=0 '{print "arr1["i"]="$1";arr2["i"]="$2;i++}' model.conf) With = as field seperator and variable i with initial value 0, awk will print "arr1["i"]="$1";arr2["i"]="$2 for each line where $1 will have the key and $1 will have the value and increment i for each line. awk -F= -v i=0 '{print "arr1["i"]="$1";arr2["i"]="$2;i++}' ...


1

You can check seven line,they show you No memory reserved for crash kernel.It's means you need edit grub file ,give crash kernel some space,usually 128 or 256.


0

You can set system-wide dconf settings by storing them in a text file under /etc/dconf/db/local.d and running dconf update. If you've set up things on a user's account, you can print out the settings in text form with the dconf command line utility. dconf dump / prints out all known settings but you should only retain the settings that you modified.


1

The creator of an rpm spec file can override the default things to check for the verification of a given file. For example, %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/samba/smb.conf means do not check the file's md5sum (size or mtime). These are still recorded in the database, but variation will be suppressed during a -V operation. You ...


0

Configuration files such as smb.conf are often fiddled with by sysadmins, so it does not make sense for rpm to verify something that will be changed. "stock" will also only be whatever was installed on the first install of smb.conf; the contents of this file may vary if the version of samba first installed has changes to its smb.conf, and if a sysadmin has ...


1

Yes, it is available for CentOS 7. You just have to add "Webtatic EL yum repository" information corresponding to your CentOS/RHEL version to yum, like : rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm You can install php now, using : yum install php56w ...


0

As UlrichSchwartz commented, Debian/Ubuntu/etc uses package name apache2 with configuration in directory /etc/apache2 while RedHat/CentOS/etc uses package name httpd and config directory /etc/httpd, and does not provide the sites-enabled + a2ensite scheme by default, although you can construct it if you want. If you want to change the (by default only one) ...


-2

as root: -A INPUT -m state --state NEW -m tcp -p tcp --dport 2110 -j ACCEPT restart ssh service checks the ssh connection, or restart the system.



Top 50 recent answers are included