Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] halt/reboot/poweroff z poziomu zwykłego użytkownika
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)
View previous topic :: View next topic  
Author Message
master66
n00b
n00b


Joined: 27 Mar 2008
Posts: 36
Location: Kraków

PostPosted: Sat Sep 06, 2008 5:58 pm    Post subject: [SOLVED] halt/reboot/poweroff z poziomu zwykłego użytkownika Reply with quote

Piszę sobie pewien skrypt w bashu i chciałbym żeby po skończonej robocie wyłączył mi system. Jak mogę to zrobić z poziomu zwykłego usera?? Programy z rodziny halt mają niby prawa a=x, ale jak uruchamia je nie-root to krzyczą i kończą działanie :?

Last edited by master66 on Sat Sep 06, 2008 9:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
klatecki
n00b
n00b


Joined: 24 Apr 2007
Posts: 10
Location: Gdańsk

PostPosted: Sat Sep 06, 2008 6:50 pm    Post subject: Reply with quote

ustaw bit SUID dla programu /sbin/halt aby zwykły użytkownik mógł go uruchamiać
Back to top
View user's profile Send private message
przemos
Guru
Guru


Joined: 30 May 2005
Posts: 433
Location: HWDP

PostPosted: Sat Sep 06, 2008 7:03 pm    Post subject: Reply with quote

Skorzystaj z sudo.
_________________

evolution mission
elogviewer
backup system script
vesafb-tng
ext3 tips
Back to top
View user's profile Send private message
darste
n00b
n00b


Joined: 05 Nov 2005
Posts: 2
Location: Bełchatów

PostPosted: Sat Sep 06, 2008 8:13 pm    Post subject: Reply with quote

polecam > http://gentoo.wikidot.com/wylaczanie-komputera-z-konta-zwyklego-uzytkownika
Back to top
View user's profile Send private message
master66
n00b
n00b


Joined: 27 Mar 2008
Posts: 36
Location: Kraków

PostPosted: Sat Sep 06, 2008 9:58 pm    Post subject: Reply with quote

Zrobiłem jednak z suidem, dzięki bo wcześniej nie pomyślałem o tym...
A jak będę miał problemy to pobawię się tym cudownym sudo :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) 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