The line should look like this: #auth required pam_succeed_if.so user != root quiet_success Type “#” at the beginning of the following line to prevent the system from blocking access to the root desktop access: auth required pam_succeed_if.so user != root quiet_success ![]() Type the following command to open the gdm-password file to configure the PAM authentication daemon file and press Enter: sudo nano /etc/pam.d/gdm-password Use the “Ctrl + O” and “Ctrl + X” to save and close the file. ![]() Type the following command to open the Gnome configuration files with the text editor and press Enter: sudo nano /etc/gdm3/nfĪdd the following line to enable root login under the “daemon” section: AllowRoot=true Type the following command to create a backup of the configuration file and press Enter: cp /etc/gdm3/nf /etc/gdm3/ Type the following command to enable the root account and press Enter: sudo passwd rootĬreate a password for the root account and press Enter. To enable access to the Ubuntu desktop with the root user, follow these steps: This guide will teach you the steps to log in as root on your Ubuntu server configured with the desktop environment. Whatever the reason might be, on Ubuntu (if you use the GNOME desktop), you can configure the system to enable the root account and make it available through the sign-in screen. Or you’re comfortable using the root account and want unrestricted access to the device. For instance, when you need to set up and test an application that you will later deploy on a server, and you don’t want to install the server version without a desktop since using the GUI makes it easier to work back and forth between the guest operating system and the virtual machine. If it is not working, ask a separate question and provide details with any error messages you get.On Ubuntu, you can access the desktop as the “root” user, but you need to enable the account manually, and in this guide, you will learn how. When installing Ubuntu with the graphical user interface (GUI), the setup disables the root account by default, meaning that you must use the “sudo” command and provide your local account password to run a command with root privileges.Īlthough this is the recommended approach to using the operating system to prevent unwanted changes and improve security, you may still find some situations when logging in a root may be beneficial. If it works you should see your windows files in Ubuntu at /mnt/c/, so Documents and such should be at /mnt/c/Users/your_windows_user/Documents/ and such. I am not sure about access to windows files from ubuntu, it may or may not work once you change users, but, as explained in the link, access is kept separate and windows permissions are not the same as ubuntu permissions. ![]() ![]() "username" is the user you want to run ubuntu as, change as necessary.įrom WINDOWS (cmd) run: C:\> ubuntu config -default-user username I am surprised ubuntu did not set up a non-root user as part of the install.įrom that site, run the following commands on the correct OS: Users, user management, and privilges are discussed at Īlthough the user you are running as is "root" I do not believe the user has administrative rights on windows, not sure about the bash environment, but I personally would change names.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |