你好呀!
我想确认命令“
点是[uid]不是实际用户。现在我可以一对一地获取实际的用户名
如果我需要将UID转换为实际用户,该怎么办?
我有2000多个用户,我不想运行2000次命令
+----------+--------------------------------------------+----------------------------------------------------------+-------+-----------------------------+---------------------------+------------------------------+ |
|uid |fs_quota |使用|principal_type |principal_name |METCA_SIZE |Enforcement_Type | |
+----------+--------------------------------------------+----------------------------------------------------------+-------+-----------------------------+---------------------------+------------------------------+ |
|1100500 |0 |1398094120448 |Kuser |_DEFAULT |0 |ksoft | |
|1101108 |4294967296 |93868544 |kgroup |mtl-a-900_manager |4294967296 |khard | |
|1101110 |4294967296 |338030080 |kgroup |mtl-a-900_manager |4294967296 |khard | |
|1101111 |0 |261950976 |Kuser |_DEFAULT |0 |ksoft | |
|1101117 |0 |2071973888 |Kuser |_DEFAULT |0 |ksoft | |
最好的答案hitesh0801
I checked in files version 3.6.1.3 (latest as of now)
The following command will give you the expected output\u00a0
<afs> quota.report <share-name>\u00a0resolve_uid_to_name=true
resolve_uid_to_name flag adds a user_name field in the report.\u00a0
The output will be something like this\u00a0
+-----------+-----+----------+------+----------------+----------------+------------+------------------+
| user_name <\/strong>| uid | fs_quota | used | principal_type | principal_name | quota_size | enforcement_type |
+-----------+-----+----------+------+----------------+----------------+------------+------------------+
+-----------+-----+----------+------+----------------+----------------+------------+------------------+<\/p>","className":"post__content__best_answer"}">