大家讲道理2017-04-17 15:19:30
useradd
-u user number specifies the uid. If the -o option is also present, the uid of other users can be reused.
PHP中文网2017-04-17 15:19:30
Isn’t this design unreasonable? Why does one uid need multiple users? If you want to design it as one account that can add sub-accounts, then the uid is still unique, and you need to add a pid, pointing to the uid of the parent account
巴扎黑2017-04-17 15:19:30
You should build a relationship table, one-to-many
A table:
id uid
B table (relationship table):
A.id userName(1,2...)
阿神2017-04-17 15:19:30
Wouldn’t it be enough to set each username into a field, such as username1, username2...