Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash: /opt/pwn3/server/creds: Permission denied #19

Open
Heacien opened this issue Aug 24, 2019 · 5 comments
Open

bash: /opt/pwn3/server/creds: Permission denied #19

Heacien opened this issue Aug 24, 2019 · 5 comments

Comments

@Heacien
Copy link

Heacien commented Aug 24, 2019

I installed the docker image for the first time and tried running it by following the step-by-step guid, but
after sending the command docker-compose up there comes this error

bash: /opt/pwn3/server/creds: Permission denied

I tried using sudo but it made no difference.

Full docker-compose up history bevor the error:

Lorem@Ispum:~/PwnAdventure3$ docker-compose up
Starting pwnadventure3_init_1 ... done
Starting pwnadventure3_master_1 ... done
Starting pwnadventure3_game_1 ... done
Attaching to pwnadventure3_init_1, pwnadventure3_master_1, pwnadventure3_game_1
master_1 | * Starting PostgreSQL 9.3 database server
pwnadventure3_init_1 exited with code 0
game_1 | FMallocCrash overhead is 3780608 bytes
game_1 | bash: line 1: 9 Segmentation fault ./PwnAdventure3Server
pwnadventure3_game_1 exited with code 139
master_1 | ...done.
master_1 | psql:/opt/pwn3/setup/postgres_init.sql:1: ERROR: role "pwn3" already exists
master_1 | psql:/opt/pwn3/setup/postgres_init.sql:2: ERROR: database "master" already exists
master_1 | GRANT
master_1 | rm: cannot remove '/opt/pwn3/client/PwnAdventure3_Data/PwnAdventure3/PwnAdventure3/Saved/Logs/': No such file or directory
master_1 | No backup data found!
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | INSERT 0 1
master_1 | INSERT 0 1
master_1 | UPDATE 1
master_1 | UPDATE 1
master_1 | Use the following team hash to join the admin team:
master_1 | 7509750a02d7438bb3ff
***********
master_1 | CREATE TABLE
master_1 | DELETE 0
master_1 | INSERT 0 0
master_1 | DELETE 0
master_1 | DELETE 0
master_1 | DROP TABLE
master_1 | bash: /opt/pwn3/server/creds: Permission denied

@Heacien
Copy link
Author

Heacien commented Aug 24, 2019

Just noticed that the path /opt/pwn3 didn't exist.

I manually generated (/opt/pwn3/server/creds) it but the same error continues to occur.

// Btw. man könnte hier auch auf Detusch antworten zum diskutieren ;)

@shw1n
Copy link

shw1n commented Sep 9, 2019

Had the same issue using Docker on Windows, after some digging it seems to be related to bind volumes on Windows specifically, when I logged into the container w/ docker exec and tried to touch testfile as root, I still got permission denied, even after ensuring write access to the folder.

Ended up just running it on a 64-bit Ubuntu 16.04 VM using docker with no issues.

@Heacien
Copy link
Author

Heacien commented Sep 19, 2019

@shw1n I used linux, can't tell ya which version as the vserver ran out, but it was definitly some sort of ubuntu

@tzlils
Copy link

tzlils commented Aug 9, 2021

I'm having this issue, has this been resolved? if so, could you post the solution?

@thieleju
Copy link

I fixed this by changing permissions to all the game files to root and group root (probably bad, but all local)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants