Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to virtualize an Ubuntu machine using VMWare vCenter Converter, but ran into permissions issues. I followed the instructions of part 1 and 2 on this page but when I got to "For Ubuntu operating systems further configuration is needed" I started running into trouble. I'm decent at Linux, but I'm not an experienced sysadmin.

  • How do I Target the specific user you will be using and assign it user id 0/group 0?
  • How do I Ensure that you also still enable Allow root to ssh even though you are not using the root account?

Thanks for your help.

share|improve this question
    
I'm not sure what exactly they're doing, but I think they are suggesting that you make a new account with uid 0 and pretending that it's not a root account (any account with uid 0 is root, no matter what you name it) –  DerfK Dec 5 '12 at 3:37
    
@DerfK can I have 2 root accounts? That won't mess anything up? –  Jeremy Holovacs Dec 5 '12 at 3:38

1 Answer 1

up vote 1 down vote accepted

How do I Target the specific user you will be using and assign it user id 0/group 0?

Don't assign the user id or group id 0 to the user you are targeting. Add the user to /etc/sudoers as specified. Then flag that sudo will be uses also as documented. sudo will be used to run command as root (user id 0, group 0) when needed.

How do I Ensure that you also still enable Allow root to ssh even though you are not using the root account?

This is controlled in the file /etc/ssh/sshd_config. If keys are used for logins, then you need a line like:

PermitRootLogin without-password
share|improve this answer
    
This seems to work, thanks. –  Jeremy Holovacs Dec 5 '12 at 12:18

Your Answer

 
discard

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.