LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-12-2011, 03:11 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
D-BUS useradd error???


I,m having a problem with D-BUS-1.2.24
Code:
groupadd -fg 18 messagebus &&
useradd -c "D-BUS Message Daemon User" -d /dev/null \
        -u 18 -g messagebus -s /bin/false messagebus || [ $? == 9 ]
the output I get is
Code:
useradd: group '1000' does not exist
useradd: the GROUP= configuration in /etc/default/useradd will be ignored
In the groups file I have messagebus:x:18
/etc/defaults/useradd
Code:
# useradd defaults file
GROUP=1000
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
Any ideas plz
 
Old 06-12-2011, 03:26 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I checked /etc/passwd file there is a user listed
Code:
messagebus:!:18:18:D-BUS Message Daemon User:/dev/null:/bin/false
So why the error???
 
Old 06-12-2011, 03:58 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Do you have a group with GUID 1000? All useradd is complaining about is that there doesn't seem to be such a group although you have specified it as default group in your configuration file.
 
Old 06-12-2011, 04:12 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
No there is no group 1000. So 2 options, 1 remove the new group and user then create group 1000 or 2 leave as it is?
If I create group 1000 what to name it? If I leave it as it is I assume this will not affect the build
 
Old 06-12-2011, 05:01 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

alternatively you could issue the following command:
Code:
sed -i.bak '/GROUP/ s/^/#/' /etc/default/useradd
It will comment out the default user-group and get rid of the warning.
It will also make a backup of the original file with extension *.bak.
 
Old 06-12-2011, 05:05 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
This is only a warning and will not affect your built.
 
Old 06-13-2011, 01:16 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Ok I have checked the lfs book and it dosn't mention a group 1000, But it seems it would be a good idea to include it? As further packages relliy on it, But ok for future reference when creating the groups file, in lfs adding the group 1000 then would solve the prob, What should the group be named? or is group:x:1000 ok.
 
Old 06-13-2011, 01:25 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
Code:
groupadd -fg 18 messagebus &&
useradd -c "D-BUS Message Daemon User" -d /dev/null \
        -u 18 -g messagebus -s /bin/false messagebus || [ $? == 9 ]
These 2 commands should create a group called messagebus with gid 18 and a user called messagebus with uid 18

I don't know why you see the error, but check if the group and user are present and have the correct id's. If so, you are done in regards to adding this specific user and group.

Do keep an eye out on this "group '1000' does not exist" error (you are probably going to create other users and group in due time).

Hope this helps.
 
Old 06-13-2011, 01:40 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I seem to remember it popping up when building ssh. On my 2nd build system I have put the user as group 1000 IS this a mistake!!! I dont think the error popped up when I installed ssh on that system
 
Old 06-13-2011, 02:04 PM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
I seem to remember it popping up when building ssh. On my 2nd build system I have put the user as group 1000 IS this a mistake!!! I dont think the error popped up when I installed ssh on that system
I don't think that is is technically wrong but ssh, being a system user, is normally found in the lower regions of the uid count (Debian uses 107, BLFS uses 50 I use 108).

If this error showed up before you created the ssh user then ssh's uid of 1000 cannot be the cause. If this error showed up afterwards (or you do want to normalize the uid): You might try to change ssh's uid
Code:
usermod -u 50 sshd
and check afterwards if there are any leftover files with a uid of 1000 and change these as well
Code:
find / -uid 1000 -print
Hope this helps.

Last edited by druuna; 06-13-2011 at 02:05 PM. Reason: typo
 
Old 06-13-2011, 03:08 PM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I have sshd as 50 0n my 1st system thats the 1 that pulled the error when installing ssh, and I have user as 1002 that was self generated when I added "me" as a user That is on my 1st build system.
The output of the find is home/martyn/ and all lower dirs. And /tools and /var/mail/help

I,m not to worried about it things work ok. just thought I would find correct way for group file,

Last edited by spiky0011; 06-13-2011 at 03:16 PM.
 
Old 06-14-2011, 06:30 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
As stated before, this is not an error, but a simple warning that the given default group doesn't exist. Nothing to worry about.
 
Old 06-14-2011, 06:52 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
To add to TobiSGD's reply:

If you want to get rid of this warning you can:

1) create a group called users with gid 1000 groupadd -g 1000 users (users is commonly used as the default group).
2) if you already have a group called users, change the GROUP entry in /etc/default/useradd to reflect its gid.

Hope this helps.
 
  


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
smbldap-useradd error? deathsfriend99 Linux - Software 1 12-07-2011 08:14 AM
useradd error sherimm Linux - Software 4 04-23-2009 08:58 AM
Useradd Error (RHEL4) carlosinfl Red Hat 4 09-06-2007 01:32 PM
useradd-error ahmed4linux Linux - General 2 12-25-2004 09:18 AM
Useradd Error LinuxRam Linux - Newbie 7 08-12-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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