Changing User ID and Group ID In Linux

FREQUENTLY ASKED QUESTIONS (Linux)
Q: How do i change the User IS and Group ID in Linux operating systems?

Every users and group has a unique ID (UID and GID) in linux operating system. You can change the default user ID of a user or a group ID of a group in Linux operating system. Use "usermod" and "groupmod" commands to modify the ID value of users/groups.

Changing user ID for the user account
# usermod -u <new user id> <username>
Example:
[root@server ~]# usermod -u 600 james

Changing the group ID of a group
# groupmod -g <new group id> <group name>
Example:
[root@server ~]# groupmod -g 700 accounts

Was this helpfull ?

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons