How to protect the exit from user space in terminal mode

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
postfs1

How to protect the exit from user space in terminal mode

#1 Post by postfs1 »

To reedit up to date.
Last edited by postfs1 on Mon 28 Mar 2016, 00:00, edited 9 times in total.

postfs1

#2 Post by postfs1 »

To reedit up to date.
Last edited by postfs1 on Mon 28 Mar 2016, 00:01, edited 2 times in total.

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#3 Post by amigo »

What is mounted on /dev/loop10?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

cat /etc/inittab | sed -e '2,2d' > /etc/inittab
better avoid, could buggy sed/cat combination empty the target file (sometimes :roll: )

would better use

sed -i "STRING" /path/to_file

or

cat /file |sed "WHATEVER" >/tmp/file
mv -i /tmp/file /file

*

BTW what exit do you mean ? Exit to prompt from Xorg or exit the shell in console mode ?

Post Reply