usermod – POFTUT

How To Add User To A Group In Linux

Linux uses groups in order to share resources in a easy way. In general a resource will have a user, group and other access rights. In this tutorial we will learn how to add user to a Linux group and its variations like creating group, deleting group, listing group members etc. Linux Groups Linux groups … Read more

How To Add Existing User To A Group In Ubuntu?

Ubuntu is a popular distributions used by a lot of companies as Desktop  and Server. As a system administrator one of the most recurring job is changing existing user group. In this tutorial we will look how to accomplish this task and some helper commands about this. Primary Group Primary group specifies the user first … Read more

How To Allow Normal User Run Commands As Root In Linux with sudo Command?

We have an application that needs higher privileges than normal user. This application may be run with root user. But we need to run this application with normal user with root privileges. Sudo Command sudo command is used to elevate user privileges to higher. Generally used to run commands as root user. Commands issued with … Read more

How To Change or Rename Username and User ID In Linux?

The problem is we want to change the already created user name or user id. As we know there is a lot of configuration those rely on the user id like permissions. We will use usermod command to make this change. Keep in mind this changes will effects system wide. List User Info Before starting … Read more

How To Add A User To A Group?

In Linux users may have different groups registered. By default adding a user to the Linux system will create new user. There are different commands to change user group one of them is useradd which actually create new user and sets given group to the newly created user. As always we need root privileges to … Read more

How To Disable or Lock Linux User Account?

How can I disable some Linux account? By disabling it I do not want to remove the account and related files. Just user related operations will be prevented. If an user authentication occurs it will be not authenticated. We will use usermod command to lock user account. Disable/Lock User Account with usermod Command We will disable account … Read more