Skip to content

Commit aee1d8f

Browse files
[Doc] Fix user identity example (#57227)
Signed-off-by: 絵空事スピリット <[email protected]>
1 parent e7d7a01 commit aee1d8f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/en/administration/user_privs/privilege_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Each object has a set of privilege items that can be granted. These privileges d
4040

4141
### User identity
4242

43-
In StarRocks, each user is identified by a unique user ID. It consists of the IP address (user host) and username, in the format of `username @'userhost'`. StarRocks identifies users with the same username but from different IP addresses as different user identities. For example, `user1@'starrocks.com'` and `user1@'mirrorship.com'` are two user identities.
43+
In StarRocks, each user is identified by a unique user ID. It consists of the IP address (user host) and username, in the format of `username @'userhost'`. StarRocks identifies users with the same username but from different IP addresses as different user identities. For example, `user1@'172.65.xx.1'` and `172.65.xx.2'` are two user identities.
4444

4545
Another representation of user identity is `username @['domain']`, where `domain` is a domain name that can be resolved by DNS as a set of IP addresses. `username @['domain']` is finally represented as a set of `username@'userhost'`. You can use `%` for the `userhost` part for fuzzy match. If `userhost` is not specified, it defaults to `'%'`, which means users of the same name logged in from any host.
4646

docs/ja/administration/user_privs/privilege_overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ StarRocks の権限システムを理解するための**基本概念**:
4040

4141
### ユーザーアイデンティティ
4242

43-
StarRocks では、各ユーザーは一意のユーザー ID で識別されます。これは、IP アドレス (ユーザーホスト) とユーザー名で構成され、`username @'userhost'` の形式です。StarRocks は、異なる IP アドレスからの同じユーザー名を持つユーザーを異なるユーザーアイデンティティとして識別します。たとえば、`user1@'starrocks.com'``user1@'mirrorship.com'` は 2 つのユーザーアイデンティティです。
43+
StarRocks では、各ユーザーは一意のユーザー ID で識別されます。これは、IP アドレス (ユーザーホスト) とユーザー名で構成され、`username @'userhost'` の形式です。StarRocks は、異なる IP アドレスからの同じユーザー名を持つユーザーを異なるユーザーアイデンティティとして識別します。たとえば、`user1@'172.65.xx.1'``user1@'172.65.xx.2'` は 2 つのユーザーアイデンティティです。
4444

4545
ユーザーアイデンティティの別の表現は `username @['domain']` であり、`domain` は一連の IP アドレスとして DNS によって解決できるドメイン名です。`username @['domain']` は最終的に一連の `username@'userhost'` として表されます。`userhost` 部分には `%` を使用してあいまい一致を行うことができます。`userhost` が指定されていない場合、デフォルトで `'%'` となり、任意のホストからログインした同じ名前のユーザーを意味します。
4646

@@ -118,4 +118,4 @@ SET ROLE コマンドは互いに上書きされることに注意してくだ
118118
## 参考文献
119119

120120
- [Privileges supported by StarRocks](privilege_item.md)
121-
- [Manage user privileges](User_privilege.md)
121+
- [Manage user privileges](User_privilege.md)

docs/zh/administration/user_privs/privilege_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ StarRocks 采用了两种权限模型:
3939

4040
### 用户标识
4141

42-
在 StarRocks 中,每个用户都拥有唯一的用户标识。由用户登录的 IP(userhost) 和用户名(username)组成,写做:`username@'userhost'`。StarRocks 会将拥有相同用户名,但来自不同 IP 的用户识别为不同的用户标识,即 `user1@'starrocks.com'``user1@'mirrorship.com'` 是两个用户标识。
42+
在 StarRocks 中,每个用户都拥有唯一的用户标识。由用户登录的 IP(userhost) 和用户名(username)组成,写做:`username@'userhost'`。StarRocks 会将拥有相同用户名,但来自不同 IP 的用户识别为不同的用户标识,即 `user1@'172.65.xx.1'``user1@'172.65.xx.2'` 是两个用户标识。
4343

4444
用户标识的另一种表现方式为 `username@['domain']`,其中 `domain` 为域名,可以通过 DNS 解析为一组 IP。最终表现为一组 `username@'userhost'`。其中,`userhost` 的部分可以使用 `%` 来进行模糊匹配。如果不指定 `userhost`,默认为 `'%'`,即表示从任意 host 连接到 StarRocks 的同名用户。
4545

0 commit comments

Comments
 (0)