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

vncpasswd: ability to combine -t and -f flags #1907

Open
eschoeller opened this issue Feb 7, 2025 · 1 comment
Open

vncpasswd: ability to combine -t and -f flags #1907

eschoeller opened this issue Feb 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@eschoeller
Copy link

eschoeller commented Feb 7, 2025

Is your feature request related to a problem? Please describe.
Not necessarily, I can easily work-around it; but having this functionality would streamline things and improve security.

Describe the solution you'd like
I like the idea of the automatic file/directory creation behind the -t flag, but I'd also like to be able to pipe STDIN to vncpasswd when using this flag, like -f does. But the flags can't be combined, and I understand that -f is expecting to write out to STDOUT. So perhaps what I'm really asking for is that -t is capable of reading from STDIN as well as prompting for a password if not provided with STDIN input. This would be very useful in some automation processes where I do not want to be writing data to user home folders, so /tmp is my best option, but I'd like the right perms (and -t is offering that).

Describe alternatives you've considered
I'll just handle it manually for now:
umask 077; echo "blerf" | vncpasswd -f > /tmp/$USER-vnc/passwd

Additional context
Nothing else to add, thanks for your consideration!

@CendioOssman
Copy link
Member

We don't have any -t flag. Are you perhaps thinking of some other tool, or other VNC project?

That said, we could probably change it so that -f still allows an optional output file name.

@CendioOssman CendioOssman added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants