![Share on Facebook Facebook](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Share by email mail](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/mail.png)
CentOS6/RHEL6とCentOS7/RHEL7の/etc/login.defsの違いです。
- CentOS6/RHEL6
- CentOS7/RHEL7
1 2 3 4 5 6 7 8 9 10 11 |
# # Min/max values for automatic uid selection in useradd # UID_MIN 500 UID_MAX 60000 # # Min/max values for automatic gid selection in groupadd # GID_MIN 500 GID_MAX 60000 |
CentOS7/RHEL7ではシステムUIG,GIDの範囲を新たに追加されています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# # Min/max values for automatic uid selection in useradd # UID_MIN 1000 UID_MAX 60000 # System accounts SYS_UID_MIN 201 SYS_UID_MAX 999 # # Min/max values for automatic gid selection in groupadd # GID_MIN 1000 GID_MAX 60000 # System accounts SYS_GID_MIN 201 SYS_GID_MAX 999 |
UID,GIDの自動割当番号の開始が異なるのでデータ移行に注意が必要ですね。
やはりUID=500から割り振られたアカウントは新たにUID=1000からに割り振った方がいいのでしょうか?
そうすると/homeをrsyncで同期後にUID,GIDの付け替えscriptが必要だな。