Comments on: A Complete Guide to Usage of ‘usermod’ command – 15 Practical Examples with Screenshots https://www.tecmint.com/usermod-command-examples/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 28 Feb 2024 17:11:45 +0000 hourly 1 By: Hunter https://www.tecmint.com/usermod-command-examples/comment-page-1/#comment-2140913 Wed, 28 Feb 2024 17:11:45 +0000 http://www.tecmint.com/?p=9715#comment-2140913 I have a user in Debian 11 that I created through the GUI. However, when I attempt to add this user to a group, it says the user does not exist. I’ve successfully logged in to this user, so I’m unsure why it’s giving me this error.

]]>
By: salha ismael https://www.tecmint.com/usermod-command-examples/comment-page-1/#comment-1366628 Wed, 23 Sep 2020 08:12:00 +0000 http://www.tecmint.com/?p=9715#comment-1366628 How can I add multiple user example 200 users and the user should have a default password, must be forced to change password soon she logs in password expire after 30 days, and must have a sudo privilege and include user details

]]>
By: torino https://www.tecmint.com/usermod-command-examples/comment-page-1/#comment-1279334 Wed, 30 Oct 2019 08:38:42 +0000 http://www.tecmint.com/?p=9715#comment-1279334 In reply to dragonmouth.

Actually you can, but it is not recommended anyway…

try,

$ sudo usermod -o -u 0 username 

and this user will have now the same id as the root user.

Yep, the issue could happen if you assign that id, try on a virtual machine, and everything should be fine…

]]>
By: dragonmouth https://www.tecmint.com/usermod-command-examples/comment-page-1/#comment-1089591 Wed, 02 Jan 2019 13:38:24 +0000 http://www.tecmint.com/?p=9715#comment-1089591 In reply to Babin Lonston.

Then the UID number assignment depends on the distro you are using. I use PCLinuxOS and the default starting UID number is 500. From my distro-hopping days, I remember that some distros allow the admin to set the lowest allowable UID and/or the highest allowable UID.

]]>
By: Babin Lonston https://www.tecmint.com/usermod-command-examples/comment-page-1/#comment-1089472 Wed, 02 Jan 2019 07:57:49 +0000 http://www.tecmint.com/?p=9715#comment-1089472 In reply to dragonmouth.

@gragonmouth,

As per security standard it advised to use above 1000 UID/GID. Moreover, 0-1000 reserved for System users by default in Systemd (RHEL 7, CentOS 7, Oracle Linux 7 etc. )Linux servers. Try to create a user and notice you will find UID/GID will be above >1000.

Thanks & Regards,
Babin Lonston

]]>