When modifying a particular account under Modify Account, the following error occurs when saving:
"Unable to fetch the cPanel user file for username"
Any advice?
When modifying a particular account under Modify Account, the following error occurs when saving:
"Unable to fetch the cPanel user file for username"
Any advice?
Please log into root SSH on the machine and do the following:
Here replace username with the cPanel username. The correct permissions on the file should look like the following:Code:cd /var/cpanel/users ls -lah username cat username
Additionally, inside the file, the USER=username entry should have the username of that user. Some 3rd party plugins modify the username by appending .sometext to the end of the username. This can cause cPanel to be unable to read the user's file.Code:-rw-r----- 1 root username 596 Jun 8 14:03 username
If the file does not exist at all, then there would be an issue. You can cat the contents of another user's file in that location to see what it looks like and then copy that to create a new file for that user, modifying the contents to correspond to the right settings for that user.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
Perfect, thanks! The USER= actually referenced an old username for this user.
Was the username changed when transferring the account from one machine to another? I ask as we have an internal case (50545) about the USER= line not changing on transferring an account to a new machine even though everything else does change.
Please ensure to run this command as well now that you've corrected the USER= line in the /var/cpanel/users/username file:
Code:/scripts/updateuserdomains
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
The account was transferred from another cPanel box. I believe the username was changed on the old machine, and then moved. But it wasn't changed as part of the moving process.
Tristan, can you comment on why some plugins would change the details in the USER field? Do you know off hand which plugins do this? Today we had the same problem and it seems the username had been appended with some random text.
I found this thread Googling for the same problem. I migrated some accounts from Plesk/Ensim. All those files have lines like "site7.3ZxffrK8JZKdAJXObKIWWCmYHmayK87O".
I'll correct all the usernames, and then run /scripts/updateuserdomains. That should be sufficient?
I'm having the same issue, in this case it's a server thas was migrated from an older cPanel server. It's a cPanel to cPanel migration that was done 23th and 24th October 2010, i don't know the exact cPanel version but i know it had latest Release version, cPanel
Most or all accounts in that server are having this problem, editing manually each file doesn't seem confortable.
Note: After checking migration logs in /var/cpanel/logs i found the following
PHP Code:<title>Web Host Manager 11.26.20 - Copy an account from another server</title>
i am also having the same issue, & this account was not transferred from another cPanel box
i did follow mentioned steps
-bash-3.2# cd /var/cpanel/users
-bash-3.2# ls -lah username
ls: username: No such file or directory
-bash-3.2# ls -lah xxxxx
-rw-r----- 1 root sglobal 666 Sep 9 17:54 sglobal
-bash-3.2# cat sglobal
# cPanel -- If you edit this file directly you must run /usr/local/cpanel/script
s/updateuserdomains afterwards to rebuild the system caches.
# If you edit MAX_EMAIL_PER_HOUR or MAX_EMAIL_PER_HOUR-[domain] you must run /us
r/local/cpanel/scripts/update_email_limits
BWLIMIT=2097152000
CONTACTEMAIL=info@xxxxxxxx.net
CONTACTEMAIL2=
DBOWNER=sglobal
DEMO=0
DNS=xxxxxxxxxxx.in
FEATURELIST=default
HASCGI=0
IP=69.xx.xxx.18
LANG=en
LOCALE=english
MAXADDON=0
MAXFTP=1
MAXLST=1
MAXPARK=0
MAXPOP=2
MAXSQL=1
MAXSUB=1
MTIME=1315524461
MXCHECK-xxxxxxxxxxx.in=0
OWNER=jinfo
PLAN=100MB_2pop
RS=x3
STARTDATE=1289823427
USER=yyyyyy
notify_disk_limit=
notify_email_quota_limit=
-bash-3.2#
Last edited by crazyaboutlinux; 09-10-2011 at 02:13 AM.
The username (sglobal) for the file you opened is different than the USER= line in that same file:
Do you see how those don't match?Code:USER=sunshine
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket