[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PERMISOLOGIA



Saludos compañeros.

Tengo la siguiente pregunta y no encontré explícitamente en internet nada sobre mi inquietud. Por eso acudo a esta lista de correo; porque si el root crea un fichero dentro del home de un usuario, dicho usuario puede borrar el fichero.


Detalles:

ROOT

[root@portatil] ~
$ touch /home/usuario/fichero

[root@portatil] ~
$ ls -l /home/usuario/fichero
-rw-r--r-- 1 root root 0 mar 27 15:03 /home/usuario/fichero

USUARIO

[usuario@portatil] ~
$ id
uid=1000(usuario) gid=1000(usuario) grupos=1000(usuario),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),105(scanner),110(bluetooth),112(netdev)

[usuario@portatil] ~
$ ls -l fichero
-rw-r--r-- 1 root root 0 mar 27 15:03 fichero

[usuario@portatil] ~
$ rm fichero
rm: ¿borrar el fichero regular vacío «fichero»  protegido contra escritura? (s/n) s

[usuario@portatil] ~
$ ls -f fichero
ls: no se puede acceder a fichero: No existe el fichero o el directorio



Gracias de antemano !

-- 
Jesus Alexis
+58 0426 xx xx 77



Reply to: