Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    3

    Question How to add a specific group to all user using postwwwacctuser/postwwwacct

    Hello,

    I would to add every new user(unix-cpanel) account to a specifi group (let's say "webclient" group).

    How could I do that ?

    I understood that it can be done through postwwwacctuser but I have no enough knowledge to do it in perl.

    As some arleady do that ? can you post any sample ?

    Thanks a lot.

    yoni

  2. #2
    Member
    Join Date
    Jul 2011
    Location
    Palmerston North, New Zealand
    Posts
    27
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: How to add a specific group to all user using postwwwacctuser/postwwwac

    Well this should be as easy as executing a simple shell command "usermod -a -G <group> <user>"
    Basically this command says, add existing <user> to group <group> but do not change its primary group, which is what you want.

    Here is the documentation on how to create script hooks ScriptHooks < AllDocumentation < TWiki
    Regards
    Stefan Andres Charsley
    WebFront.co.nz

Similar Threads & Tags
Similar threads

  1. postwwwacct Add user to MySQL Database
    By cfidecaro in forum cPanel Developers
    Replies: 2
    Last Post: 04-04-2009, 03:32 PM
  2. Replies: 2
    Last Post: 12-21-2007, 01:14 PM
  3. How do I add a user into a group?
    By shann in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2005, 10:15 AM
  4. How do I add a user into a group?
    By shann in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2005, 10:14 AM
  5. Adding specific user to compilers group removes them from wheel..
    By movielad in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-27-2004, 04:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube