Imutable bit
Pavel JANIK ml.
pjanik na aida.inet.cz
Středa Červenec 30 18:46:03 CEST 1997
> chtel by se zeptatna dve veci. Pouziva pod Linuxem immutable bit ? Jak
>se vubec da pouzit ;-)
Jsem jediny kdo pouziva immut. bit ???
Pokud ma soubor Immutable bit nastaven, neni mozne jej modifikovat ani
smazat (ten soubor, ne bit :-). K vylistovani atributu slouzi prikaz lsattr,
ke zmene chattr.
Priklad pouziti:
$ ls -al start_plip
-rwx------ 1 weed student1 168 Jul 16 19:46 start_plip
$ lsattr start_plip
lsattr 1.04, 16-May-96 for EXT2 FS 0.5b, 95/08/09
------- start_plip
# chattr +i start_plip
chattr 1.04, 16-May-96 for EXT2 FS 0.5b, 95/08/09
$ lsattr start_plip
lsattr 1.04, 16-May-96 for EXT2 FS 0.5b, 95/08/09
----i-- start_plip
$ >start_plip
bash: start_plip: Permission denied
$
Tedy do souboru nemuze zapisovat ani vlastnik, dokonce ani superuzivatel -
dukaz najdete na
http://www.math.muni.cz/cgi-bin/LSD?Version=2.1.47&File=fs/ext2/acl.c
(:-)) A zase ta reklama....)
PJ
--
############################################################################
# #
# Pavel.JANIK na INET.cz #
# arch/sparc/kernel/smp.c: and now Pavel.JANIK na SHOP.cz #
# #
# printk("Entering SparclinuxMultiPenguin(SMP) Mode...\n"); #
# printk("Penguin %d is stuck in the bottle.\n", i); #
# #
# PGP Public Key - http://www.inet.cz/~pjanik/ #
# Top URL - http://www.math.muni.cz/cgi-bin/LSD #
############################################################################
Další informace o konferenci Linux