Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Lightbulb Username Prefix

    Hi,

    Is it possible to add a prefix to account user names WHM creates?

    I want a number added to the start of all new user names, with the ability to change the value per server.

    So one server has the prefix 1, another 2 etc ...

    For example, a user name of an account would be: 1fred

    There is a something in WHM Basic setup, "Home Directory Prefix", but I don't think this is what I'm after. As it refers to the home directory location and not the user name itself.
    Regards,
    James Smith
    UH Hosting Ltd

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by JamesSmith View Post
    Hi,

    Is it possible to add a prefix to account user names WHM creates?

    I want a number added to the start of all new user names, with the ability to change the value per server.

    So one server has the prefix 1, another 2 etc ...

    For example, a user name of an account would be: 1fred

    There is a something in WHM Basic setup, "Home Directory Prefix", but I don't think this is what I'm after. As it refers to the home directory location and not the user name itself.
    In a cPanel environment, usernames cannot begin with a number. However, you may be interested in reading the documentation for our /scripts/postwwwacct at:

    http://www.cpanel.net/support/docs/hooks.htm#postwww

  3. #3
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Default

    Not what I'm after I'm afraid.

    Here's why I need it:

    We want to move MySQL off our servers and onto a separate cluster of MySQL only servers. We need the username prefix for two reasons:

    1) So we can identify on the MySQL cluster which usernames / databases are from which individual cPanel servers
    2) We will then only need to use one instance of MySQL (within a cluster of multiple servers). Running one MySQL instance across multiple cPanel serves is dangerous, as it opens up the potential of duplicate usernames, in its present form

    Web Server One could have a username of "website" but its likely other servers will have the same usernames, creating problems with MySQL usernames and databases conflicting.

    If we could add a prefix on the username, unique per server, this would remove this problem and we could properly remove MySQL onto separate servers for our cPanel servers.
    Regards,
    James Smith
    UH Hosting Ltd

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 12-20-2010, 07:46 AM
  2. www prefix problems
    By dave7802 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-09-2010, 09:33 AM
  3. Replies: 2
    Last Post: 02-03-2006, 04:23 PM
  4. www prefix
    By es2003 in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 05-10-2003, 12:37 AM
  5. WWW Prefix
    By DirectNetz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-27-2003, 02:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube