LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-08-2016, 07:16 AM   #1
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 12-08-2016, 09:01 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,890
Blog Entries: 13

Rep: Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934Reputation: 4934
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.
 
Old 12-08-2016, 09:10 AM   #3
BW-userx
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
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by rtmistler View Post
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.
 
  


Reply

Tags
gid, uid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GID / UID change after FTP upload medspec Linux - Newbie 1 03-10-2011 01:09 AM
what is uid and gid rmanocha Linux - Software 9 08-18-2008 11:03 PM
cifs not using uid and gid mattd7591 Linux - General 10 07-19-2007 11:30 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 11:39 AM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration