#1 (permalink)  
Old 01-18-2008, 06:15 PM
Registered User
 
Join Date: Sep 2003
Location: UK, Luton
Posts: 197
JamesSmith
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-21-2008, 01:13 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
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
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-21-2008, 04:12 PM
Registered User
 
Join Date: Sep 2003
Location: UK, Luton
Posts: 197
JamesSmith
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:30 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc