Red Hat System Administration I RH124 says:
root can grant ownership to any group, while non-root users can grant ownership only to groups they belong to
[student@web ~]$ id student uid=1000(student) gid=1000(student) groups=1000(student),1009(dtracy) [student@web ~]$ grep bboop /etc/passwd bboop:x:1008:1008::/home/bboop:/bin/bash [student@web ~]$ [student@web ~]$ usermod -G student bboop -bash: /usr/sbin/usermod: Permission denied [student@web ~]$ su -c 'usermod -G student bboop' Password: [student@web ~]$ grep student /etc/group student:x:1000:bboop
So why can't I add user
bboop to users
student group as user
student but need to elevate permissions to
root or is it simply me misunderstanding or is it a bug ?