Re: [Hampshire] /etc/service names

Top Page

Reply to this message
Author: Richard Brown
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] /etc/service names
On Jan 10, 2008 12:21 PM, James Courtier-Dutton <james.dutton@???> wrote:
> Hi,
>
> I know hostnames have the following naming restrictions.
> Hostnames must be no longer than 22 characters in length. You can use
> a-z,0-9, and '-'. A hostname cannot have any spaces nor can it start
> with a '-'.
>
> Is there a similar restriction for the /etc/services file in Linux?


>From man services


       The service-name should begin in the first column of  the  file,  since
       leading  spaces  are  not stripped.  service-names can be any printable
       characters excluding space and tab.  However, a conservative choice  of
       characters  should  be  used to minimize compatibility problems.  E.g.,
       a-z, 0-9, and hyphen (-) would seem a sensible choice.


Regards,

--
Richard Brown