How to Login to Ubuntu as Root User? Come accedere a Ubuntu come utente root?

At times where Linux provides a secure and healthy environment for users, it makes other things even more complicated and intricate. In tempi in cui Linux offre un ambiente sicuro e sano per gli utenti, rende le altre cose ancora più complicate e intricate. Despite being such a user-friendly operating system, it is not that easy to login to Ubuntu as a root user. Pur essendo un sistema operativo user-friendly, non è così facile fare il login per Ubuntu come utente root.

Root user has all the administrator privileges so whenever you need to edit system files or configuration from within Gnome, you will feel the need to login to Ubuntu as a root user. Utente root ha tutti i privilegi di amministratore in modo ogni volta che è necessario modificare i file di configurazione di sistema o da dentro Gnome, si sente il bisogno di login di Ubuntu come utente root. But the question is here is "How to login to Ubuntu as a root user?" Ma la domanda è: ecco "Come il login per Ubuntu come utente root?"

Just follow the steps below: Basta seguire la seguente procedura:

  1. Open the terminal and type: Aprire il terminale e digitare:
    sudo passwd root
  2. When you see the prompt that says "Enter new UNIX password", enter the password you want for the root user and confirm it. Quando viene visualizzato il messaggio che dice "Enter new UNIX password", inserire la password che si desidera per l'utente root e confermarla.
  3. Type: Tipo:
    sudo gedit /etc/X11/gdm/gdm.conf
  4. Locate the line that says "AllowRoot=false". Individuare la riga che dice "AllowRoot = false". Change it to "AllowRoot=true". Cambia in "AllowRoot = true".
  5. Save the file Salvare il file
  6. Exit gedit, logout and then reboot. Gedit Exit, il logout e quindi riavviare.

I used the same method when I wanted to login as root user to edit configuration files of my graphics card and everything worked great. Ho usato lo stesso metodo quando ho voluto fare il login come utente root per modificare i file di configurazione della mia scheda grafica e tutto ha funzionato grande. However the only issue in this case is that by logging to Ubuntu as root you are making your operating system more vulnerable. Tuttavia la questione solo in questo caso è che accedendo a Ubuntu come root state facendo il vostro sistema operativo più vulnerabile.

