myproxy-init.1
来自「代理服务器源代码 供大家学习使用,希望大家喜欢」· 1 代码 · 共 361 行
1
361 行
.TH myproxy-init 1 "2005-12-2" "NCSA" "MyProxy".SH NAMEmyproxy-init \- store a credential for later retrieval.SH SYNOPSIS.B myproxy-init [.I options].SH DESCRIPTIONThe.B myproxy-initcommand uploads a credential to a.BR myproxy-server (8)for later retrieval.In the default mode, the command first prompts for the user's Grid pass phrase (if needed),which is used to create a proxy credential.The command then prompts for a MyProxy pass phrase, which will berequired to later retrieve the credential.The MyProxy pass phrase must be entered a second time for confirmation.A credential with a lifetime of one week (by default) is thendelegated to the.BR myproxy-server (8)and stored with the given MyProxy pass phrase.Proxy credentials with default lifetime of 12 hours can then beretrieved by .BR myproxy-logon (1)using the MyProxy passphrase.The default behavior can be overridden by options specified below..PPThe.B myproxy-initcommand can also upload a credential to a.BR myproxy-server (8)to support credential renewal.Renewal allows a trusted service (for example, a batch job scheduler)to obtain a new credential for a userbefore the existing credential it has for that user expires.The .B -Rargument to .B myproxy-initconfigures the credential for renewal by the specified service.Renewal requires two authentications.The renewing service must authenticate with its own credentials, matchingthe distinquished name specified by the .B -Rargument, and must also authenticate with an existing credential thatmatches the distinguished name of the stored credential, to retrieve anew credential..PPA credential may be used either for retrieval or renewal but not both.If both are desired, upload a different credential for each use, witha different name using the .B -koption..PPThe hostname where the .BR myproxy-server (8)is running must be specified by either defining the .B MYPROXY_SERVERenvironment variable or the.B -soption..PPBy default, .B myproxy-initwill create a proxy credential from the user's end-entity credentialsat.I ~/.globus/usercert.pemand.I ~/.globus/userkey.pemto delegate to the .BR myproxy-server (8).To specify an alternate location for the source certificate and keyto delegate, use the.B X509_USER_CERTand.B X509_USER_KEYenvironment variables.To use a proxy credential as the source of the delegation,set both environment variables to the location of the proxycredential.To delegate a "legacy globus proxy", set the.B GT_PROXY_MODEenvironment variable to "old"..SH OPTIONS.TP.B -h, --helpDisplays command usage text and exits..TP.B -u, --usageDisplays command usage text and exits..TP.B -v, --verboseEnables verbose debugging output to the terminal..TP.B -V, --versionDisplays version information and exits..TP.BI -s " hostname, " --pshost " hostname"Specifies the hostname of the myproxy-server. This option is requiredif the.B MYPROXY_SERVERenvironment variable is not defined. If specified, this optionoverrides the.B MYPROXY_SERVERenvironment variable..TP.BI -p " port, " --psport " port"Specifies the TCP port number of the.BR myproxy-server (8).Default: 7512.TP.B -l, --usernameSpecifies the MyProxy account under which the credential should bestored. By default, the command uses the value of the.B LOGNAMEenvironment variable.Use this option to specify a different account username on the MyProxyserver.The MyProxy username need not correspond to a real Unix username..TP.BI -c " hours, " --cred_lifetime " hours"Specifies the lifetime of the credential stored on the.BR myproxy-server (8)in hours.Specify .I 0for the maximum possible lifetime, i.e., the lifetime ofthe original credential.Default: 1 week (168 hours).TP.BI -t " hours, " --proxy_lifetime " hours"Specifies the maximum lifetime of credentials retrieved from the.BR myproxy-server (8)using the stored credential. Default: 12 hours.TP.BI -C " filename, " --certfile " filename"Specifies the filename of the source certificate..TP.BI -y " filename, " --keyfile " filename"Specifies the filename of the source private key..TP.B -d, --dn_as_usernameUse the certificate subject (DN) as the default username, insteadof the .B LOGNAME environment variable..TP.B -a, --allow_anonymous_retrieversAllow credentials to be retrieved with just pass phrase authentication.By default, only entities with credentials that match the.BR myproxy-server.config (5)default retriever policy may retrieve credentials.This option allows entities without existing credentials to retrieve acredential using pass phrase authentication by including "anonymous"in the set of allowed retrievers. The.BR myproxy-server.config (5)server-wide policy must also allow "anonymous" clients for this optionto have an effect..TP.B -A, --allow_anonymous_renewersAllow credentials to be renewed by any client.Any client with a valid credential with a subject name that matchesthe stored credential may retrieve a new credential from the MyProxyrepository if this option is given.Since this effectively defeats the purpose of proxy credentiallifetimes, it is not recommended. It is included only for sake ofcompleteness..TP.BI -r " dn, " --retrievable_by " dn"Allow the specified entity to retrieve credentials. By default, theargument will be matched against the common name (CN) of the client(for example: "Jim Basney"). Specify.B -x before this option to match against the full distinguished name (DN)(for example: "/C=US/O=National Computational Science Alliance/CN=JimBasney") instead..TP.BI -R " dn, " --renewable_by " dn"Allow the specified entity to renew credentials.By default, theargument will be matched against the common name (CN) of the client(for example: "condorg/modi4.ncsa.uiuc.edu"). Specify.B -x before this option to match against the full distinguished name (DN)(for example: "/C=US/O=National Computational Science Alliance/CN=condorg/modi4.ncsa.uiuc.edu") instead.This option implies .B -nsince passphrase authentication is not used for credential renewal..TP.BI -Z " dn, " --retrievable_by_cert " dn"Allow the specified entity to retrieve credentials without a passphrase.By default, theargument will be matched against the common name (CN) of the client(for example: "Jim Basney"). Specify.B -x before this option to match against the full distinguished name (DN)(for example: "/C=US/O=National Computational Science Alliance/CN=Jim Basney") instead.This option implies .BR -n ..TP.B -x, --regex_dn_matchSpecifies that the DN used by options .B -rand .B -Rwill be matched as a regular expression..TP.B -X, --match_cn_onlySpecifies that the DN used by options .B -r and .B -R will be matched against the Common Name (CN) of the subject..TP.BI -k " name, " --credname " name"Specifies the credential name..TP.BI -K " description, " --creddesc " description"Specifies credential description..TP.B -S, --stdin_passBy default, the command prompts for a passphrase and reads thepassphrase from the active tty. When running the commandnon-interactively, there may be no associated tty. Specifying thisoption tells the command to read passphrases from standard inputwithout prompts or confirmation..TP.B -L, --local_proxyIn addition to storing a proxy credential on the.BR myproxy-server (8)with lifetime set by.B --cred_lifetime(default 1 week),create a local proxy credential with lifetime set by.B --proxy_lifetime(default 12 hours)..TP.B -n, --no_passphraseDon't prompt for a credential passphrase.Store credentials without a credential passphrase, to be protected by other methods, such as PAM, SASL, orcertificate-based authentication.This option is implied by.B -Rsince passphrase authentication is not used for credential renewal.Note that the .BR myproxy-server (8)always requires some type of authentication for retrievingcredentials, so if you store a credential with no passphrase and otherauthentication methods are not configured, the credential will not beaccessible..SH "EXIT STATUS"0 on success, >0 on error.SH FILES.TP.I ~/.globus/usercert.pemDefault location of the certificate from which the proxycredential is created. Set the.B X509_USER_CERTenvironment variable to override..TP.I ~/.globus/userkey.pemDefault location of the private key from which the proxy credential iscreated. Set the.B X509_USER_KEYenvironment variable to override..TP.I /tmp/myproxy-proxy.<uid>.<pid>Location of the temporary proxy credential that is delegated to the .BR myproxy-server (8).It is removed after the delegation is completed..SH ENVIRONMENT.TP.B MYPROXY_SERVERSpecifies the hostname where the.BR myproxy-server (8)is running. This environment variable can be used in place of the .B -soption..TP.B MYPROXY_SERVER_PORTSpecifies the port where the.BR myproxy-server (8)is running. This environment variable can be used in place of the .B -poption..TP.B MYPROXY_SERVER_DNSpecifies the distinguished name (DN) of the .BR myproxy-server (8).All MyProxy client programs authenticate the server's identity.By default, MyProxy servers run with host credentials, so the MyProxyclient programs expect the server to have a distinguished name of theform "host/<fqhn>" or "myproxy/<fqhn>"(where <fqhn> is the fully-qualified hostname ofthe server). If the server is running with some other DN, you can setthis environment variable to tell the MyProxy clients to accept thealternative DN..TP.B X509_USER_CERTSpecifies a non-standard location for the certificate from which theproxy credential is created.The location may be the path to an end-entity certificate(ex. .IR ~/.globus/usercert.pem ) or a proxy (ex. .IR /tmp/x509up_u<uid> )..TP.B X509_USER_KEYSpecifies a non-standard location for the private key from which theproxy credential is created.The location may be the path to an end-entity certificate(ex. .IR ~/.globus/usercert.pem ) or a proxy (ex. .IR /tmp/x509up_u<uid> )..TP.B GT_PROXY_MODESet to "old" to store a "legacy globus proxy" in the MyProxyrepository..TP.B MYPROXY_TCP_PORT_RANGESpecifies a range of valid port numbers in the form "min,max"for the client side of the network connection to the server.By default, the client will bind to any available port.Use this environment variable to restrict the ports used toa range allowed by your firewall.If unset, MyProxy will follow the setting of the.B GLOBUS_TCP_PORT_RANGEenvironment variable..SH AUTHORSBill Baker,Jim Basney,Shiva Shankar Chetan,Patrick Duda,Jarek Gawor,Monte Goode,Daniel Kouril,Zhenmin Li,Jason Novotny,Miroslav Ruda,Benjamin Temko,and Von Welch.SH "SEE ALSO".BR myproxy-change-pass-phrase (1),.BR myproxy-destroy (1),.BR myproxy-info (1),.BR myproxy-logon (1),.BR myproxy-retrieve (1),.BR myproxy-store (1),.BR myproxy-server.config (5),.BR myproxy-admin-adduser (8),.BR myproxy-admin-change-pass (8),.BR myproxy-admin-load-credential (8),.BR myproxy-admin-query (8),.BR myproxy-server (8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?