How do I use Groupmod?
- Example-1: To change the group “newgroup” to “oldgroup”. # groupmod -n oldgroup newgroup. output:
- Example-2: To change groupid of group: # groupmod -g 777 oldgroup. output:
- Example-3: To use same gid for multiple groups, use -o option. #groupmod -g 777 newgroup. output: ( both oldgroup and newgroup have same GID’s)
What is the difference between userdel and deluser? userdel is a low level utility for removing users. On Debian, administrators should usually use deluser(8) instead. The userdel command modifies the system account files, deleting all entries that refer to the user name LOGIN. The named user must exist.
What is .cfg file in Linux? A configuration file, also known as a config file, is a local file that controls the operations of a program, utility or process. Linux configuration files contain the settings and instructions for different systems, utilities, applications and processes.
Where is config in Linux? Most global config files are located in the /etc directory.
The following is a list of the most useful of these sub-directories: /etc/X11/ – xorg specific config files. /etc/cups/ – sub-directory containing configuration for the Common UNIX Printing System.