View previous topic :: View next topic |
Author |
Message |
rzezioo Apprentice


Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
|
Back to top |
|
 |
noobah Apprentice


Joined: 11 Apr 2005 Posts: 210 Location: Ustonie Morskie, Poland
|
Posted: Mon Apr 11, 2005 5:42 pm Post subject: |
|
|
konkretniej proszę, czy chodzi tylko o komendę reboot, czy kombinację ALT+CTRL+DEL ? _________________ the force is strong with me |
|
Back to top |
|
 |
arach Tux's lil' helper


Joined: 22 Jan 2005 Posts: 92 Location: Between the Moon and a star
|
Posted: Mon Apr 11, 2005 6:00 pm Post subject: |
|
|
najpewniej oba _________________ ble!  |
|
Back to top |
|
 |
rzezioo Apprentice


Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
|
Back to top |
|
 |
lysek n00b


Joined: 10 May 2004 Posts: 57
|
Posted: Wed Apr 13, 2005 1:34 am Post subject: |
|
|
man chmod/chown  _________________ home: w budowie
gg: 4099964 |
|
Back to top |
|
 |
arsen Bodhisattva


Joined: 10 Apr 2004 Posts: 1803 Location: Siemianowice Śląskie, Poland
|
Posted: Wed Apr 13, 2005 5:28 am Post subject: |
|
|
poczytaj sobie o app-admin/sudo |
|
Back to top |
|
 |
grzewho l33t


Joined: 31 Dec 2002 Posts: 626 Location: /home/g
|
Posted: Thu Apr 14, 2005 9:03 pm Post subject: |
|
|
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 |
|
 |
psycepa Veteran


Joined: 27 Dec 2004 Posts: 1637 Location: Poland
|
Posted: Thu Apr 14, 2005 9:24 pm Post subject: |
|
|
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 |
|
 |
grzewho l33t


Joined: 31 Dec 2002 Posts: 626 Location: /home/g
|
Posted: Thu Apr 14, 2005 9:54 pm Post subject: |
|
|
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 |
|
 |
kontomen Tux's lil' helper

Joined: 17 Feb 2005 Posts: 87 Location: /places/Poland/Poznan
|
Posted: Fri Apr 15, 2005 12:37 am Post subject: |
|
|
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 |
|
 |
marwooj n00b

Joined: 21 Jun 2003 Posts: 71
|
Posted: Fri Apr 15, 2005 9:31 am Post subject: |
|
|
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 |
|
 |
kontomen Tux's lil' helper

Joined: 17 Feb 2005 Posts: 87 Location: /places/Poland/Poznan
|
Posted: Fri Apr 15, 2005 7:40 pm Post subject: |
|
|
No to można napisać prościutki programik w C : Code: | int main(void) {
exec('shutdown -r now');
return 0;
} |
P.S. Jeśli ignoruje bit SUID to zawsze jest sudo... Zresztą to nawet jest bardziej eleganckie rozwiązanie... |
|
Back to top |
|
 |
|