Assume I'm logged in with user takpar
:
takpar@skyspace:/$
As root, I've added takpar
as a member of group webdev
using:
# usermod -a -G webdev takpar
But it seems it has not been applied, because for example I can't get into a webdev
's directory that has read permission for group:
400169 drwxr-x--- 3 webdev webdev 4.0K 2011-08-15 22:34 public_html
takpar@skyspace:/home/webdev/$ cd public_html/
bash: cd: public_html/: Permission denied
But after a reboot I have access as I expect. As this kind of group changing is in my routine, is there any way to apply changes without needing a reboot?
Answer
It seems there is no way to make the current session know the new group, for example the file manager won't work with new changes. But a re-login will do the job.
The su
command is also appropriate for temp commands in urrent session.