The time now is Mon 20 May 2013, 07:48
All times are UTC - 4 |
| Author |
Message |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Mon 21 Feb 2011, 11:29 Post subject:
How to protect the exit from user space in terminal mode Subject description: Operating System: "Quirky Linux - 1.40" |
|
Variant of using of the operating system: booting from the CD into RAM.
Using of the shown scheme can cause the problems in the system. >>>
[1] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
Parameters of booting:
puppy parameter-1 parameter-2 parameter-* pfix=nox,ram
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[2] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command:
will ask you to input a new password for user "root"
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[3] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command:
will ask you to input a new password for user "spot"
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[5] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command:
| Code: |
cat /etc/inittab | sed -e '2,2d' > /etc/inittab
|
will delete in the file "inittab" the following line:
| Quote: |
tty1::respawn:/sbin/getty -n -l /bin/autologinroot 38400 tty1
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[6] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command:
will delete "tty1" file
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[7] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command:
will lock the command window
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[8] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
Pushing onto the "Alt" button and retention of pressure.
Pushing onto the "F2" button, and then, the dismission of these two buttons.
Now, tty2 is in your disposal and you can enter into the user space.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
[9] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
| Code: |
ln -s /dev/loop10 /dev/tty1
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
<<< Using of the shown scheme can cause the problems in the system.
= = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = =
Question:
What is mounted on /dev/loop10?
Answer:
I don't have such an information which will give the knowledge.
_________________
- 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.
Last edited by postfs1 on Fri 18 May 2012, 17:34; edited 8 times in total
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Thu 15 Sep 2011, 14:55 Post subject:
How to protect the exit from user space in terminal mode Subject description: Version - 2 ; Operating System: "Quirky Linux - 1.40" |
|
Variant of using of the operating system: booting from the CD into RAM.
START
[1] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
Parameters of booting:
puppy parameter-1 parameter-2 parameter-* pfix=nox,ram
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
[2] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a set of commands --->
| Code: | rm /bin/autologinroot ; echo '#!/bin/bash' > /bin/autologinroot ; echo "/sbin/getty 38400 tty1" >> /bin/autologinroot ; chmod 0100 /bin/autologinroot
|
<---
will give a new door
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
[3] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command --->
<---
will give a new situation
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
[5] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command --->
<---
will ask to input a new password for user "spot"
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
[6] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command --->
<---
will ask to input a new password for user "nobody"
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
[7] :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>: :>:
execution of such a command --->
<---
will ask to input a new password for user "root"
|= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =|
FINISH
---------------------------------------------------------------------------------------
|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|-<>-|
---------------------------------------------------------------------------------------
-----------------------------------------or-----------------------------------------
| Code: |
#!/bin/bash
rm /bin/autologinroot ;
echo "#!/bin/bash" > /bin/autologinroot ;
echo '/sbin/getty 38400 tty1' >> /bin/autologinroot ;
chmod 0100 /bin/autologinroot ;
sleep 0.5s ;
echo 'Now, use such a command: kill -9 `pidof sh`'
|
= = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = =
Questions:
BTW what exit do you mean ? Exit to prompt from Xorg or exit the shell in console mode ?
Answer:
exit the shell in console mode
_________________
- 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.
Last edited by postfs1 on Fri 18 May 2012, 17:26; edited 1 time in total
|
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 1757
|
Posted: Fri 18 May 2012, 12:42 Post subject:
|
|
What is mounted on /dev/loop10?
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Fri 18 May 2012, 15:54 Post subject:
|
|
| Quote: | | cat /etc/inittab | sed -e '2,2d' > /etc/inittab |
better avoid, could buggy sed/cat combination empty the target file (sometimes )
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 ?
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|