码迷,mamicode.com
首页 > 系统相关 > 详细

Linux修改GID UID

时间:2014-11-27 17:53:21      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   for   on   log   bs   

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

标签:blog   http   io   ar   sp   for   on   log   bs   

原文地址:http://www.cnblogs.com/geekcui/p/4126655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!