Hi all,
i'm setting up mail server and here is the question:
if, for example "firstname.lastname@domain.com" is e-mail address, then
how can i setup login as "firstname.lastname" and "password" not only "firstname".
Of course, users want all things simple. But i don't want to use login names longer than 8 chars.
Any ideas? Or should i try to create users as "firstname.lastname" in /etc/passwd file ??
Gasha
On Sun, 24 Oct 2004 00:44:24 +0300 Gasha cirvis@konts.lv wrote:
Hi all,
i'm setting up mail server and here is the question:
if, for example "firstname.lastname@domain.com" is e-mail address, then
how can i setup login as "firstname.lastname" and "password" not only "firstname".
Of course, users want all things simple. But i don't want to use login names longer than 8 chars.
Any ideas? Or should i try to create users as "firstname.lastname" in /etc/passwd file ??
You could put both firstname and firstname.lastname as separate entries in /etc/passwd but with the same password/uid/gid/etc in both entries.
Always put in firstname before firstname.lastname so getpwnam() and getpwuid() always returns firstname. This is what NetBSD does with the 'toor' user (which is root but with bourne shell instead of 'c' shell).
Hope this helps
--Andrew
participants (2)
-
Andrew Basterfield
-
Gasha