Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zugriffsrecht für User auf /sys
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Wed Sep 07, 2005 8:58 pm    Post subject: Zugriffsrecht für User auf /sys Reply with quote

Hallo,

ich habe folgendes vor:

Mit einem Script, welches von jedem Benutzer auf dem
System ausgeführt werden soll, kann das System in den
Standby-Modus gebracht werden.

> #!/bin/bash
> echo -n standby > /sys/power/state

Leider hat nur Root Rechte das durchzuführen. Ein chmod 755
auf dem Pfad /sys/power/state ist nach einem Reboot wieder
weg.

Was kann man da tun?
Hilfe wäre toll!

Bis dann

Holger
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Wed Sep 07, 2005 9:05 pm    Post subject: Reply with quote

mittels visudo
DEINUSERNAME_HIER ALL = NOPASSWD: /usr/local/bin/wie_auch_immer_das_skript_heisst

eintragen. dann kann es der user mit sudo skriptname mit rootrechten ausführen.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Wed Sep 07, 2005 9:21 pm    Post subject: Danke - Das geht - Super Reply with quote

Jup, genau so bin ich vorgegangen. Ich hatte nur vergessen das
Script mit sudo <script> aufgerufen.

Dann geht es natürlich - Danke

Nach dem Wake-Up meines Rechner ist das Netzwerk extrem
langsam. Daher würde gerne die Netzwerk-Treiber neu initialisieren.

Kennt jemand ein Script, das nach einem Wake-Up aufgerufen
wird?

Bis dann

Holger
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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