Advertisement
v1ral_ITS

archivemount [ edit files inside a tar package ]

Aug 10th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. [root@f20 ~]# tar czf /tmp/ul137194.tar.gz -C / /etc/passwd /etc/group /etc/shells
  2. [root@f20 ~]# mkdir /tmp/ul137194
  3. [root@f20 ~]# archivemount /tmp/ul137194.tar.gz /tmp/ul137194
  4. [root@f20 ~]# find /tmp/ul137194
  5. [root@f20 ~]# rm /tmp/ul137194/etc/shells
  6. [root@f20 ~]# echo nogroups > /tmp/ul137194/etc/group
  7. [root@f20 ~]# umount /tmp/ul137194
  8. [root@f20 ~]# tar xzf /tmp/ul137194.tar.gz -C /tmp/ul137194
  9. [root@f20 ~]# find /tmp/ul137194
  10. [root@f20 ~]# cat /tmp/ul137194/etc/group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement