To run a command as another user on Linux, use:
sudo -u USERNAME COMMAND
or
su USERNAME -s /bin/bash -c COMMAND
or
runuser -l USERNAME -c 'COMMAND'
Linux is a family of open-source Unix-like operating systems based on the Linux kernel. Some of the most popular Linux distributions include Debian, Fedora, and Ubuntu.
To run a command as another user on Linux, use:
sudo -u USERNAME COMMAND
or
su USERNAME -s /bin/bash -c COMMAND
or
runuser -l USERNAME -c 'COMMAND'
To redirect HTTP to HTTPS, switch to zimbra user:
su - zimbra
then run:
zmprov ms SERVER_HOSTNAME zimbraReverseProxyMailMode redirect
that’s it!
Enter single user mode: grub After entering the startup screen, type “e”, move the cursor to the kernel… line, type “e” again, add a space single at the end of the kernel line, and press Enter Type “b” to...
Actually, there are plenty of ways to contribute without coding: Submit bug reportsSuggest new features and optionsMake other comments on how to improve the the quality of the programHelp write good documentationTranslate the documentation (and...
A system administrator has quickly become one of the most important jobs in any company. Virtually all businesses these days rely heavily on their computer network so it should probably not come as a surprise that the guy who looks after that...
Linux creates many directories upon installation, but many of Linux users are not aware of the use of all those directories.In this article, you will find a basic information about uses of all directories and location of all types of data...
In Linux/Unix command line you can follow a file with tail -f [filename]. As the file is updated, the screen will update. This is handy for following error logs, etc. tail -f [filename] I just learned from a co-worker that the ‘less’...
The above diagram provides a conceptual view of the Linux architecture. Like all conceptual views, it is not a perfect match to the full complexity of Linux. The key point is to understand that the Kernel Space (shown in blue)...
Some commonly used shutdown/restart commands under Linux are shutdown, halt, reboot, and init. They can all achieve the purpose of restarting the system, but the internal working process of each command is different. Through the introduction of this...
As root, pico /etc/sysconfig/harddisks
USE_DMA=1
MULTIPLE_IO=16
EIDE_32BIT=1
LOOKAHEAD=1
EXTRA_PARMS= hdparm ?u1 /dev/hda
Source: “Linux (Red Hat 7.0+) Installation on the Compaq Armada E7400“