Portal Home > Knowledgebase > Articles Database > Lost all the privilege as the main user?


Lost all the privilege as the main user?




Posted by RedRedGiant, 08-10-2013, 04:40 PM
Hi, I have a VPS with Intel XeonCPU E3-1270 V2 @ 3.50GHz running on OpenVZ Webuzo + nginx I used to edit cronjobs or other files as the main user via SSH. But it seems that I've lost all the privilege after restarting MySQL to fix a sudden CPU usage spike. I get these errors when opening, accessing or saving files: And when I run crontab -e and crontab -l, they return nothing. They just show: Not sure if it has anything to do with me restarting the server, httpd, and MySQL. What should I do to get back the privilege back to the main user? Thanks in advance!

Posted by Eased, 08-10-2013, 05:01 PM
Sorry, but your on a $ prompt? Are you logged into a privileged user? The shell should show a # sign. Seems like your logged into the username "user" which is not a root account. Try: su - root

Posted by RedRedGiant, 08-10-2013, 05:50 PM
Thanks for your response. I'll try it tomorrow. I usually logged in as root and then changed to the main user with "sudo su user". The sign was still #. I could edit files or crontabs in the home directory without any problem. So it's kinda weird that the main user can't do the same things anymore and the sign has now become $. I suspect it has something to do with mysql because that is the only thing I touched today

Posted by valley, 08-12-2013, 03:59 AM
It seems you are logged in as the "user" and your current location is /root. You are allowed to write contents to /home/user and not /root if you are logged in as the "user". Possibly your CRON service is not responding for some reason. Re-installing the service will be a quick fix. Cheers \m/



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Anybody at Eleven2? (Views: 707)

Language: