Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] haslo na reboot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
rzezioo
Apprentice
Apprentice


Joined: 02 Nov 2004
Posts: 260
Location: Szczecin, Poland

PostPosted: Mon Apr 11, 2005 5:06 pm    Post subject: [OT] haslo na reboot Reply with quote

czy system da sie w jkais sposob zabezpieczyc haslem przed zrebootowaniem??
_________________
USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg
Back to top
View user's profile Send private message
noobah
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 210
Location: Ustonie Morskie, Poland

PostPosted: Mon Apr 11, 2005 5:42 pm    Post subject: Reply with quote

konkretniej proszę, czy chodzi tylko o komendę reboot, czy kombinację ALT+CTRL+DEL ?
_________________
the force is strong with me
Back to top
View user's profile Send private message
arach
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2005
Posts: 92
Location: Between the Moon and a star

PostPosted: Mon Apr 11, 2005 6:00 pm    Post subject: Reply with quote

najpewniej oba
_________________
ble! :P
Back to top
View user's profile Send private message
rzezioo
Apprentice
Apprentice


Joined: 02 Nov 2004
Posts: 260
Location: Szczecin, Poland

PostPosted: Mon Apr 11, 2005 6:20 pm    Post subject: Reply with quote

no kazdy sposob. zeby po prostu bez podania hasla nie dalo sie zrebootowac kompa
_________________
USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg
Back to top
View user's profile Send private message
lysek
n00b
n00b


Joined: 10 May 2004
Posts: 57

PostPosted: Wed Apr 13, 2005 1:34 am    Post subject: Reply with quote

man chmod/chown :D
_________________
home: w budowie
gg: 4099964
Back to top
View user's profile Send private message
arsen
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 1803
Location: Tychy, Poland

PostPosted: Wed Apr 13, 2005 5:28 am    Post subject: Reply with quote

poczytaj sobie o app-admin/sudo
Back to top
View user's profile Send private message
grzewho
l33t
l33t


Joined: 31 Dec 2002
Posts: 626
Location: /home/g

PostPosted: Thu Apr 14, 2005 9:03 pm    Post subject: Reply with quote

a tak z ciekawości to jak chmod/chown czy nawet sudo da radę z ctrl-alt-del ?
_________________
Code:
USE="freedom -software_patents" emerge --deep --update world
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Thu Apr 14, 2005 9:24 pm    Post subject: Reply with quote

grzewho wrote:
a tak z ciekawości to jak chmod/chown czy nawet sudo da radę z ctrl-alt-del ?


nie jestem pewien jak to jest z chmod/chown i sudo, wiem ze aby pozbyc sie ctrl+alt+del ale tak dla wszystkich:) wystarczy w zdaje sie /etc/inittab zmienic linijke:

Code:

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now


i zmienic /sbin/shutdown na np /dev/null czy cos w ten desen :)
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
grzewho
l33t
l33t


Joined: 31 Dec 2002
Posts: 626
Location: /home/g

PostPosted: Thu Apr 14, 2005 9:54 pm    Post subject: Reply with quote

dobra dobra. to żadna nowość, powiedz jak przyblokować to hasłem. ciekawy topic btw
_________________
Code:
USE="freedom -software_patents" emerge --deep --update world
Back to top
View user's profile Send private message
kontomen
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2005
Posts: 87
Location: /places/Poland/Poznan

PostPosted: Fri Apr 15, 2005 12:37 am    Post subject: Reply with quote

Możesz
Code:
# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now

zmienić na jakiś swój skrypcik np.:
Code:
# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/skrypcik.sh
.
W 'skrypcik.sh' możesz napisać:
Code:
#!/bin/sh
shutdown -r now
i dać skrypcikowi bit SUID albo dopisać linijkę w sudo...
Back to top
View user's profile Send private message
marwooj
n00b
n00b


Joined: 21 Jun 2003
Posts: 71

PostPosted: Fri Apr 15, 2005 9:31 am    Post subject: Reply with quote

kontomen wrote:
Możesz
Code:
# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now

zmienić na jakiś swój skrypcik np.:
Code:
# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/skrypcik.sh
.
W 'skrypcik.sh' możesz napisać:
Code:
#!/bin/sh
shutdown -r now
i dać skrypcikowi bit SUID albo dopisać linijkę w sudo...


Sorcia ale linux ignoruje bit SUID dla skryprów.
_________________
erp |
genetic anticipatory |
Back to top
View user's profile Send private message
kontomen
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2005
Posts: 87
Location: /places/Poland/Poznan

PostPosted: Fri Apr 15, 2005 7:40 pm    Post subject: Reply with quote

No to można napisać prościutki programik w C :D :
Code:
int main(void) {
exec('shutdown -r now');
return 0;
}

:lol: :lol: :lol: :lol: :lol:

P.S. Jeśli ignoruje bit SUID to zawsze jest sudo... Zresztą to nawet jest bardziej eleganckie rozwiązanie...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW All times are GMT
Page 1 of 1

 
Jump to:  
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