April 19, 2015, 05:44:42 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
Author Topic: Non-root user's group GID number doesn't stick when creating new files  (Read 1429 times)
Posts: 25

« on: June 29, 2008, 02:46:53 pm »

On initial VL5.9 standard install, I created a non-root user, and it was automatically assigned to 1000:1000 uid:gid.  Later, I wanted to change the ID numbers to 1001:1001, but keep the names.  I logged in as root to ensure that user 1000 wasn't logged in or their personal files weren't in use.  Then, ran "usermod -u 1001 [user-name]" and "groupmod -g 1001 [group-name]"  Then changed directory to /home/[user-name], and used "chown -R --from=:1000 :1001 ./*"

All my user's files and folders were alright.  But, sometimes when I created new files/folders, the GID 1000 got assigned again.  Seeing this, I ran "groups" as that user and got an error about 1000 being the user's group, but that number not being assigned. (I forget the exact wording).  In /etc/group, the line for that user's group had the correct number assigned, but no user's listed.  So I added the user's name to that line in the file, saved it, then opened the group shadow file, and saw a line for the relevant group, but there was an exclamation mark, too.  Left this alone.

The username is okay, but the user's group number is a problem.
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!