Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I was undoing some changes here on CentOs 6, and I ended up removing all users who had root access, accept for the root user. But then I realized the root login is disabled, and I just disabled root access for the user I am logged into.

Now I can't modify/access really any file.

What can I do from here? Through FTP it just blocks uploading.

share|improve this question
Do you have physical access to PC? Are you using dm-crypt or any other data encryption? Can you change boot device? –  week Nov 8 '13 at 20:40
Actually its my VPS from VMBox.Co so I don't have any physical access.. Am I left to now just re install the entire server? –  Travis Nov 8 '13 at 20:41
Did you tried single user mode? –  week Nov 8 '13 at 20:43
I don't know how to exactly boot into single user mode, I connect through SSH using putty. –  Travis Nov 8 '13 at 20:45
You need to have access to terminal through some KVM solution. –  week Nov 8 '13 at 20:46
show 3 more comments

1 Answer 1

up vote 0 down vote accepted

You may login as root by editing Grub configuration on system boot, manual @ centos.org and login in single user mode, then you simply change what you need.


Use KVM (solution in this case) :)

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.