Hello,
I don't know if it's the right place for the following problem as it's not about building up a script.
PROBLEM : adding a user to a secondary group is not reflected system wide immediately.
It is only taken into account after rebooting the machine. (working in runlevel 5).
user1 has primary group user1, home dir /home/user1 with permissions 0770.
user2 has primary group user2, home dir /home/user2 with permissions 0700.
Add user2 to group user1 : Code:
usermod -G user1 user2
user2 shell:Code:
ls -l /home/user1
: fails
Code:
touch /home/user1/test
: fails.
Both these commands are OK after a full reboot.
How can we apply the group membership changes system-wide without rebooting ?
Thank you.