docs/73577: Extra cat(1) in example section of samba

Pierre-Paul Lavoie ppl at nbnet.nb.ca
Fri Nov 5 19:40:37 UTC 2004


>Number:         73577
>Category:       docs
>Synopsis:       Extra cat(1) in example section of samba
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 05 19:40:35 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Pierre-Paul Lavoie
>Release:        
>Organization:
>Environment:
>Description:
Section "23.10.2.3 Security Settings" of the FreeBSD handbook.

      http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-samba.html

The example is

# cat /etc/passwd | grep -v "^#" | make_smbpasswd > /usr/local/private/smbpasswd
# chmod 600 /usr/local/private/smbpasswd

The first command should be

# grep -v "^#" /etc/passwd | make_smbpasswd > /usr/local/private/smbpasswd

    or

# grep -v "^#" < /etc/passwd | make_smbpasswd > /usr/local/private/smbpasswd

I would think that the former is better.
>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list