keylogin (解密并使用keyserv存储密钥)

秃噜豆儿 发表于 2020-07-05 08:15
浏览次数:
在手机上阅读

在Solaris操作系统上,keylon命令使用keyserv解密并存储一个密钥。

查看英文版

目录

1 keylogin 运行系统环境

2 keylogin 描述

3 keylogin 语法

4 keylogin 选项

keylogin 运行系统环境

Unix&Linux

keylogin 描述

keylon命令提示输入密码,并使用它解密用户的密钥。密钥可以在/etc/publickey文件中找到。源及其查找顺序在/etc中指定/nsswitch.conf文件。一旦解密,用户的密钥由本地密钥服务器进程keyserv存储。当向任何安全的RPC服务(如NFS或NIS+)发出请求时,将使用此存储的密钥。程序keyloout可用于删除keyserv存储的密钥。
如果无法获取调用方的密钥,或者给定的密码不正确,keylon将失败。对于新用户或主机,可以使用newkey、nisaddcred或nisclient添加新密钥。
如果为系统配置了多个身份验证机制,则每个配置的机制的密钥都由keyserv解密和存储。有关配置多个身份验证机制的信息,请参阅nisauthconf。

The keylogin command prompts for a password, and uses it to decrypt the user's secret key. The key can be found in the /etc/publickey file. The sources and their lookup order are specified in the /etc/nsswitch.conf file. Once decrypted, the user's secret key is stored by the local key server process, keyserv. This stored key is used when issuing requests to any secure RPC services, such as NFS or NIS+. The program keylogout can be used to delete the key stored by keyserv.

keylogin fails if it cannot get the caller's key, or the password given is incorrect. For a new user or host, a new key can be added using newkey, nisaddcred, or nisclient.

If multiple authentication mechanisms are configured for the system, each of the configured mechanism's secret key is decrypted and stored by keyserv. See nisauthconf for information on configuring multiple authentication mechanisms.

查看英文版

查看中文版

keylogin 语法

keylogin [-r]
keylogin [-r]

查看英文版

查看中文版

keylogin 选项

-r

更新/etc/.rootkey文件。此文件包含超级用户的未加密密钥。只有超级用户才能使用此选项。

它的使用使得以超级用户身份运行的进程可以发出经过身份验证的请求,而无需管理员在系统启动时以超级用户的身份显式运行keylon。

当主机在publickey数据库中的条目发生更改,并且/etc/.rootkey文件相对于publickey数据库中存储的实际密钥对已过期时,管理员应该使用-r选项。

对/etc/.rootkey文件的权限是这样的,超级用户可以读写它,但是系统上没有其他用户。

如果为系统配置了多个身份验证机制,则配置的每个机制的密钥都存储在/etc/.rootkey文件中。
-r Update the /etc/.rootkey file. This file holds the unencrypted secret key of the superuser. Only the superuser can use this option. It is used so that processes running as superuser can issue authenticated requests without requiring that the administrator explicitly run keylogin as superuser at system startup time. The -r option should be used by the administrator when the host's entry in the publickey database has changed, and the /etc/.rootkey file has become out-of-date with respect to the actual key pair stored in the publickey database. The permissions on the /etc/.rootkey file are such that it can be read and written by the superuser but by no other user on the system.

If multiple authentication mechanisms are configured for the system, each of the configured mechanism's secret keys is stored in the /etc/.rootkey file.

查看英文版

查看中文版

其他命令行

kill | killall |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条