Permission denied  Το θέμα επιλύθηκε

...ρύθμιση - εγκατάσταση web server, mail server, ftp server, κλπ

Συντονιστές: the_eye, konnn

Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 12:37

Καλημέρα παιδιά εχω στήσει ενα ubuntu server σε Ελληνική εταιρία μου έχουν δώσει root αλλα οταν παω να τρεξω ενα game server που εχω στήσει μου λεει "Permission denied" .Με τον ιδιο τρόπο ακριβώς έχω δικό μου μηχάνημα εδώ στο σπίτι και δουλεύει άψογα . Έχω στείλει μήνυμα στην εταιρία και μου λέει οτι δεν έχω κανένα περιορισμό από αυτούς. Τι να κάνω?
Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό medigeek » 15 Σεπ 2012, 14:36

Δώσε το αποτέλεσμα των εντολών:
Κώδικας: Επιλογή όλων
mount
id
ls -l /


Ίσως χρειάζεται έλεγχο του δίσκου.

Δοκίμασε να δημιουργήσεις με τον απλό χρήστη αντί root και να μπεις με την εντολή:
Κώδικας: Επιλογή όλων
sudo -i
Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 15:13

medigeek έγραψε:Δώσε το αποτέλεσμα των εντολών:
Κώδικας: Επιλογή όλων
mount
id
ls -l /


Ίσως χρειάζεται έλεγχο του δίσκου.

Δοκίμασε να δημιουργήσεις με τον απλό χρήστη αντί root και να μπεις με την εντολή:
Κώδικας: Επιλογή όλων
sudo -i


μου έγραψε "sudo: must be setuid root"

και το αποτέλεσμα που μου ζήτησες


Τελευταία επεξεργασία από the_eye και 16 Σεπ 2012, 12:20, έχει επεξεργασθεί 1 φορά/ες συνολικά
Αιτία: Σου έφτιαξα το link της εικόνας, τις μεγάλες τις βάζουμε σε [thumbnailpop] bbcode.
Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό medigeek » 15 Σεπ 2012, 16:12

Κατ' αρχήν, η υποστήριξη για το 11.10 λήγει τον Απρίλιο του 2013: https://wiki.ubuntu.com/Releases
Θα έπρεπε να εγκαταστήσεις το 12.04 που είναι LTS (Long term support) και υποστηρίζεται μέχρι το 2017.

Δευτερο, δεν θα έπρεπε να δώσεις στιγμιοτυπο με την διεύθυνση IP. Ελπίζω να έχεις βάλει ένα κωδικό με πάνω από 10 χαρακτήρες (γραμματα αριθμους παυλες και αστεράκια).

Τρίτο, λείπει το αποτέλεσμα της εντολής mount

Τέλος, για τον χρήστη root δεν χρειάζεσαι sudo, εκτελείς τις εντολές χωρίς το sudo.
Από την άλλη, δεν ξέρω ποιος ρύθμισε την εγκατάσταση και πρόσθεσε χρήστη root, μιας και δεν συστήνεται.
Θα ξαναέκανα την εγκατάσταση με το 12.04 χωρίς τη δημιουργία χρήστη "root". Ένας απλός χρήστης που είναι στην ομάδα admin αρκεί.
Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 16:23

εμένα μου έδωσαν την concole με root και ενα pass καθώς και με την συγκεκριμένη εκδοσή ubuntu , οσο για την ip δημοσιά είναι γιατι με αυτήν θα συνδέονται ολοι στο σερβερ. Τι να κάνω τώρα? μπορώ να κανω απομακρυσμένα αναβάθμιση στο σύστημα? θα χάσω τα αρχεία που ανέβασα?

εδω τα αποτελεσματα του mount:

Κώδικας: Επιλογή όλων
/mnt/pve/vdisk006/private/233972 on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
none on /run/shm type tmpfs (rw,relatime)
Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 16:36

