i want to know how to change the user name of my root account from root to xyz.
Also I want to know how to remove the option of boot into rescue mode from grub option at the boot time.
|
To secure your machine from unwanted root access we can disable the discovery root terminal in Grub2 by uncommenting the following line in
Note: To avoid security issues by editing GRUB2 entries while booting we may also want to restrict access to Grub boot menu by setting To take effect we also want to run the following command:
This will not prevent booting into a root environment with a live CD. Therefore we also need to disable CD-ROM, Network or USB booting features in BIOS. To prevent BIOS changes we also need a password for BIOS access, and a hardware lock for your case to prevent resetting BIOS on your motherboard. In addition your harddisk may have to be encrypted in case your hardware gets stolen.
|
||||
...then run |
|||||||||
|
Renaming the root accountNOT RECOMMENDED But if you really want to, use Securing console access
What this does (assuming we have truly secured the BIOS and Grub) is reduce the attack surface to the physical security of the PC (i.e. break the case lock) and the security of Ubuntu when it’s online. The goal is to make it so someone can’t walk up to the PC, reboot it, go into single-user mode, give themselves root access, and then walk away — all in under a minute. Even if you are running full-disk encryption (yet still booting the kernel + initrd off of the PC hard drive), all these steps can still be a good idea, since it is trivial to perform the same attack in order to add a keylogger to the initrd that will sniff the encryption passphrase. |
|||
|
|
Changing the root username is NOT recommended - you are likely to break your install messing around as root. For a definition of root and it's privileges see this article - and the reasons for not changing it are on this Ubuntu Forums Thread. |
|||
|
|
root. This will break things. – The Lord of Time Apr 19 '12 at 23:12