LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-09-2015, 11:19 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
groupmod: group '1000' does not exist


I've just installed 15.10. I'm trying to rename a group but am getting "group not found", see below. any idea what is wrong and how to fix?

Code:
$ cat /etc/group
:
nopasswdlogin:x:127:
hprsadmin:x:1000:
sambashare:x:128:hprsadmin
ntp:x:129:
winbindd_priv:x:130:

$ groupmod -n users 1000
groupmod: group '1000' does not exist
root@labrat:~#
 
Old 12-10-2015, 12:43 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
does it contain a line with a single : ?
probably that is the problem.
 
Old 12-11-2015, 12:38 AM   #3
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
That file looks unusually small. My /etc/group file has 72 lines, although I'm running Ubuntu 12.04.5, and have installed packages that add new groups.

Last edited by Dave Lerner; 12-11-2015 at 12:39 AM.
 
Old 12-16-2015, 12:10 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Dave Lerner View Post
That file looks unusually small. My /etc/group file has 72 lines, although I'm running Ubuntu 12.04.5, and have installed packages that add new groups.
I didn't list the whole file. I have created new groups (e.g. hprsadmin, 1000) and installed packages have created groups (e.g. ntp, winbindd_priv). The problem is with renaming a group.

Quote:
Originally Posted by pan64 View Post
does it contain a line with a single : ? probably that is the problem.
Sorry to have confused everyone. that ":" was my editing out the whole list of groups and putting in ":" as a 'continuation' marker. I just listed a subset of groups containing the one I was trying to rename.
 
Old 12-16-2015, 12:16 AM   #5
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Based on the "man" page, it looks like you specify the current name of the group, not its numerical ID. Try this:

Code:
groupmod -n users hprsadmin
 
Old 12-16-2015, 12:23 AM   #6
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by mfoley View Post
I've just installed 15.10. I'm trying to rename a group but am getting "group not found", see below. any idea what is wrong and how to fix?

Code:
$ cat /etc/group
:
nopasswdlogin:x:127:
hprsadmin:x:1000:
sambashare:x:128:hprsadmin
ntp:x:129:
winbindd_priv:x:130:

$ groupmod -n users 1000
groupmod: group '1000' does not exist
root@labrat:~#
Hi!

You cannot mix group ID and group NAME when using the -n switch.
Try this instead:
Code:
groupmod -n users hprsadmin
Best regards,
HMW

Edit: Dave Lerner beat me to it with a couple of minutes!

Last edited by HMW; 12-16-2015 at 12:25 AM.
 
Old 12-17-2015, 10:04 AM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
duh! It didn't even occur to me to use the group name instead of the number! Thanks!

'Nuther issue ... I've re-added a user account that existed on this host before the upgrade, but disappeared after. I was able to add the user, but when (as root) I tried resetting the password I got:

$ passwd thisuser
Current Kerberos password:
Current Kerberos password:
passwd: Authentication token manipulation error
passwd: password unchanged

This is a new one for me. I know I entered the password this user had before (albeit probabaly as a different UID.GID). And, I've never noticed the "Kerberos" thing before. How can I set this user's password?
 
Old 12-17-2015, 10:22 AM   #8
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Can you it do it through the GUI? It's location in the menu depends on the desktop environment, but you can the command "seahorse" to launch the "Passwords and Keys" utility.
 
Old 12-17-2015, 01:32 PM   #9
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by mfoley View Post
$ passwd thisuser
It appears (based on the '$' sign) that you are not doing this as root. Try the exact same command as root, then you don't have to know the previous password.

Best regards,
HMW
 
Old 12-18-2015, 11:58 AM   #10
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by HMW View Post
It appears (based on the '$' sign) that you are not doing this as root. Try the exact same command as root, then you don't have to know the previous password.

Best regards,
HMW
Yes, I'm doing this as root.

Quote:
Originally Posted by Dave Lerner View Post
can you it do it through the GUI? It's location in the menu depends on the desktop environment, but you can the command "seahorse" to launch the "Passwords and Keys" utility.
Not sure what I'm looking at there. This appears to let me create various "keyrings". I don't see that it is letting me change a user's login password.

I think somehow this must be a kerberos issue. Not even sure why this user would have anything to do with kerberos. Is there a way to reset/remove whatever password it has configured?
 
Old 12-18-2015, 03:28 PM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I'm going to repost this as a separate issue. I think the groupmod topic isn't going to attract attention. Thanks.
 
Old 12-19-2015, 05:33 AM   #12
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
But you did not do it as root, originally. You did:
Quote:
$ groupmod -n users 1000
groupmod: group '1000' does not exist
root@labrat:~#
Try:
Code:
sudo groupmod -n users hprsadmin
 
Old 12-19-2015, 09:39 AM   #13
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by TxLonghorn View Post
But you did not do it as root, originally. You did:

Try:
Code:
sudo groupmod -n users hprsadmin
Yes, I guarentee you I'm logged in as root $-sign notwithstanding. I changed the prompt. Also, the groupmod is not the problem. I got that straighted out using the groupname, not GID. The current issue is `passwd`. I've made a new posting on this.
 
  


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
[SOLVED] useradd command Why 1000:1000: Group? jaydul Linux - Newbie 8 03-14-2015 05:14 PM
[SOLVED] id: cannot find name for group ID 1000 / user ID 1000 McZ Linux From Scratch 1 01-14-2013 11:46 PM
group mockbuild does not exist ameetsaha Linux - Software 5 01-25-2010 01:26 AM
RPMs: user and group do not exist BroX Linux - Software 6 12-15-2003 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:08 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