Tag Info

New answers tagged

2

The mysqldump command returns nothing, which is piped trough gzip and ends in an empty gzip file. See: $ echo -n "" | gzip -9 > test.gz $ stat -c %s test.gz 20 This results in a file with size 20 bytes. So the problem is the mysqldump command. Since it's root's crontab the script runs with root priviledges. sudo is not necessary. Use it without sudo. ...


0

The environment that cron runs scripts in is very limited. It may not be finding all of the required programs. Capture the environment variables of the shell in which you get a good dump and carry that over to your cron script.


1

The script run via cron is failing. 20 bytes is the size of an empty MySQL dump.


1

Appears you need to install ftp. Such an insecure protocol isn't installed/enabled by default on RHEL 6. yum install proftpd will install ftp.


0

yum is a high-level package manager, able to solve dependencies. This means that should cf-cli_amd64.rpm need other packages to be installed (as it happens in 95% of cases), yum will retrieve and install them without any hassle for the user.


1

Red Hat's own Kickstart is a popular approach for automating RHEL installs/upgrades. It can be used to perform the OS install/upgrade itself and then to perform post-install/upgrade actions such as hardening and installing further packages.


1

It turned out to be a lack of /* in the %files section %files %defattr(-,root,root,-) /*


1

I faced this problem because of missing install command to create that specific directory. Once i have added the install command under %install, the rpm generated successfully install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d


1

This is not a complete answer, but I wonder if you could accomplish this using SSSD. The pam_sss module lets you restrict a service to only considering particular domains in /etc/sssd/sssd.conf. From pam_sss(8): domains Allows the administrator to restrict the domains a particular PAM service is allowed to authenticate against. The format is a ...


3

Also note that the error you gave above ln: creating symbolic link `/etc/init.d/jboss1': Permission denied is not due to the owner of the symlink being somebody else than the owner of the original file. It is (most probably) caused by user askar not having write access to the directory /etc/init.d.


2

Systemd is working with services and targets. Targets is the equivalent of runlevels, services is the equivalent of init scripts. Most of systemd configuration is located in /usr/lib/systemd, while standard init are in /etc/{init.d,rc*.d,inittab}. When an issue kicks in during the boot process (default are getty.target or graphical.target, you can get them ...


7

On a Linux system, when changing the ownership of a symbolic link using chown, by default it changes the target of the symbolic link (ie, whatever the symbolic link is pointing to). If you'd like to change ownership of the link itself, you need to use the -h option to chown: -h, --no-dereference affect each symbolic link instead of any referenced ...


2

When acting on symlinks, you must tell most of the tools (chown, chmod, ls...) not to dereference the link: you must add the -h parameter, as stated in the manpage : -h, --no-dereference affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink) So try : sudo chown -h askar.admin ...


0

Adding to the previous answer (sorry not enough rep to add a comment) you can certainly block those ports (either on the machine or on a firewall on the way out)... but what if the connection is attempted using a non-standard port? If you want to be truly paranoid, you can go the route of blocking all outbound traffic, and then taking the laborious path of ...


0

The problem isn't the route except indirectly; the problem is that eth0 is still getting its old IP address, and not just the route. 1) be CAREFUL with simply renaming files in /etc/sysconfig/network-scripts/{ifcfg/route}-* : the routine to find and load interfaces is only very dumb, and will try to bring up eth0.org as a valid interface! Dont' clutter ...


0

Using iptables iptables -A OUTPUT -p 21 -j REJECT # FTP iptables -A OUTPUT -p 22 -j REJECT # SFTP et.al. Do be aware that sftp uses port 22, which is also used by ssh. If you want the process to be unaware then change the REJECT to DROP. The rule above is obviously on the machine that you want to block. If you are configuring the rules on a ...


0

I'm guessing, but it looks like you want to block connections to port 21 and port 22 . This can be done on the host itself for ftp iptables -I OUTPUT -p tcp --dport 21 \ -d the.rem.ote.ip \ -m comment --comment "blocked as per ticket##" \ -j REJECT SFTP, though, is tricky: it shares a port with ssh. If you are okay with blocking the outgoing ssh ...


1

From the Boost 1.58 Release Notes: Compilers Tested Boost's primary test compilers are: Linux: Clang: 3.4 Clang, C++14: 3.5, 3.6 GCC: 4.4.7, 4.9.2 GCC, C++98: 4.8.1, 4.8.2 GCC, C++11: 4.4.7, 4.8.4, 4.9.2 GCC, C++14: 4.9.2 Windows: GCC, mingw: 4.4.7, 4.5.4, 4.6.3, 4.7.3, 4.8.2 Visual C++: 8.0, 9.0, 10.0, 11.0, ...


0

--prefix works only with relocatable packages, to change destination directory for binary files In your case, you should use --buildroot parameter instead.


1

Homebrew also has a recipe for rpm installation, just run brew install rpm


1

You can search the filesystem for one of those paths, for example (it can take a while): find / -path "*/jdk1.7.0_79/jre/Welcome.html" The output could be: /path/to/unpacked/tarball/jdk1.7.0_79/jre/Welcome.html The place would then be /path/to/unpacked/tarball/


3

They went to whatever was your current directory when you ran tar; if you haven't closed the terminal or changed directories since, pwd will tell you where they are.


1

At several points in rc.sysinit, rcS-emergency will be run when there's a problem requiring administrator intervention, such as: echo $"*** An error occurred during the file system check." echo $"*** Dropping you to a shell; the system will reboot" echo $"*** when you leave the shell." str=$"(Repair filesystem)" PS1="$str \# # "; export PS1 [ ...


1

The reason it didn't work with $JAVA_HOME is that $JAVA_HOME isn't the same thing as $JAVA_HOME/bin. Your binaries (java, javac, javaws, etc) are all found in the bin directory inside your $JAVA_HOME, not in the $JAVA_HOME itself. The working line in your question points towards /usr/java/jre1.8.0_51/bin; the JAVA_HOME variable points towards ...


2

You need xfce4-session, or else your desktop will not run properly (yes, I'm serious). Are you running xfwm4? Do you have a saved session? Is xfsettingsd running? Oh, and don't use Xfce4.8 anymore. It's horrible outdated and does things the wrong way (like thunar-vfs).


-2

The method I used to follow for bypassing the root password and reach the root shell is by editing the init in grub (kernel line). init=/bin/bash I don't have much reputation to add a comment. But thought this might be handy.


0

According to this and according to the source code, dummy interfaces appear to be kind of like the /dev/null of network interfaces. If will never receive a packet, and any packet you send to it goes nowhere. For your use case, you probably don't need a dummy interface at all. You can probably achieve what you need to binding the virtual IP address in ...


0

You need to set the proper security context type so that SELinux stops complaining. sudo chcon -R -t httpd_sys_script_rw_t /var/www/mediawiki123/images/ Don't forget to set the directory back to the correct permissions. sudo chmod 755 /var/www/mediawiki123/images/ For all of your SELinux needs, browse through here.


0

I don't know what behaviour have with RPM packaging, I suppose don't differ much from DPKG, but in Debian you can substitute an app with requirements from others, if you install another app with the same requirements. Examples: - MySQL & MariaDB - Exim & Postfix ... Regards,


0

After doing some reading and some practices this is how i think iscsi differs from iscsid. In a system that acting as iSCSI initiator, there are two particular iscsi services running. One is "iscsi service" and other is "iscsid service". where, iscsid is the daemon that runs in the background while acting on iSCSI configuration and managing the ...


0

I had the same issue regarding this error: Cannot find a valid baseurl for repo: base and Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock As root (su - root) and provide your username password, you should be in the sudoers file. Then, vim /etc/yum.repos.d/CentOS-Base.repo Modify all only ...


1

As you specifically mentioned htpasswd, here is a simple perl script that you can use to replace it (from here): #!/usr/bin/perl use strict; my $passWord=$ARGV[0]; print crypt($passWord,$passWord)."\n"; Just place the above code in a new script, say htpasswd.pl, make it executable (chmod 755 htpasswd.pl) and run it as follows: ./htpasswd.pl password ...


0

iscsid is the daemon (system service) that runs in the background, acting on iSCSI configuration, and managing the connections. From its manpage: The iscsid implements the control path of iSCSI protocol, plus some management facilities. For example, the daemon could be configured to automatically re-start discovery at startup, based on the contents ...


0

I've had a similar problem some time ago. I think I solved it by installing mysql-libs first, then Postfix. I'll add more information as I retrieve it.


0

Default permissions are based on your umask setting. RHEL 6.6: # umask 0022 I don't believe that has changed by default - can't find anything authoritative. umask is something that you should set as part of the default profile.


1

The documentation and example you are looking for is located at /usr/share/doc/initscripts-*/sysvinitfiles on CentOS/RHEL. Here is the documentation for the daemon function specifically: daemon [ --check ] [ --user ] [+/-nicelevel] program [arguments] [&] Starts a daemon, if it is not already running. Does other useful things ...


0

Run sudo visudo or alternatively open /etc/sudoers Check for the line secure_paths="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", If your Java is located somewhere else add that path to this list.


0

You're trying to remove the wrong package. openldap provides only the library files (libldap, liblber, etc.) and it's required by pretty much everything on the system. So when you try to remove it yum goes through the list of dependencies which is pretty much all of it. The configuration files that you deleted are part of the openldap-servers package (and ...


0

Can you make a backup of the configuration and : yum remove openldap rpm -e openldap.package_name yum install openldap And copy your configuration files back


0

You can use reinstall to reinstall the OpenLDAP package: # yum reinstall openldap That should reinstall the default configuration files and leave you with a fresh installation.


1

You shall do ./configure --prefix=/usr/local/bynary_package Then a make with the option required in the Makefile.


0

Normally, this is solved with different package naming. The first package would be mycoolpackage and the second one would be for example mycoolpackage1. With this method you can have different versions of the same software installed and still update both versions via yum. One example for this are the packages samba (samba version 3.6.9) and samba4 (samba ...


1

When you configure a custom init script in RH EL 6, named for example "service_name", you have to care to create, during its start phase, the lock file /var/lock/subsys/service_name otherwise the script will not be executed during shutdown of the system (init 0 or init 6). At the same time you should setup "rm -f" of the lock file during its stop phase.


0

While I'm unable to explain why the newest kernel wasn't booting automatically, the kernel booted by GRUB is set in /boot/grub/grub.conf using the default=<menu entry number>, where counting starts at 0. In this specific case, default=1 will boot your desired kernel.


0

Try complete path: /bin/sync ; /bin/echo 3 > /proc/sys/vm/drop_caches this always works for me on any flavour of linux.


0

Based on the output of yum groupinfo Xfce (see below), you should be able to run: yum install Thunar xfce-utils xfce4-panel xfce4-session xfce4-settings xfconf xfdesktop xfwm4 NetworkManager-gnome Terminal gdm leafpad openssh-askpass orage polkit-gnome thunar-archive-plugin thunar-volman tumbler xfce4-appfinder xfce4-icon-theme xfce4-mixer ...


0

Answer: Yes if you have deleted the user of apache that came up with rpm, you need to create on named as apache or www whatever, here -s /sbin/nologin apache indicate do not add the shell for apache user useradd -r -s /sbin/nologin apache You can put your web files whatever you want /srv/www, /var/www/ or /usr/local/httpd anywhere, but it must be defined ...


3

The correct way to do this is to add a profile for SNMP to firewalld. Using UDP 161 not TCP vim /etc/firewalld/services/snmp.xml <?xml version="1.0" encoding="utf-8"?> <service> <short>SNMP</short> <description>SNMP protocol</description> <port protocol="udp" port="161"/> </service> Then you should ...


0

SNMP is udp vs tcp. Change your protocol in your rule and it should work.


2

Source packages are not added to the rpm database, so they will not show on query. Probable location is ~/rpmbuild/{SOURCES,SPECS} with SOURCES containing the package sources and distribution patches while the SPECS subdirectory containing the .spec file being used to build the package (see rpmbuild (8) man page for details). If you can't find the sources ...



Top 50 recent answers are included