setenv in /etc/login.conf

  • Thread starter Thread starter tib
  • Start date Start date
einen Doppelpunkt macht man in diesem File mit '\c'.

In der Standard-login.conf steht:

# Note that since a colon ':' is used to separate capability entries,
# a \c escape sequence must be used to embed a literal colon in the
# value or name of a capability (see the ``CGETNUM AND CGETSTR SYNTAX
# AND SEMANTICS'' section of getcap(3) for more escape sequences).

z.B:
Code:
default:\
	:login_prompt=Please identify yourself\c :\
	:passwd_prompt=Enter key\c :\

MfG,
garinger
 
tib said:
Ich werde mal einen PR öffnen!
Also in der Manpage steht aber:
man login.conf said:
Records in a class capabilities database consist of a number of colon-separated fields.
...
See getcap(3) for a more in-depth description of the format of a capability database.
...
Fields within each record in the database follow the getcap(3) conventions for...
Und gemäss den Konventionen für Manpages, muss da auch nur der Hinweis auf getcap kommen.

Evtl. vorhandenen default/example Konfigdateien sind natürlich immer lesenswert ;-)
 
Back
Top