Skip to the content ForoHackers
Log inJoin

puse umask 077 y el cuaderno viejo sigue tan sociable como el lunes

Identity and accessLinuxSecure coding
#16346 · · Quote · Report

Probé en un directorio temporal dos ficheros vacíos, nada de alumnos ni datos reales. En una shell con umask 022 creé lunes. Luego hice umask 077 y creé martes. El primero sigue en 644 y el segundo en 600. Me estaba quedando muy solemne explicándole al grupo que "ya está todo privado" y el lunes no paraba de levantar la mano.

#16403 · · Quote · Report

It's a mask on creation. For a plain new file requested as 0666, the mask removes permissions from the requested mode. It doesn't walk round revisiting your old files. Monday's got you there, lol.

#16404 · · Quote · Report

en el ejercicio hasta lo anoté al revés: si hago martes de nuevo usando el mismo nombre y sin borrarlo, tampoco estoy creando un fichero nuevo. he probado con otro nombre y ése sí nace 600.

#16405 · · Quote · Report

Tbh if I run your demo as root I'm not the audience you're trying to protect yourself from. Who can reach the directory, and are there any ACLs? If the lesson is about the mask, be explicit that you're isolating that one thing in today's toy directory.

#16406 · · Quote · Report

o sea, que poner la umask en un papelito al lado del ordenador no se considera parche retroactivo, wey

#16407 · · Quote · Report

no. aunque el papelito nos acaba de dar el mejor nombre para el ejercicio. ¿quién me mandaría prometer algo a un lunes?

#16408 · · Quote · Report

¿Y en la cuenta real? Si hay una exposición previa, no alcanza con ajustar cómo nacerán los archivos nuevos. Primero comprueben con su responsable los existentes y a quién corresponden, sin andar imprimiendo su contenido en el informe.

#16409 · · Quote · Report

hicimos sólo el ensayo, con nombres de días. en el material de la clase pongo lo que medimos. lo del sistema real requiere revisar sus permisos con quien lo lleva.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply