Tag Info

Hot answers tagged

5

I don't think that there is a concept of "directory created by system". When you're installing your system, installation media often gets job done for you - you see the result(e.g. /etc directory created), but that really is done by user who happened to run script. Anything created by "system" could be treated as created by root, but there's no way of ...


4

usermod is a tool for modifying the local /etc/passwd database. It cannot be used to modify accounts delivered through Active Directory. id on the other hand looks up any user account regardless of its source. (Actually this is controlled with the passwd setting in nsswitch.conf but if you have integrated AD you'll be using multiple sources.) As mentioned ...


3

The shell history is maintained for interactive shell sessions (and is trivial to alter or disable); assuming the remote command is done via SSH, the shell need not even be involved given that sshd can simply fork and exec the command to run. Solutions would include turning on process accounting (this is global to a system) or using some sort of wrapper for ...


2

Tested on RHEL 6.6 If you're worried about glitches, or errors in your configurations, you can always run /etc/init.d/httpd configtest or /usr/sbin/apache2ctl -t before reload -- a good habit IMHO. A reload does not stop your running processes if you have errors in your configuration, and keeps the current processes running. A restart will stop the ...


2

Canonical Hostnames Description: The goal of this rule is to force the use of a particular hostname, in preference to other hostnames which may be used to reach the same site. For example, if you wish to force the use of www.example.com instead of example.com, you might use a variant of the following recipe. Solution: For sites running on a ...


2

There is no difference between files (including directories) created by the system or by a user because in the end it is the same system call. Later on it is impossible to tell who was the owner of the process which created the file or directory. By the way, "the Linux system" is mostly the user root: there is no special user. Furthermore, installing always ...


2

Depending on what you mean by "created by system", you may be able to use the packaging system to determine how a particular directory was created. For example, on an RPM-based system (e.g. RedHat, Fedora, CentOS etc): rpm -qf /var will give something like filesystem-2.4.100.x86_64 indicating it was installed as part of the filesystem package, whereas ...


2

Here's some general guidance on how to get rsync to do what you'd like it to do using the options you've selected in your script: To copy the contents of a directory from the source directory to a remote destination directory (the first time), you can do: rsync --archive --verbose --human-readable source -e ssh username@servername:/home/user/ . ...


2

This error means you don't have a X server running. If you are in ssh, you need to forward your X server as stated by Ulrich Schwarz. Also make sure that you have a Xorg server running on your client. If you are on your local machne, you need to be in a graphical session to run a graphical program. The following command might help to get the Xorg server in ...


1

As gwillie said in his comment, connecting to a Virtual Box guest machine depends on the network settings of that virtual machine. The default settings seem to be NAT which will make the layer between the guest and the host behave like a NAT device (like e.g. a router) and is therefore most suited for situations that don't require access from the host to ...


1

The problem was that I encrypted the volumes before enabling FIPS. As garethTheRed alluded to in a comment, LUKS used a non FIPS approved algorithm, so when FIPS was enabled things went bonkers. The solution is to Enable FIPS Encrypt volumes In that order. This guide was also useful in solving the problem. It is lengthy with extra explanation so I ...


1

There are two parts in this. One is the grub part which is hidden by the boot screen. You can enable its output for textual consummation by changing the line GRUB_CMD_LINE_LINUX_DEFAULT in /etc/default/grub on Ubuntu machines and remove quiet splash: #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="" run update-grub after this for ...


1

The parameter VLAN_NAME_TYPE defines the naming convention that you want to use for the VLAN device names, and thus for the file names. Here are a few assumptions: - I'm using interface eth0. The configuration is the same for a bonding interface, where the physical device name would be bond0, or for the new Dell naming convention emN, pSpN see RedHat ...


1

Within Red Hat Enterprise Linux 5, no. Unless Red Hat releases an enhancement to the package that provides the sort binary, the "human readable sort" behavior will never appear in any RHEL 5 point release. You may be able to install a RHEL 6 package to get this behavior, but I strongly recommend against doing so.


1

Your example shows that you specified -p which the quoted documentation explains copies the file permissions from the source instead of using umask. Remove the -p flag if you want to use the umask instead.


1

On CentOS (similar to RHEL), libjpeg.so.62(LIBJPEG_6.2)(64bit) appears to be provided by the libjpeg-turbo package. If it is available on your install (probably not if it could not be resolved), you should be able to install it with: sudo yum install libjpeg-turbo Otherwise, you could download the CentOS 6 package and install that - e.g. with: wget ...


1

Have you tried a cron command for job scheduling. Refer this link https://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-autotasks.html


1

Running gconftool-2 --get /apps/gnome-screensaver/lock_enabled will return a boolean telling you if screen locking is enabled for the current user. If it is true, you'll know that when the "ActiveChanged" signal is true, the screen is also locked. Since you asked about the config file for both options, you can also check if the screensaver is set to ...



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