For example, hot to set-up the system for john.smith and jsmith to be synonyms?

UPDATE: the reason is than I want a user to be registered in the system as jsmith and to have john.smith@example.com email address.

link|improve this question

38% accept rate
To what end? Do you want both john.smith and jsmith to have the same permissions? – Tyler K Jul 9 '10 at 4:29
feedback

2 Answers

You can't, reliably. Not all auth mechanisms allow for this, either natively or hacked-in.

Now if you don't mind it being an email alias, then just add a line to /etc/aliases and rebuild the alias DB.

link|improve this answer
Yes yes, what I actually need is an email alias (but I have never heard of them before as I am just starting my Linux admin career). I need a user login as jsmith and have john.smith@example.com email address. – Ivan Jul 9 '10 at 4:50
So then add john.smith: jsmith. – Ignacio Vazquez-Abrams Jul 9 '10 at 4:56
Not all MTA support /etc/aliases. – Warner Jul 9 '10 at 13:16
feedback

What you looking for is an email alias, not an alias for the user name. Each user in Linux has one and only one name. However, setting up an email server is an entirely different matter. You can set up as many email accounts, with as many aliases to those accounts, as you like. Specifics of doing that are dependent on what your email package is.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.