The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mass Plan/Owner/Skin Change

Discussion in 'General Discussion' started by webkar, May 8, 2003.

  1. webkar

    webkar Active Member

    Joined:
    Mar 25, 2002
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Anyone knows how Is it possible to change skin name, owner (reseller) of accounts and Plan name (do not need to change quota etc) for all users from one option to another?

    I think there was a string modification command which was able to change one setting for all users to other.

    Mac
     
  2. xxlwebhosting

    xxlwebhosting Member

    Joined:
    May 12, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    The Netherlands
    Account settings are in /var/cpanel/users/

    For example, you can use this shell script to mass modify the skin setting for all users on a server:


    #!/bin/sh
    OLD=old_skin_name
    NEW=new_skin_name
    shift ; shift
    for file in /var/cpanel/users/*
    do
    sed "s/$OLD/$NEW/g" ${file} > ${file}.new
    /bin/mv ${file}.new ${file}
    done


    Don't forget to give this script to right permissions to be able to run it...

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page