protonscr

[Request] Consider adding safer form of -login param

steamopen Feature RequestreviewedSteam client
ValveSoftware/steam-for-linux#2545 · opened 2013-06-01 by ghost · updated 2019-07-18 · 9 comments · github
?ghost 2013-06-01 github

On Linux, command line arg of all running processes are by default visible to all users, so using -login param will definitely risk your username and password details being exposed to everyone on the OS.

I'd like to propose a new cmd param -auth which takes login credential from a file containing username/password on 2 lines, ala --auth-user-pass param in openvpn

Why file? Because users can encrypt and decrypt the file as needed and the credential won't appear in steam command line arg

WWhyNotHugo 2013-06-03 github

As a workaround, you can currently run:

steam -login hobarrera $(cat ~/priv/secrets/steam)

Assuming ~/priv/secrets/steam contains my steam password.

I do agree that reading the password from stdin would be a nice choice, but I hope this workaround helps in the meantime (and sorry for the noise!).

?ghost 2013-06-03 github

That actually does not conceal the password because the command substitution part will be expanded when you run the command..so the output of cat will be visible on process arg..

WWhyNotHugo 2013-06-04 github

You're quite right, my bad! We'll have to wait for an update on steam's side then.

Eericwomer 2013-06-04 github

the login read file method works better since the data will be read in steam and not in the terminal but that will only work if the file is incrypted and is decrypted in steam since if they know which file it is they can just cat it.

WWhyNotHugo 2013-06-04 github

the login read file method works better since the data will be read in steam and not in the terminal but that will only work if the file is incrypted and is decrypted in steam since if they know which file it is they can just cat it.

I don't think decryption will ever be done inside steam. It makes little sense, since there's already plenty of ways that you can encrypt files yourself, and some steam-specific encryption would make this rather unfriendly to use. Also, most linux distribution offer home encryption or full disk encryption.

Even if someone else know which file it is, you should not have it world readable.

Fflying-sheep 2013-06-04 github

well, the advantage of a file is that you can set read permissions to only yourself. no encryption necessary if you trust the admins.

but stdin would be better of course. mdecrypt paddwordfile.nc | steam -auth - (where - means “use stdin instead of file”)

Bbenkibbey 2016-01-31 github

The stdin method or read from a pipe would be best I think. Is there any motivation to fix this?

PPlagman 2016-01-31 github

No plans to address this, although steamcmd is being changed to hide password input from the terminal when logging in interactively.

Bbenkibbey 2016-02-01 github

I suppose that would be good enough if pasting from the X clipboard
works. But reading from a pipe or stdin would be better I think.

Nothing extracted yet.