Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
public:wipeliveserver [2019/03/13 17:00] – code preview Nicopublic:wipeliveserver [2019/03/14 11:01] – don't mess with host's files Nico
Line 33: Line 33:
 #cp -vrp /etc/passwd* /etc/shadow* /etc/group* /etc/shells /tmp/tmproot/etc/ #cp -vrp /etc/passwd* /etc/shadow* /etc/group* /etc/shells /tmp/tmproot/etc/
 cp -vrp /etc/* /tmp/tmproot/etc/ cp -vrp /etc/* /tmp/tmproot/etc/
-echo "" > /root/.bash_history +echo ""/tmp/tmproot/root/.bash_history 
-echo "TERM=xterm-16color" >>.profile+echo "TERM=xterm-16color" >>/tmp/tmproot/root/.profile
 mount --make-rprivate / # necessary for pivot_root to work mount --make-rprivate / # necessary for pivot_root to work
 pivot_root /tmp/tmproot /tmp/tmproot/oldroot pivot_root /tmp/tmproot /tmp/tmproot/oldroot