Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
poweroff als user
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
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Thu Jul 17, 2003 12:52 pm    Post subject: poweroff als user Reply with quote

hi

folgendes problem: der befehl 'poweroff' funktioniert nur als root.
wie bring ich den befehl auch für meinen user zum laufen?

merci im vorraus

RealGeizt
Back to top
View user's profile Send private message
seth77
n00b
n00b


Joined: 06 Mar 2003
Posts: 60

PostPosted: Thu Jul 17, 2003 1:30 pm    Post subject: Reply with quote

chmod +s


man chmod
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Fri Jul 18, 2003 10:34 am    Post subject: Reply with quote

hi

das problem ist, dass mein user die befehle nicht kennt.
müsste wohl ein link zu dieser datei machen oder?
bloss hab ich keine ahnung welche dateie es ist.

vielleicht kann mir noch jemand anderes bitte weiterhelfen damit die befehle "poweroff" und "reboot" für meinen user ausführbar sind.

danke!

RealGeizt
Back to top
View user's profile Send private message
hopfe
Guru
Guru


Joined: 22 Oct 2002
Posts: 456
Location: Frankfurt Main oder Aachen

PostPosted: Fri Jul 18, 2003 10:42 am    Post subject: Reply with quote

Mach als root mal ein which poweroff dann siehst du von welchen Pfad die Datei angezogen wird. Diesen Pfad solltest du dann in deiner /etc/profile auch deinen Useren zuordnen.
Wenn du die /etc/profile geändert hast, reicht ein erneutes Login für den Benutzer oder ein source /etc/profile wenn du ein login verhindern willst.
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1939

PostPosted: Sat Jul 19, 2003 2:15 pm    Post subject: Reply with quote

Sinnvoller ist aber, einen Link nach /bin zu erstellen, als das Verzeichnis, in dem poweroff liegt (bei mir /sbin) , zum Pfad hinzuzufügen, weil dieses Verzeichnis Systemadministrationskommandos enthält, die ein normaler User sowieso nicht nutzen kann.
Code:
ln -s /sbin/poweroff /bin
Back to top
View user's profile Send private message
MasterOfMagic
l33t
l33t


Joined: 20 Aug 2002
Posts: 677
Location: Vienna, Austria

PostPosted: Sat Jul 19, 2003 5:33 pm    Post subject: Reply with quote

wie wäre es mit sudo zu arbeiten?

mfg
masterofmagic
_________________
Gentoo 1.4
Kernel 2.4.24
KDE 3.1.5
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Mon Jul 21, 2003 8:20 am    Post subject: Reply with quote

danke mrsteven!

deine lösung war die schnellste und effektivste.

RealGeizt
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