LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-18-2010, 08:25 AM   #1
linuxeth123
LQ Newbie
 
Registered: May 2010
Posts: 10

Rep: Reputation: 0
Changing primary group on a user


Does anyone know how to change the primary group on a user without changing the password? I've tried updating the /etc/passwd and running usermod -g group user

Both of those does change the group but somehow it messes up the password so the user cannot get in with the same password.
 
Old 05-18-2010, 09:01 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Well one would say that manually changing the passwd file is never a good idea.
I have not heard of usermod performing any alteration to a users passwd.

have you performed only the usermod step alone to see if it still causes an issue?
 
Old 05-18-2010, 09:26 AM   #3
linuxeth123
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Yea I know it's not a good idea to update the passwd file. I did the usermod first but either way it's not allowing the user to log in with their password.
 
Old 05-18-2010, 09:31 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Do you have the option to create a test account to try the same thing?
I changed mine twice without any issue.

Perhaps the user didn't remember their password correctly??
 
Old 05-18-2010, 09:40 AM   #5
linuxeth123
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Yea does the same thing. Any idea where I can look to see why the password would change?
 
Old 05-18-2010, 09:53 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Not that I can think of, hopefully someone else will be able to help.

Out of curiosity,

1. which distro ?
2. Does the group exist?
3. Are you performing as root or using sudo?
4. i notice you are posting from Windows, is there a reason not from linux box?
 
  


Reply



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
Adding AD user to a Local Primary Group? Uday123 Linux - Software 11 05-23-2011 03:06 PM
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
fat32 and user/group changing - can this be done? konqi Linux - Software 2 03-01-2008 06:24 AM
Changing user group atze Linux - Newbie 12 06-08-2004 08:27 AM
changing group of a system user porous Linux - General 4 10-21-2003 10:39 AM

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

All times are GMT -5. The time now is 12:17 AM.

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