Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-08-2016, 07:16 AM
|
#1
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
GID and UID needs change
Is/can the UID and GID be the same number, or does the user UID and his username group get created in sequence, ie. user UID 1000 Users name Group GID 1002, or the next available number.
I got a change some things around.
Ya think I'd a paid more attention in class. lol
("class" being a factitious entity)
Last edited by BW-userx; 12-08-2016 at 07:19 AM.
|
|
|
12-08-2016, 09:01 AM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,968
|
They can be the same valued number. You should provide better information here about what exactly the problem is.
You can change the GID and UID to any number values, including numbers which are meaningless to your system.
So you're either asking just about changing GID and UID or the rules, or you have a particular problem which you wish to fix.
|
|
|
12-08-2016, 09:10 AM
|
#3
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
Original Poster
|
Quote:
Originally Posted by rtmistler
They can be the same valued number. You should provide better information here about what exactly the problem is.
You can change the GID and UID to any number values, including numbers which are meaningless to your system.
So you're either asking just about changing GID and UID or the rules, or you have a particular problem which you wish to fix.
|
the exact problem is I need to change my UID and GID, therefore all I need to know is what I asked.
Quote:
Is/can the UID and GID be the same number,
|
thank you, it is now fixed.
added how to
Code:
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>
or
usermod userName:GroupName /path/ -R
Last edited by BW-userx; 12-08-2016 at 09:34 AM.
|
|
|
All times are GMT -5. The time now is 06:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|