The script provides the prepair of user's environment. This can be used when there is a need of launch the restricted set of applications. I hope that this improves defence of system. This is not the final version. I think that it's better to publish the existing variant on the forum than do not publish at all.

#!/bin/bash
#This is the first script for use after booting with the parameter: pfix=nox,ram
#This script is for starting of use of the place, which the SFS file occupies after booting from the CD.
#Information "size=122000k" is from /etc/mtab
umount -l /dev/loop0 ;
umount -l /initrd/mnt/tmpfs ;
umount -l /initrd/pup_rw ;
#
mount tmpfs /initrd/mnt/tmpfs -t tmpfs -o size=122000k ;

cp --preserve=all -r /usr/bin /archive ;

mv /usr/bin /usr/"bin " ;

mkdir /usr/bin ;

mount --bind /initrd/mnt/tmpfs /usr/bin ;

echo "1"

cp --preserve=all -r /archive/bin/*?* /usr/bin ;

chmod 0755 /usr/bin ;

rm -r /usr/"bin " ;
rm -r /archive/bin ;

echo "2"

_________________

I don't know why laboratories are named a hospitals.

The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum