DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th January 2009
_hmp_ _hmp_ is offline
New User
 
Join Date: Nov 2008
Posts: 6
Default Username longer than 16 characters

Is there any way to enable usernames with more than 16 characters. I need to send mail using the mail MUA that has more than 16 chars and I tried to create a user with that much chars, but pw doesnt allow more than 16.
Reply With Quote
  #2   (View Single Post)  
Old 12th January 2009
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

this is what man pages say on OpenBSD
Quote:
username
It is recommended that login names contain only lowercase charac-
ters and digits. They may also contain uppercase characters,
non-leading hyphens, periods, underscores, and a trailing `$'.
Login names may not be longer than 31 characters. If you need a
longer login name for e-mail addresses, you can define an alias
in /etc/mail/aliases.
Reply With Quote
  #3   (View Single Post)  
Old 12th January 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

The maximum login name seems to be defined in sys/param.h (MAXLOGNAME) and utmp.h.

It should be possible to increase this and recompile, but it doesn't seem to be recommended, see:
adduser(8) (RESTRICTIONS section)
http://markmail.org/message/nzaqc2zab5dvttol

As suggested in the above link, you can use mail aliases for mail adresses with >16 characters
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 12th January 2009
_hmp_ _hmp_ is offline
New User
 
Join Date: Nov 2008
Posts: 6
Default

I simply can't make it to work.

This is what i usually do, just add a user and send mail. Lets say username is "lessthan16" and my domain is "me.org". I would just add a user, type "mail test@test.org" and type the mail, then send it. Now lets say a username should be "thisismorethan16charlong" and my domain is "me.org". This username cannot be created so lets say i create a user "lessthan16".

When I log in with "lessthan16" and type "mail test@test.org" ( type the message ), I want that the recived mail by test@test.org has the From field like this: "thisismorethan16charlong@me.org".

Can anyone please tell me how this should be done. If you can write the example for this username I would be very grateful.

Thank You in advance.
With regards,
_hmp_



Doesn't matter, I'm stupid, SOLVED!

Thank you all.

Last edited by _hmp_; 12th January 2009 at 11:16 PM.
Reply With Quote
  #5   (View Single Post)  
Old 13th January 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Please post the solution for the archive. There's nothing worse than finding a thread about the exact problem you're experiencing only to have "fixed" as the last post, without an explanation.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 13th January 2009
_hmp_ _hmp_ is offline
New User
 
Join Date: Nov 2008
Posts: 6
Default

Well the problem is I didn't really fix it. I just spoofed the mail using sendmail so my username looks like it is longer than 16 chars. Using aliases i redirected the longer then 16 char mail to my user (less then 16 char) mail.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input foreign characters under X11 Beastie General software and network 5 30th August 2009 11:51 AM
my radeon hd card is no longer working iacbsd OpenBSD General 8 17th July 2009 10:14 AM
sorting special characters gosha Programming 15 9th April 2009 02:29 AM
Username Change ninjatux Off-Topic 3 24th March 2009 06:45 PM


All times are GMT. The time now is 07:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick