Tag Info

Hot answers tagged

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


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.


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.


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


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


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

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


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


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


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.


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

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


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


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/


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


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

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


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


1

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


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.


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

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



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