Bug 73577

Summary: Extra cat(1) in example section of samba
Product: Documentation Reporter: Pierre-Paul Lavoie <ppl>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Pierre-Paul Lavoie 2004-11-05 19:40:35 UTC
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.
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2004-11-05 20:20:40 UTC
State Changed
From-To: open->closed

Yep, you are right - this was indeed a useless use of 'cat'. 
I committed the first version of your patch.  Thanks!