Why does SCM continue to require a password after executing scm login?
![]()
Paul Newman (1●3●3)
| asked Dec 03 '13, 2:30 p.m.
retagged Dec 13 '13, 2:33 p.m. by David Lafreniere (4.8k●7)
we are using RTC 4.0.0.1. All of the SCM commands I have tried request my password to complete. This is true even though I have logged in using the SCM login command. Is there any procedure I can use to prevent every command requesting a password after each command is entered?
|
Accepted answer
One other answer
![]()
Use the -n flag when you do the scm login, then use the value you used for -n for -r on subsequent scm actions.
Usage: scm login [options] Options: --certificate arg - The file that contains the user's login certificate. --smartCard - Uses the connected smart card for authentication. -c [--cache] - Caches the password on prompt. -n [--nickname] arg - The nickname of the repository. -P [--password] arg - The password for the repository. -r [--repository-uri] arg - The URI that specifies the location of the repository. Comments Thanks, Kevin
Using -P ( on the login only ) as well ought to complete the picture. Of course, for scripting this can expose one's password to other users on certain systems.
Hi, again.
That discussion has been made before. There is no perfectly secure way. You could digest the password and save the digest and when needed un-digest the password on the fly. But if any other individual can access that same machine they would likely also have access to any tooling used to try to obfuscate the password.
Thanks. My immediate concern is that interactive usage puts my password on my screen and into my command history file. It seems like it may be a bug that scm behaves differently depending on whether the password was obtained from the command line or obtained with a read system call. In either case scm should be able to associate my nickname and my password.
|