For Ubuntu users it is recommended to use the account which they created on time of install and use the "sudo" command while in terminal to execute commands as root user. Per gli utenti Ubuntu si consiglia di utilizzare l'account che hanno creato il tempo di installare e utilizzare il comando "sudo", mentre in terminale per eseguire comandi come utente root.

  • Bad bad bad idea, really. Bad Bad cattiva idea, davvero.

    Never run X with root's power, there isn'ta reason to do that. Non eseguire X con il potere di root, non è un motivo c'è di farlo. If you need to configure something as root-root use sudo properly: 'sudo -i' Se hai bisogno di qualcosa di configurare come root-root sudo uso corretto: 'sudo-i'
  • Mike Mike
    I aggree that you should not login to X as root. I Taluni che non si deve il login per X come root. But Ubuntu style to use sudo is very bad bad bad idea too. Ma lo stile da utilizzare Ubuntu sudo è molto cattiva cattiva cattiva idea troppo. If you always login using user who has sudo rights it's even more dangerous than to login as a root. Se si utilizza sempre il login utente che dispone dei diritti sudo è ancora più pericoloso il login come root.
  • Michael Michael
    You say to edit the gdm.conf file to allow root log in. Well you can edit the "Log In Window" settings under the System > Administration menu you to do this easier. Lei dice di modificare il file gdm.conf per consentire log root pollici Ebbene si può modificare il registro "nella finestra" Impostazioni sotto il menù Sistema> Amministrazione di fare questo più facile. Under the "Security" tab enable "Allow local system administrator log in". Sotto la scheda "Protezione" attivare "Consenti accesso all'amministratore di sistema locale in".
  • boss boss
    I agree with Michael's idea Sono d'accordo con l'idea di Michael
    It worked. Ha funzionato.
  • Matthew Matthew
    Actually thanx a lot Michael...my linux system stuck and I couldn't install nothing...now its cool :D In realtà Thanx a lot Michael ... il mio sistema Linux bloccata e non ho potuto installare nulla ... ora il suo cool: D
  • jason jason
    I tried this but sudo gedit /etc/X11/gdm/gdm.conf just opens a blank page with no text ??? Ho provato a farlo, ma sudo gedit / etc/X11/gdm/gdm.conf si apre solo una pagina vuota senza testo??
  • r jesse r Jesse
    hi Jason hi Jason
    i tried sudo gedit /etc/X11/gdm/gdm.conf and it didnt work for me either! Ho provato sudo gedit / etc/X11/gdm/gdm.conf e non ha ancora lavorare per me either! BUT: there is a better way to just do that! MA: c'è un modo migliore per fare solo quello! guess what: go to prompt and type: indovinate un po ': andare al prompt e digitare:

    $locate gdm.conf $ locate gdm.conf

    where you will get something like: dove si otterrà qualcosa di simile:

    /etc/gdm/gdm.conf / etc / gdm / gdm.conf
    /etc/gdm/gdm.conf-custom / etc / gdm / gdm.conf-custom
    /etc/gdm/gdm.conf~ / etc / gdm.conf / gdm ~
    ...etc etc ...

    to me the above was my output. per me il precedente era la mia uscita.

    this gives you a whole lots of locations where files with name *like* gdm.conf can be found. questo vi dà un sacco insieme di luoghi in cui i file con il nome di * come * gdm.conf può essere trovato. THIS IS THE FILE WE NEED TO EDIT. QUESTO E 'IL FILE WE NEED TO EDIT.

    you can tell from the listing that the first option is the one we r after (or it depends on your output but look for EXACTLY "gdm.conf" file), so you can go for you gedit command now: remove the /X11/ and type it like: si può dire da questo annuncio che la prima opzione è quella che dopo la R (o dipende dalla vostra uscita, ma cercare esattamente "gdm.conf file"), in modo da poter andare per voi gedit comando ora: rimuovere l'X11 / / e digitare come:

    sudo gedit /etc/gdm/gdm.conf sudo gedit / etc / gdm / gdm.conf

    ..there we r... .. non ci siamo r. ..

    r jesse r Jesse
    Dar. Dar.
  • Sus Sus
    Michael Michael
    April 20, 2008 at 6:51 pm 20 Aprile, 2008 at 6:51

    You say to edit the gdm.conf file to allow root log in. Well you can edit the “Log In Window” settings under the System > Administration menu you to do this easier. Lei dice di modificare il file gdm.conf per consentire log root pollici Ebbene si può modificare il registro "nella finestra" Impostazioni sotto il menù Sistema> Amministrazione di fare questo più facile. Under the “Security” tab enable “Allow local system administrator log in”. Sotto la scheda "Protezione" attivare "Consenti accesso all'amministratore di sistema locale in".
  • Itchyfinger Itchyfinger
    I wish people would get the facts straight before they go bleeting one way or the other on how something impacts Ubuntu system security, because it's important for all users, new and old, to know the straight dope. Vorrei che le persone ottenere i puntini sulle i, prima di andare bleeting un modo o l'altro su come effetti qualcosa di sicurezza del sistema Ubuntu, perché è importante per tutti gli utenti, vecchi e nuovi, di conoscere la Straight Dope. Not only do they need it explained in non-superstitious terms what they can and can't do while logged in as user or root, but they need better justification for the restrictions in play. Non solo ne hanno bisogno spiegato in termini non superstiziosi che cosa possono e non possono fare mentre si è connessi come utente o di root, ma hanno bisogno di una migliore giustificazione per le restrizioni in gioco. It takes this sort of review process to perfect a system, and the perfect system is NOT the most secure one - fact is that the most secure system is also the most useless. Ci vuole questo tipo di processo di revisione di perfezionare un sistema, e il sistema perfetto non è quello più sicuro - fatto è che il sistema più sicuro è anche la più inutile.

    While I know only a little myself, being a fairly new user, I went and tried tried the first fix before forming my opinion! Mentre io conosco solo un po 'me stesso, essendo un utente abbastanza nuovo, sono andato e provato provato la correzione prima di formare la mia opinione! The result is that I no longer get some asinine hassle when I want to browse partitions which are BY DEFAULT less security-sensitive than my system partition, and since you don't need root priveleges to write to your system partitions in Ubuntu (not so with other distros), Then I want to know what were you Ubuntu Engineers thinking in making an issue of browsing secondary partitions? Il risultato è che non ho più ottenere alcuni problemi asinino quando voglio navigare le partizioni che sono da meno sicurezza sensibili che la mia partizione di sistema di default, e poiché non hai bisogno di privilegi di root per scrivere le partizioni di sistema in Ubuntu (non così con altre distro), quindi voglio sapere che cosa stavi pensando Engineers Ubuntu a fare un problema di partizioni di navigazione secondaria?

    Anyway, despite being able to browse your own files while logged in as root, you still can't change your system files without the sudo command - I tried that, and it won't let me. In ogni caso, pur essendo in grado di navigare i propri file mentre si è connessi come root, non è ancora possibile modificare i file di sistema senza il comando sudo - che ho provato, e non me lo permette. Very strange, but that's how it works. Molto strano, ma è così che funziona.
  • Itchyfinger Itchyfinger
    In summary (see above), total write-access does not exist any more (or any less) between a logged-in user and logged-in root user without the use or the sudo command, and then the only thing which non-root-user-status can make particularly difficult is access to partitions not containing his system (unless of course the system is on a separate partition from his home directory). In sintesi (vedi sopra), il totale accesso in scrittura non esiste più (o meno) tra un utente collegato e connesso in come utente root senza l'uso o il comando sudo, e quindi l'unica cosa che non-root -user-status può rendere particolarmente difficile è l'accesso alle partizioni non contengono il suo sistema (a meno che, naturalmente, il sistema si trova in una partizione separata dalla sua home directory).
blog comments powered by Disqus commenti del blog powered by Disqus