首页 > 代码库 > Linux修改GID UID
Linux修改GID UID
usermod -u <NEWUID> <LOGIN>
groupmod -g <NEWGID> <GROUP>
find / -user <OLDUID> -exec chown -h <NEWUID> {} \;
find / -group <OLDGID> -exec chgrp -h <NEWGID> {} \;
usermod -g <NEWGID> <LOGIN>
From <https://disqus.com/embed/comments/?base=default&disqus_version=c40f9aae&f=muffinresearchblog&t_u=https%3A%2F%2Fmuffinresearch.co.uk%2Flinux-changing-uids-and-gids-for-user%2F&t_d=Linux%3A%20Changing%20UIDs%20and%20GIDs%20for%20a%20user&t_t=Linux%3A%20Changing%20UIDs%20and%20GIDs%20for%20a%20user&s_o=default#2>
Linux修改GID UID
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。