Παιδιά πριν ενοικιάσω σε εταιρία , έκανα δοκιμή και έστησα ενα μηχάνημα εδώ σπιτιμου χωρισ root με ενα user και ενα pass και οταν ηθελα εβαζα sudo και pass και εκανα δουλεια μου μια χαρα. Σε 10 λεπτα ήμουν οκ και εδω παλευω 2 μερες.Εντομεταξι το αρχειο που τρεχω εχει και οδηγίες στης ανεβαζω


Κώδικας: Επιλογή όλων

ACHTUNG:

This is BETA quality code.

Run this code at your own risk. It is NOT production quality yet. Do not
put it on servers that need extreme uptime. That being said, your feedback
is most appreciated. Please get on the mailing list, and submit bugs to
Bugzilla. Bugs sent directly to my inbox are deleted without being read.
You Have Been Warned.

This binary will refuse to run in about 30 days, but there will be updates
(and hopefully an official, non-expiring version) before then.


To use this:

1) Install Medal of Honor: Allied Assult on a Win32 system.
2) Install the Spearhead expansion pack. This will patch win32 MOHAA up to
1.11 and add the spearhead files, too.
3) Patch Spearhead up to the latest version (2.15 at the time of this writing)
4) Copy the installed game to a Linux box.

(Suggestions on how to do this without Windows are welcome.)

5) Copy the Linux binaries to that Linux box, so that the "spearhead_lnxded"
binary is in the same directory as the "main" subdir, and the *.so files
are in "mainta". Please note that this is different than the layout of the
original MOHAA Linux server. Do not put the spearhead_lnxded binary in the
"mainta" subdir! Theoretically, an Allied Assault and Spearhead server can
both run out of the same tree without clashing, but this has not been
tested (reports of success and failure are welcome).

6) Run the server. It doesn't have to be run as root, and it doesn't need to
be run from the same directory you installed it in (spearhead will figure
out the correct fs_basedir from where the binary is located). You can punch
in commands at the console, or +exec a script or whatnot like other Q3
games. To get running, you'll need to at least do something like:

g_gametype 1
map dm/mohdm1

There are a LOT of options! Please check out GameAdmins' excellent
example configs for Medal of Honor:

http://gameadmins.com/modules.php?name=Sections

7) Subscribe to the mailing list: to do so, send a blank email to
mohaa-subscribe@icculus.org ... discussion of server problems will occur
there, so it will be in your best interest to subscribe.

Mailing list archives (which include discussions about the original Allied
Assault server that are still relevant) are here:

http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?23

8) Bug reports go to https://bugzilla.icculus.org/ ... there is a Medal of
Honor component in the bugtracking system. This is ONLY for bug reports
and requests on the Linux version! Win32 bugs will be marked "invalid"!


_PLEASE_ make sure your pakfiles aren't corrupted!

Running "md5sum *.pk3" in the "main" directory should produce this:

172dd011e999bf9d74bf35b63f3b4a07 Pak0.pk3
1e96e77a2b123186986d089e198c8f66 Pak1.pk3
1e2e77461a03f02a9878508a7e035c2f Pak2.pk3
08ae9d7ee5bb25bf9115fbe4bd071714 Pak3.pk3
fff8f0f1e6f9c2a6f1fb0dc194c5822b Pak4.pk3
50acbda9a8634a1dd33154c88ee8b506 Pak5.pk3
230b78842357b85f9875e164f34d5a0b pak6.pk3

And running "md5sum *.pk3" in the "mainta" directory should produce this:

f030b95c358eeed05891e0bbc9b8e361 pak1.pk3
16fceb0c8410ae87b0c6bae1ae761c5b pak2.pk3
099d46871c7b7bbefbea0c72ccd6cea5 pak3.pk3
c4cd23103785916f723658159e9962b4 pak4.pk3
e07af969447d25d91c28f5dd00b84adc pak5.pk3



If it doesn't, your pakfiles are corrupted (or you didn't patch to Spearhead
2.15 on windows), and you should reupload from a trusted source.



Some new cvars and commands that aren't in the win32 version:

