Bug 104086

Summary: adduser man page does not match adduser usage
Product: Documentation Reporter: Jin Guojun <jin>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jin Guojun 2006-10-07 07:10:19 UTC
% /sbin/adduser -H
Usage: adduser [-dDv] 
          [ -c change_time ]
          [ -e expire_time ]
          [ -g primary_group ]
          [ -G gecos ]
          [ -h home_directory_basedir ]
          [ -H home_directory ]
          [ -m home_directory_mode ]
          [ -p password ]
          [ -P encrypted_password ]
          [ -s shell ]
          [ -S skeleton_directory ]
          [ -u uid ]


% man adduser
NAME
     adduser -- command for adding new users

SYNOPSIS
     adduser [-CDENShq] [-G groups] [-L login_class] [-d partition] [-f file]
             [-g login_group] [-k dotdir] [-m message_file] [-s shell]
             [-u uid_start] [-w type]

DESCRIPTION
              .......

Both SYNOPSIS and  DESCRIPTION are not match the program "adduser" usage, especially the -G and -H options.
Comment 1 Ceri Davies 2006-10-07 21:24:01 UTC
On Sat, Oct 07, 2006 at 06:06:35AM +0000, Jin Guojun wrote:

> >Environment:
> 6.1-RELEASE FreeBSD 6.1-RELEASE
> >Description:
> % /sbin/adduser -H
> Usage: adduser [-dDv] 
>           [ -c change_time ]
>           [ -e expire_time ]
>           [ -g primary_group ]
>           [ -G gecos ]
>           [ -h home_directory_basedir ]
>           [ -H home_directory ]
>           [ -m home_directory_mode ]
>           [ -p password ]
>           [ -P encrypted_password ]
>           [ -s shell ]
>           [ -S skeleton_directory ]
>           [ -u uid ]

There is no /sbin/adduser on FreeBSD; can you post the output of

   ident /sbin/adduser

please?

Ceri
Comment 2 Jin Guojun 2006-10-08 01:18:22 UTC
Ceri Davies wrote:

>On Sat, Oct 07, 2006 at 06:06:35AM +0000, Jin Guojun wrote:
>
>  
>
>>>Environment:
>>>      
>>>
>>6.1-RELEASE FreeBSD 6.1-RELEASE
>>    
>>
>>>Description:
>>>      
>>>
>>% /sbin/adduser -H
>>Usage: adduser [-dDv] 
>>          [ -c change_time ]
>>          [ -e expire_time ]
>>          [ -g primary_group ]
>>          [ -G gecos ]
>>          [ -h home_directory_basedir ]
>>          [ -H home_directory ]
>>          [ -m home_directory_mode ]
>>          [ -p password ]
>>          [ -P encrypted_password ]
>>          [ -s shell ]
>>          [ -S skeleton_directory ]
>>          [ -u uid ]
>>    
>>
>
>There is no /sbin/adduser on FreeBSD; can you post the output of
>
>   ident /sbin/adduser
>
>please?
>
>Ceri
>  
>
 ident /sbin/adduser
/sbin/adduser:
     $Id: adduser.pl,v 2.1 1995/02/03 17:07:39 polk Exp $
     $0: user $
     $0: addgroup $
     $0: mkdir $
     $0: can't mkdir $
     $0: can't chown $
     $0: can't chdir to $
     $0: Warning: can't copy $
     $0: can't chown $
     $nfile: $
     $0: can't chmod $
     $nfile: $
     $0: can't open $
     $0: can't open $


I do not know how they got in there.
I will pay attention to it when I will install 6.2-R from scratch.

Thanks,

    -Jin
Comment 3 Ceri Davies freebsd_committer freebsd_triage 2006-10-08 11:00:10 UTC
State Changed
From-To: open->closed

That isn't our adduser.