¿Cómo a la conexión a Ubuntu como usuario de la raíz?

Ocasionalmente donde Linux proporciona un ambiente seguro y sano para los usuarios, hace otras cosas complicadas aún más e intrincadas. A pesar de ser un sistema operativo tan de uso fácil, no es ése fácil a la conexión a Ubuntu como usuario de la raíz.

El usuario de la raíz tiene todos los privilegios del administrador tan siempre que usted necesite corregir ficheros del sistema o la configuración dentro del gnomo, usted sentirá la conexión de la necesidad a Ubuntu como usuario de la raíz. Pero la pregunta es aquí está “cómo a la conexión a Ubuntu como usuario de la raíz?”

Apenas siga los pasos abajo:

  1. Abra el terminal y el tipo:
    raíz del passwd del sudo
  2. Cuando usted la ve que el aviso que dice “incorpore la nueva contraseña del UNIX”, incorpore la contraseña que usted desea para el usuario de la raíz y confirma.
  3. Tipo:
    gedit /etc/X11/gdm/gdm.conf del sudo
  4. Localice la línea que dice “AllowRoot=false”. Cambíelo a “AllowRoot=true”.
  5. Excepto el archivo
  6. Salga del gedit, registro de estado de la máquina y después reanúdelo.

Utilicé el mismo método cuando deseé a la conexión como el usuario de la raíz para corregir los archivos de la configuración de mis gráficos card y todo trabajó grande. Sin embargo la única edición en este caso es ésa registrando a Ubuntu pues la raíz usted está haciendo su sistema operativo más vulnerable.

Para los usuarios de Ubuntu se recomienda para utilizar la cuenta de la cual crearon el época instalan y utilizan el comando del “sudo” mientras que en terminal de ejecutar comandos como usuario de la raíz.

  • Bad bad bad idea, really.

    Never run X with root's power, there isn't a reason to do that. Si usted necesita configurar algo como sudo del uso de la raíz-raíz correctamente: “sudo - i”
  • Mike
    Aggree I que usted no debe conexión a X como raíz. Pero el estilo de Ubuntu para utilizar sudo es mala mala idea muy mala también. Si usted conexión que usa al usuario que tiene derechas del sudo él es siempre aún más peligroso que a la conexión como raíz.
  • Michael
    Usted dice corregir el archivo de gdm.conf para permitir la conexión de la raíz. Pozo usted puede corregir “los ajustes de la ventana de la conexión” bajo sistema > Menú de administración usted para hacer esto más fácil. Bajo lengüeta de la “seguridad” permita “permiten la conexión local del administrador de sistema”.
  • jefe
    Convengo con la idea de Michael
    It worked.
  • Matthew
    Actually thanx a lot Michael...my linux system stuck and I couldn't install nothing...now its cool :D
  • jason
    I tried this but sudo gedit /etc/X11/gdm/gdm.conf just opens a blank page with no text ???
  • r jesse
    hi Jason
    i tried sudo gedit /etc/X11/gdm/gdm.conf and it didnt work for me either! BUT: there is a better way to just do that! guess what: go to prompt and type:

    $locate gdm.conf

    where you will get something like:

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

    to me the above was my output.

    this gives you a whole lots of locations where files with name *like* gdm.conf can be found. THIS IS THE 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:

    sudo gedit /etc/gdm/gdm.conf

    ..there we r...

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

    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. Under the “Security” tab enable “Allow local system administrator log in”.
  • 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. 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. 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.

    While I know only a little myself, being a fairly new user, I went and tried tried the first fix before forming my opinion! 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?

    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. Very strange, but that's how it works.
  • 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).
  • this is cool man
  • ihateubuntu
    sudo: gedit: command not found
blog comments powered by Disqus