j'ai une étrangeté sur ma machine. Quand je bzip2 des fichiers que seuls
root peut modifier, bzip2 parvient tout de même à effacer le fichier
source après avoir créé le .bz2 :
$ uname -spr
FreeBSD 6.4-RELEASE-p8 i386
$ id
uid=1001(patpro) gid=1001(patpro) groups=1001(patpro),0(wheel)
$ ls -l $(which bzip2)
-r-xr-xr-x 3 root wheel 24960 Dec 6 11:43 /usr/bin/bzip2
$ ls -l fichier_log*
-rw-r--r-- 1 root wheel 11239011 Aug 20 01:55 fichier_log
$ bzip2 fichier_log
$ ls -l fichier_log*
-rw-r--r-- 1 patpro wheel 454646 Aug 20 01:55 fichier_log.bz2
j'ai du rater un truc, mais dans ma tête, ce genre de pirouette n'est
pas possible en l'état.
patpro
--
A vendre : KVM IP 16 ports APC
http://patpro.net/blog/index.php/2008/01/12/133
Le 15-12-2009, patpro ~ patrick proniewski a écrit : > j'ai du rater un truc, mais dans ma tête, ce genre de > pirouette n'est pas possible en l'état.
~ $ ls -ld . drwxr-xr-x 116 asl users 7896 déc. 15 16:25 . ~ $ ls -l proftpd -rwxr-xr-x 1 root root 682744 déc. 15 16:25 proftpd ~ $ bzip2 -9 proftpd ~ $ ls -l proft* -rwxr-xr-x 1 asl users 275398 déc. 15 16:25 proftpd.bz2
Tu peux le lire, tu peux créer proftpd.bz2... Et comme c'est *ton* répertoire, tu peux effacer ce que tu veux dedans.
RAHHH CHUIS BLOND P*TAIN ! oui, bien sûr, le répertoire parent m'appartient...
Je ne devrai pas travailler pendant mes congés. merci,
patpro
-- A vendre : KVM IP 16 ports APC http://patpro.net/blog/index.php/2008/01/12/133
In article <slrnhifao3.paf.asl@citron.cusae.net>,
Arnaud Launay <asl@launay.org> wrote:
Le 15-12-2009, patpro ~ patrick proniewski <patpro@boleskine.patpro.net> a
écrit :
> j'ai du rater un truc, mais dans ma tête, ce genre de
> pirouette n'est pas possible en l'état.