1832552 Members
5970 Online
110043 Solutions
New Discussion

user name length

 
Pocius Arturas
Advisor

user name length

Hello,
How can add user with name more than 8 characters.
(HP-UX 10.20, E35)

Thank you
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: user name length

Pete Randall
Outstanding Contributor

Re: user name length

The link Patrick pointed you to will tell you that, while you can accomplish this (via a patch), you really shouldn't. You're inviting all sorts of problems. Leave it at 8 characters.

Pete

Pete
Michael Steele_2
Honored Contributor

Re: user name length

set_parms hostname has all the "basic" information. It specifies 64 characters but this includes the domain. This is called the fully qualified hostname. 8 characters is for uname.
Support Fatherhood - Stop Family Law
Pocius Arturas
Advisor

Re: user name length

Thank you for the answers.
In my case I need longer names to support login from Windows clients to samba server shared resources on HP10.20. And I need that these user names be the same both for Windows domain (which is more than 8 char.) and samba client logins to shares.

Arturas
Pete Randall
Outstanding Contributor

Re: user name length

Good luck!

Pete

Pete
Darren Prior
Honored Contributor

Re: user name length

Hi,

There is a way round this if you only require the long names for Samba.

The "username map" variable can be pointed to a file that looks something like this:

mylogin = mylongwinlogin
darrenp = darrenprior
bob = bobtheadmin

Then you can have short login names on the HP-UX box which are mapped from the long Windows usernames.

See p162 in the Using Samba book from O'Reilly, or look up username map in your documentation.

regards,

Darren.
Calm down. It's only ones and zeros...
Michael Steele_2
Honored Contributor

Re: user name length

Pocius
Refer to "username map":

EXAMPLE 1a:

vi /etc/smb.conf

[global]
username map = /etc/samba/usermap.txt

EXAMPLE 1b:

vi usermap.txt file

# unix name = SMB client username

jarwin = JosephArwin
manderso = MarkAnderson
users = @account
Support Fatherhood - Stop Family Law