Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 16:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



"This root must not be run as root"??

Discussion on "This root must not be run as root"?? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2011
Posts: 873
Received Thanks: 165
"This root must not be run as root"??

Ich wollte die Install.sh ausführen mit dem Befehl
PHP Code:
sh install.sh 
Nur das Problem ist dass ständig diese nervige Fehlermeldung kommt was kann ich da machen?
Gillette Kaito is offline  
Old 12/04/2014, 18:29   #2

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
Und was für ein Fehler?
u. a. auch den Inhalt der install.sh posten als [PHP]
Drαεth is offline  
Old 12/04/2014, 22:51   #3
 
elite*gold: 0
Join Date: Mar 2011
Posts: 873
Received Thanks: 165
PHP Code:
#!/bin/sh
# Installs the needed parts
# (Executes child scripts)

if [ `id -u` = "0" ]; then
    
echo "This script must not be run as root" 1>&2
    
exit 1
fi

ROOT
=$PWD

chmod u
=rwx,g=r,o=r $ROOT/share/bin/game
chmod u
=rwx,g=r,o=r $ROOT/share/bin/db
chmod u
=rwx,g=r,o=r $ROOT/share/bin/vrunner

find 
. -type d -exec chmod u=rwx,g=rx,o=rx {} \;
find . -name "*.sh" -exec chmod u=rwx,g=r,o={} \;

# Install db
cd $ROOT/db && sh install.sh

# Install auth
cd $ROOT/auth && sh install.sh

# Install channel1
cd $ROOT/channel1/first && sh install.sh
cd $ROOT
/channel1/game1 && sh install.sh
cd $ROOT
/channel1/game2 && sh install.sh

# Install channel2
cd $ROOT/channel2/first && sh install.sh
cd $ROOT
/channel2/game1 && sh install.sh
cd $ROOT
/channel2/game2 && sh install.sh

# Install channel3
cd $ROOT/channel3/first && sh install.sh
cd $ROOT
/channel3/game1 && sh install.sh
cd $ROOT
/channel3/game2 && sh install.sh

# Install game99
cd $ROOT/game99 && sh install.sh 

Hier der Inhalt der Install.Sh und das gleiche Problem passiert mit der run.sh hier auch der inhalt

PHP Code:
#!/bin/sh
# This script is only here for convience
# It calls all other autorun shellscripts in the
# various subdirectories.

if [ `id -u` = "0" ]; then
    
echo "This script must not be run as root" 1>&2
    
exit 1
fi

ROOT
=$PWD

# Run db
echo "Starting db"
cd $ROOT/db && sh run.sh
sleep 2

# Run auth
echo "Starting auth"
cd $ROOT/auth && sh run.sh

# Run channel1
echo "Starting channel1/game2"
cd $ROOT/channel1/game2 && sh run.sh
echo "Starting channel1/game1"
cd $ROOT/channel1/game1 && sh run.sh
echo "Starting channel1/first"
cd $ROOT/channel1/first && sh run.sh

# Run channel2
echo "Starting channel2/game2"
cd $ROOT/channel2/game2 && sh run.sh
echo "Starting channel2/game1"
cd $ROOT/channel2/game1 && sh run.sh
echo "Starting channel2/first"
cd $ROOT/channel2/first && sh run.sh

# Run channel3
echo "Starting channel3/game2"
cd $ROOT/channel3/game2 && sh run.sh
echo "Starting channel3/game1"
cd $ROOT/channel3/game1 && sh run.sh
echo "Starting channel3/first"
cd $ROOT/channel3/first && sh run.sh

# Run game99
echo "Starting game99"
cd $ROOT/game99 && sh run.sh
sleep 2 
Gillette Kaito is offline  
Old 12/04/2014, 23:01   #4
 
nostradame37's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 2,504
Received Thanks: 870
Du kanst das script nicht mit dem User root ausfueren das ist dein fehler.
Pass deine install so an das die auch als root user ausgefuert werden kann
Hier diese abfrage stelt fest welcher user gerade ausfuert
PHP Code:
if [ `id -u` = "0" ]; then 
    
echo "This script must not be run as root" 1>&
    
exit 
nostradame37 is offline  
Reply


Similar Threads Similar Threads
[HELP] I haven't files; "root" and "locale_fr"
04/17/2013 - Metin2 Private Server - 1 Replies
Hello , In my client "moustikk-1H" i haven't files : root and local-fr -Or I little the found? -How I install them ? sry for my english, I translate ^^
[S Root Sponsor [B] Itemshop Einnahmen "" Monat ca ~100€"
02/24/2012 - Metin2 Trading - 6 Replies
Guten Tag Liebe Comm heute suche ich einen Root Sponsor für einen Metin2 Pserver ich kenne mich gut mit Cat + FileZilla aus sprich es wird nicht schwer!! es wird einen Itemshop geben und ca 100 euro im Monat später viel mehr
Root User "root" Passwort vergessen
11/24/2010 - Metin2 Private Server - 16 Replies
Hoii liebe Community, hoffentlich könnt ihr mir weiterhelfen.. Ich hab ausversehen das Passwort meines "root" User's verlegt.. Und nun weiss ich nicht wie ich es wieder erlangen kann. Ich hoffe es kann mir wer helfen. Kind Regards Daniiel



All times are GMT +1. The time now is 16:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.