-
Notifications
You must be signed in to change notification settings - Fork 379
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
Override default password #334
Comments
That is a reasonable request. However, I am not sure how to include it the best way. A simple attempt would be an option Currently hardcoding inside x11docker is the cleanest way.
Another attempt would be a file |
I like the encrypted passwd file approach over a command line parameter, for the same reason you cited. Also I don't want to type it out every time, or hard-code the password in any of my own personal scripts. I may find time to implement it, and if I do, I'll send a PR.
|
Thank you for your offer! I am aready looking how to implement this, so don't worry. |
--sudouser=nopasswd: Optional argument to allow sudo without password
I've implemented a new option From
|
Awesome, thanks! I'll give it a try. For what it's worth, the way I'll probably use it would look something like this: read -rs -p "Enter password: " my_pass
x11docker --password "${my_pass}" I personally don't mind the extra step of prompting for the password to prevent it from showing up in Bash history. Though it would be a slight usability improvement if x11docker could handle that password prompt for me when no But in any case, what you have looks like a great solution. Many thanks. |
If you write a whitespace
You are right, I'll look at this. |
Now x11docker prompts interactively if
|
Great. Just tested it on my machine, and it looks like it's working. I did encounter two minor bumps:
Regardless, it was easy to figure out. Not sure if those are even worth paying attention to, just sharing my first-time experience. |
Does this happen with It would happen with |
Sorry, looks like I was running from memory. Here are my actual results. In particular, I forgot about the
That last one wasn't a copy / paste mistake; a call to |
Thank you for the details! x11docker runs the password change earlier now, before several other checks cause messages (and trouble). |
Ah much better. There is just one tiny quirk left:
So it looks like At this point I'm just trying to help with feedback in case you care about those small details. But I'm more than happy - I think this issue could be closed. Thanks so much for your time and effort! |
I've decided to make (b) would require additional parsing, basically to allow wrong input. So I don't want to include this. Many other options also take an optional argument that forces the use of I think we can leave it as it is.
You're welcome! Thanks for feedback and suggestions. |
I like to run x11docker as a second full-screen session using
--xorg
. There are times when I walk away from my laptop and want to lock my screen. I would like to make it so that I can specify my own password to unlock the screen, rather than using the default password "x11docker".I see how we are hard-coding the password here. I have managed to manually edit x11docker so it uses my own hard-coded password, however that won't survive updates. Would it be feasible to allow the user to specify a password via a parameter, environment variable, etc?
I was also thinking I could potentially do the work myself and submit a pull request. Do you have any guidance on how you prefer it to be done?
The text was updated successfully, but these errors were encountered: