確認する。
/mnt/ram/tmp # mkdir test_dir /mnt/ram/tmp # chmod 1777 test_dir /mnt/ram/tmp # touch test_file /mnt/ram/tmp # chmod 4777 test_file /mnt/ram/tmp # ls -ld test_dir test_file drwxrwxrwt 2 root root 40 Mar 9 23:35 test_dir -rwsrwxrwx 1 root root 0 Mar 9 23:35 test_file /mnt/ram/tmp # tar zcvf test.tar.gz test_dir test_file test_dir/ test_file /mnt/ram/tmp # tar ztvf test.tar.gz drwxrwxrwt 0/0 0 2007-03-09 23:35:39 test_dir/ -rwsrwxrwx 0/0 0 2007-03-09 23:35:47 test_file /mnt/ram/tmp # rm -fr test_dir test_file /mnt/ram/tmp # tar zxvf test.tar.gz test_dir/ test_file /mnt/ram/tmp # ls -ld test_dir test_file drwxr-xr-t 2 root root 40 Mar 9 23:35 test_dir -rwxr-xr-x 1 root root 0 Mar 9 23:35 test_file /mnt/ram/tmp #あかん。
|
← debian 簡単インストール(3)再インストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ パーミッションを落とさない tar |