"/dev/null" a jeho pristupova prava (offtopic?)
Jan Kasprzak
kas na informatics.muni.cz
Pátek Leden 30 16:58:43 CET 1998
David Rohleder pise:
:
: crw-rw-rw- 1 games games 1, 3 Jan 1 1970 null
:
: Pristupova prava si muze zmenit root, ikdyz nevim na co by to bylo.
: Vlastnika si muze zmenit taky.
To by delat nemel. Co kdyz nejaky zly proces bezici jako user
games da chmod 600 /dev/null? Nepobezi ti treba alokace pameti, pokud
to program dela pres mmap("/dev/zero") a tak podobne. Pokud nejaky program
potrebuje jina prava nez (root.root,0666) na /dev/null, je nutne mu vytvorit
jeho vlastni zarizeni (treba lpd, ktery by mel mit pro kazdou nelokalni
frontu samostatny null).
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
|| I find that the algol60 interpreter, teco and jclsh (ibm JCL emulator ||
|| shell) are very good for teaching people that computing has moved on. ||
|| -- Alan Cox in redhat-devel ||
Další informace o konferenci Linux