# usermod

Published articles for usermod.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## usermod Command: Manage Linux Users, Groups, UID, Shell and More

DevFeed: [usermod Command: Manage Linux Users, Groups, UID, Shell and More](<https://devfeed.tech/articles/usermod-command-manage-linux-users-groups-uid-shell-and-more-49163.md>)

Original publisher: [Read original article](<https://www.tecmint.com/usermod-command-examples-linux/>)

Author: Babin Lonston

Published: 2026-09-02T04:56:06Z

Content type: tutorial

Language: en

Sources: [Tecmint: Linux Howtos, Tutorials & Guides](<https://devfeed.tech/sources/tecmint-linux-howtos-tutorials-guides.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Users](<https://devfeed.tech/topics/users.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [active-directory](<https://devfeed.tech/tags/active-directory.md>), [change-username-in-linux](<https://devfeed.tech/tags/change-username-in-linux.md>), [dry-run](<https://devfeed.tech/tags/dry-run.md>), [groups](<https://devfeed.tech/tags/groups.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-commands](<https://devfeed.tech/tags/linux-commands.md>), [linux-commands-usermod](<https://devfeed.tech/tags/linux-commands-usermod.md>), [linux-usermod-commands](<https://devfeed.tech/tags/linux-usermod-commands.md>), [lock-user-in-linux](<https://devfeed.tech/tags/lock-user-in-linux.md>), [podman](<https://devfeed.tech/tags/podman.md>), [rhel](<https://devfeed.tech/tags/rhel.md>), [shell](<https://devfeed.tech/tags/shell.md>), [usermod](<https://devfeed.tech/tags/usermod.md>), [usermod-command-examples](<https://devfeed.tech/tags/usermod-command-examples.md>), [usermod-commands](<https://devfeed.tech/tags/usermod-commands.md>), [users](<https://devfeed.tech/tags/users.md>)

### AI overview

A tutorial on using the Linux usermod command to modify existing user accounts, including account attributes, group membership, shells, UID and GID ranges, and related configuration files. It covers privilege requirements, active sessions and processes, local versus directory-managed accounts, and backups before high-risk changes.

### Source excerpt

The post usermod Command: Manage Linux Users, Groups, UID, Shell and More first appeared on Tecmint: Linux Howtos, Tutorials & Guides . Most admins learn usermod -aG in their first week and never read much beyond it. But drop the -a once The post usermod Command: Manage Linux Users, Groups, UID, Shell and More first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

## Fixing the Docker Permission Denied While Trying to Connect to the Docker Daemon Socket Error

DevFeed: [Fixing the Docker Permission Denied While Trying to Connect to the Docker Daemon Socket Error](<https://devfeed.tech/articles/fixing-the-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket-error-28158.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/docker/2020/06/10/fixing-the-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket-error.html>)

Author: Fuzzygroup

Published: 2020-06-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [permission](<https://devfeed.tech/topics/permission.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [bash](<https://devfeed.tech/tags/bash.md>), [command](<https://devfeed.tech/tags/command.md>), [containers](<https://devfeed.tech/tags/containers.md>), [digital-ocean](<https://devfeed.tech/tags/digital-ocean.md>), [docker](<https://devfeed.tech/tags/docker.md>), [error](<https://devfeed.tech/tags/error.md>), [groups](<https://devfeed.tech/tags/groups.md>), [id](<https://devfeed.tech/tags/id.md>), [linux](<https://devfeed.tech/tags/linux.md>), [permission](<https://devfeed.tech/tags/permission.md>), [socket](<https://devfeed.tech/tags/socket.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [unix](<https://devfeed.tech/tags/unix.md>), [user](<https://devfeed.tech/tags/user.md>), [usermod](<https://devfeed.tech/tags/usermod.md>)

### AI overview

For the Ubuntu permission error connecting to `/var/run/docker.sock`, the source recommends adding user `ubuntu` to the `docker` group with `sudo usermod -aG docker ubuntu`, then logging out and back in (or switching to a refreshed login session) for the group change to take effect. It gives an Ansible task that appends the group and suggests verifying membership with `id -nG ubuntu`. The guidance is specific to the Ubuntu user example in the excerpt.

### Source excerpt

I recently had the situation where even the simplest docker command: docker run -it bash gave this error: docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. The solution for this is actually pretty simple: Add your user to the docker group. Since I was running Ubuntu linux, the default user is also ubuntu and then command is: sudo usermod -aG docker ubuntu And then you have to log out and log back in or u -s ${ubuntu} Here's an ansible task which you can drop in a playbook to accomplish this: - name: Update the ubuntu user to be part of the docker group user: name: ubuntu shell: /bin/bash groups: docker append: yes Verifying this If you need to validate what groups a user is in then use: id -nG ubuntu Note: Thanks to Don Neufeld for teaching me this command; somehow despite N decades of unix experience, I missed the id command. Bizarre. See Also Here's a good article from Digital Ocean on this.