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

-p password argument ignored when starting cloudcmd #64

Closed
jojow opened this issue Mar 24, 2016 · 11 comments
Closed

-p password argument ignored when starting cloudcmd #64

jojow opened this issue Mar 24, 2016 · 11 comments

Comments

@jojow
Copy link

jojow commented Mar 24, 2016

Hi,

I tried cloudcmd through Docker, using the following command:

docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3 npm start -- --root /data -u admin -p sOmEpAsSwOrD

However, the -p password parameter seems to be ignored. cloudcmd runs perfectly, but I can access it without giving any password. So, everyone can access.

Is this a bug or did I miss anything?

Thanks!

Johannes

@jojow
Copy link
Author

jojow commented Mar 24, 2016

Btw, the --root /data argument works perfectly, meaning I can only access files in this (mounted) directory.

@coderaiser
Copy link
Owner

Hi @jojow,
This is because you did not set flag auth, it is false by default. So you just set username and password but did not turn on authorisation. With all parameters command will look like:

docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3 npm start -- --root /data --auth -u admin -p sOmEpAsSwOrD

And starting from next version you could use just:
docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3 --root /data --auth -u admin -p sOmEpAsSwOrD

You could also try alpine build (based on alpine-node, which is much smaller then official docker image of node) with:
docker run -d -p 8000:8000 coderaiser/cloudcmd:5.2.3-alpine --root /data --auth -u admin -p sOmEpAsSwOrD

@jojow
Copy link
Author

jojow commented Mar 25, 2016

Great, thanks a lot! Now it works! :-)

@dtk78
Copy link

dtk78 commented Aug 10, 2017

Hi
do you know how I can set up with auth in a file docker-compose.yml ?
Regards

@coderaiser
Copy link
Owner

@dtk78 you can use environment variables:

  • CLOUDCMD_AUTH
  • CLOUDCMD_USERNAME
  • CLOUDCMD_PASSWORD

in docker-compose file or in env file.

@dtk78
Copy link

dtk78 commented Aug 11, 2017

Hello,

Thanks a lot for you reply.
how can I also setup this argument --root /project in my docker-compose.yml file ?
and --one-panel-mode ?
Regards

@dtk78
Copy link

dtk78 commented Aug 11, 2017

hello,

Is it possible to setup default user for creating a file or directory ?
I can see that the default owner is root for creating a new directory or file

Regards

@coderaiser
Copy link
Owner

coderaiser commented Aug 11, 2017

how can I also setup this argument --root /project in my docker-compose.yml file ?
and --one-panel-mode ?

I have no idea :). There is no way to set root and one panel mode via env variables In Cloud Commander but it is a great idea for a pull request :).

Is it possible to setup default user for creating a file or directory ?
I can see that the default owner is root for creating a new directory or file

You should build your own docker image and create user.

@dtk78
Copy link

dtk78 commented Aug 11, 2017

Hi,

Do you know how I can make chown after creating a file or after copying some files ?
or is there any pluggins to get an option chown with a right clic ?

Do I need to add a function chmod in a .js file ?

Thanks for your help
Regards

@coderaiser
Copy link
Owner

You can use console or terminal for this purpose.

@coderaiser
Copy link
Owner

coderaiser commented Aug 14, 2017

In v7.3.0 was landed support of environment variables CLOUDCMD_ROOT and CLOUDCMD_ONE_PANEL_MODE.

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

No branches or pull requests

3 participants