Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154074 - Typo, could lead to unwanted results
Summary: Typo, could lead to unwanted results
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/virt-mai...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-04 14:52 UTC by sakkath
Modified: 2006-11-04 19:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sakkath 2006-11-04 14:52:52 UTC
Down near the vmail setup, it says 'groupadd -g $uid vmail,' it should be groupmod and not groupadd...
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2006-11-04 15:14:33 UTC
Why?
Comment 2 sakkath 2006-11-04 17:18:14 UTC
Issuing the 'groupadd -d $uid vmail' command given on the HOWTO, would spit back an error saying 'group vmail already exists'.  A baffled user might just skip this crucial step, as I almost did, and would receive less than expected results.  If you were to change groupadd to groupmod (groupmod -d $uid vmail), it will work as expected, and I'm pretty sure this was the original intent (to write groupmod vs groupadd to the wiki).
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2006-11-04 17:35:00 UTC
If the expected behavior is to make a new user called "vmail" and the group "vmail" with the only member, the new user "vmail", your suggestion won't fix that.
Comment 4 sakkath 2006-11-04 17:44:58 UTC
Well, the intent of the command, I believe, is to set the gid of %vmail to the same uid of vmail, correct me if I'm mistaken, and the listed groupadd command won't do this, it will just say 'group already exists,' and groupmod -g will do this, if i'm not mistaken?
Comment 5 sakkath 2006-11-04 17:48:25 UTC
Well, the useradd command listed, (adduser -d /home/vmail -s /bin/false vmail) should create the group, right?  I already had a vmail group because of another wiki, but i userdel vmail, groupdel vmail, and rm -rf'ed /home/vmail, so I wouldn't think the group would have existed, ergo I assume the adduser command listed creates it, which, as I previously said, will make any sortof group add to 'vmail,' just spit back group already exists, no?
Comment 6 nm (RETIRED) gentoo-dev 2006-11-04 18:16:31 UTC
Noooo . . . it's setup the way it is because there's nothing guaranteeing the group vmail already exists -- you said yourself *you* already had that group, because you had been following a *different document* that had set that up already. But users following this doc need the steps in the given order. Even if there is an error thrown (at some point in the future, let's suppose that the group is created by default through some other means), that doesn't invalidate the given instructions.

GDP is not responsible for anyone who rushes through a doc and starts skipping steps; that's why we have what we have, in the given order.

See "man useradd" and "man groupadd" for some rather obvious answers to your questions. ;)
Comment 7 sakkath 2006-11-04 18:24:57 UTC
But, I had issued groupdel vmail, and even checked /etc/group, and then re-groupdel'ed it and it said didn't exist, how is this possible? :x (I'm not saying I'm not wrong, I just am not the *most advanced* linux user out there.
Comment 8 nm (RETIRED) gentoo-dev 2006-11-04 18:40:43 UTC
(In reply to comment #7)
> But, I had issued groupdel vmail, and even checked /etc/group, and then
> re-groupdel'ed it and it said didn't exist, how is this possible? :x (I'm not
> saying I'm not wrong, I just am not the *most advanced* linux user out there.
> 

http://forums.gentoo.org is your friend.
Comment 9 sakkath 2006-11-04 18:42:17 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > But, I had issued groupdel vmail, and even checked /etc/group, and then
> > re-groupdel'ed it and it said didn't exist, how is this possible? :x (I'm not
> > saying I'm not wrong, I just am not the *most advanced* linux user out there.
> > 
> 
> http://forums.gentoo.org is your friend.
> 

Why would you direct me there?  I just would like to know whether what I'm saying is logical or not, I mean, I removed the group, but it says it still exists?  I don't see the issue with using bugs.gentoo.org, I was actually referred here by roger55 :p.
Comment 10 nm (RETIRED) gentoo-dev 2006-11-04 19:09:43 UTC
(In reply to comment #9)
> Why would you direct me there?  I just would like to know whether what I'm
> saying is logical or not, I mean, I removed the group, but it says it still
> exists?  I don't see the issue with using bugs.gentoo.org, I was actually
> referred here by roger55 :p.

Because bugzilla is NOT A SUPPORT FORUM, thanks. 

Comment 11 sakkath 2006-11-04 19:30:53 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Why would you direct me there?  I just would like to know whether what I'm
> > saying is logical or not, I mean, I removed the group, but it says it still
> > exists?  I don't see the issue with using bugs.gentoo.org, I was actually
> > referred here by roger55 :p.
> 
> Because bugzilla is NOT A SUPPORT FORUM, thanks. 
> 

I wasn't requesting support, I truly thought this was an error in the docs, and I'm trying to find out why it's not?