Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Runscript
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
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Tue Mar 06, 2007 8:43 pm    Post subject: Runscript Reply with quote

Witam, chcę uruchomić apache i mysql z użytkownika, oczywiście dodałem go do odpowiednich grup, jednak podczas uruchamiania występuje taki problem:
Code:
adam@localhost ~ $ /etc/init.d/apache2 start
 * /sbin/runscript.sh: must be root to run init scripts
adam@localhost ~ $ /etc/init.d/apache2 start
 * /sbin/runscript.sh: must be root to run init scripts
adam@localhost ~ $ /etc/init.d/mysql start 
 * /sbin/runscript.sh: must be root to run init scripts
adam@localhost ~ $

_________________
Miły Chomiczek
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2375
Location: Poland

PostPosted: Tue Mar 06, 2007 10:51 pm    Post subject: Re: Runscript Reply with quote

Mr Adam wrote:
Witam, chcę uruchomić apache i mysql z użytkownika

linux to nie windows

Quote:
oczywiście dodałem go do odpowiednich grup, jednak podczas uruchamiania występuje taki problem:
Code:
adam@localhost ~ $ /etc/init.d/apache2 start
 * /sbin/runscript.sh: must be root to run init scripts

Problem jest wyraźnie opisany: linux to nie windows...

Mały hint: istnieje coś takiego jak sudo.
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Wed Mar 07, 2007 6:00 am    Post subject: Reply with quote

czyli bez sudo nie da rady? a jak uruchamiają apacha na serwerach? też na sudo?
_________________
Miły Chomiczek
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2375
Location: Poland

PostPosted: Wed Mar 07, 2007 7:21 am    Post subject: Reply with quote

Mr Adam wrote:
czyli bez sudo nie da rady? a jak uruchamiają apacha na serwerach? też na sudo?

na serwerach apache'a uruchamia administrator...
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Wed Mar 07, 2007 1:35 pm    Post subject: Reply with quote

chodziło mi o użytkownika, grupę, potencjalny intruz może zrobić wszystko mają uprawnienia root'a
_________________
Miły Chomiczek
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2375
Location: Poland

PostPosted: Wed Mar 07, 2007 2:02 pm    Post subject: Reply with quote

Mr Adam wrote:
chodziło mi o użytkownika, grupę, potencjalny intruz może zrobić wszystko mają uprawnienia root'a

apache domyślnie działa z uprawnieniami użytkownika innego niż root. UID tego użytkownika zależy od dystrybucji i raczej nie powinien być zmieniany wg własnego widzimisię. Szczegóły znajdziesz w pliku konfiguracyjnym apache.conf.
_________________
raku

Powered by Archlinux ;-)
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