Add user to multiple groups within CWP

Started by mujie, April 16, 2016, 07:01:10 AM

Previous topic - Next topic

mujie

Hi,

I know about "usermod", "groupadd" or "setfacl". BUT, I want to do it with CWP automatically when I create a new user. For example, I type this command for directory with multiple groups.

/usr/bin/setfacl -R -m g:tomcat:rwx /home/myclientuser

Which is, myclientuser has group "myclientuser" and I want to add it to 2nd group named "tomcat" group. Its work for while, but than not anymore less then minute. So I need to type a command again.

I'm waiting for any suggestion or advise, thanks.


mujie