- Added cvar: fs_userpath ... defaults to $HOME/.mohaa ... this is used to
load files, in addition to the standard fs_basepath.
- Added cvar: fs_outputpath ... defaults to $HOME/.mohaa ... this is where
files (logs and such) will be written to, since, unlike Windows, the
basepath may not have write permissions. This can be different than the
userpath, but generally you set these to be the same.
- Added cvar: logfilename ... defaults to "qconsole.log" ... use it, along
with fs_outputpath, to put your logfiles somewhere else.
If you set fs_outputpath to "/usr/local/mohaa" and logfilename to "moh.log"
then it will be written to /usr/local/mohaa/main/moh.log ...
- Added command: writeconfig <filename> ... will write out some relevant
cvars to {fs_outputpath}/main/config/<filename>.
- Added cvar: sv_chatter ... defaults to 0 ... set to 1 to see player's
chat messages on the server console. You do _NOT_ need to set the
"developer" cvar for this to work!
- Added cvar: sv_debuggamespy ... defaults to 0 ... set to 1 see information
going to and coming from gamespy...If you aren't showing up in the server
browser, enable this and see if anything is happening. (This cvar is in the
win32 version, too, but doesn't print anything.) This doesn't need the
"developer" cvar to function.


Credits and thank yous:

Making the Spearhead server run on Linux was the result of many people's
efforts. Here's an incomplete list of people that negotiated for, worked on,
and tested the Linux version:

EA and 2015:
- David Howe
- Vince Zampella
- Jon Galvan
- Keith Francart
- Mark Doctermann

The primary testers for the original Allied Assault:
- Dekard and OFxLedzeplin at GameAdmins (http://www.gameadmins.com/)
- Chris Warden at The Cyberspace Matrix (http://www.cyberspacematrix.com/)

The beta testers for the original Allied Assault, in no specific order:
- Rudi "flurk" Donne
- [MOSS]-Zaphod
- [^DD^]Hellboy, www.devil-dogs.net
- Andrew Chen
- Per W Sandberg, Norway
- Eric Koldeweij, The Netherlands.
- Matt "French school girls" H.
- Charles "wokka" Goldsmith
- Damon aka Dc||
- Sam <Wintrmte> Evans (who let me have ssh access to his server!)
- Wingman69
- Monthos "Dave Kasper"
- David M. Graham (AkA Firewalker)
- ...and a cast of thousands. You know who you are; thank you!

Me:
- Ryan C. Gordon (http://icculus.org/)

Thank you to everyone involved!

Have fun,
--ryan.

Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό medigeek » 15 Σεπ 2012, 16:40

Σε ποια ακριβώς εντολή σου λέει permission denied; Μπορείς να την κάνεις copy-paste εδώ αυτούσια; Αν στην εντολή χρησιμοποιείς "sudo", δοκίμασε χωρίς το sudo.
Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 16:40

οκ ενα λεπτο
Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό teo2202 » 15 Σεπ 2012, 16:51

Χρησιμοποιώ το webmin για ευκολία.....



Τελευταία επεξεργασία από the_eye και 16 Σεπ 2012, 12:23, έχει επεξεργασθεί 1 φορά/ες συνολικά
Αιτία: Σου έφτιαξα το link της εικόνας, τις μεγάλες τις βάζουμε σε [thumbnailpop] bbcode.
Γνώσεις ⇛ Linux: Νέος ┃ Προγραμματισμός: Νέος ┃ Αγγλικά: Μέτρια
Λειτουργικό ⇛ Debian server
Hardware ⇛ Intel P4 , ram 1G
Άβαταρ μέλους
teo2202
babeTUX
babeTUX
 
Δημοσιεύσεις: 129
Εγγραφή: 26 Ιαν 2012, 18:21
Εκτύπωση

Re: Permission denied

Δημοσίευσηαπό medigeek » 15 Σεπ 2012, 16:55

Πρέπει να δώσεις το full path (το φάκελο μέσα στον οποίο βρίσκεται το αρχείο spearhead_lnxded).
Και χωρίς διάστημα μεταξύ τους.

Παράδειγμα:
Κώδικας: Επιλογή όλων
/home/myfile/myfolder/spearhead_lnxded
Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Επόμενο

Επιστροφή στο Διακομιστές / Εξυπηρετητές

cron