Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to increase max username length? Post 302475580 by jim mcnamara on Monday 29th of November 2010 07:44:27 AM
Old 11-29-2010
From the command line try:
Code:
getconf _POSIX_LOGIN_NAME_MAX  
#or 
getconf LOGIN_NAME_MAX

For a lot of reasons it is a really, really bad idea to try to exceed this value:
applications using (_POSIX_)LOGIN_NAME_MAX for usernames will segfault.
LDAP will not work.
Other PAM schemes will not work.
OpenSSH protocol 1 will fail with overlong usernames.
/etc/rhosts won't work for users on your box connecting to remote boxes

I don't think anything good will come from this but try editing /etc/default/login.defs.
CentOS follows Red Hat useradd conventions, see: /etc/default/useradd
 

10 More Discussions You Might Find Interesting

1. Solaris

Username length

I have been told that my college wants to implement LDAP. This creates a problem for me because my users active directory names and email user names differ from their unix system logins. Is there any way to make the Unix usernames more compliant to my user's other account usernames??? We use... (1 Reply)
Discussion started by: rod23
1 Replies

2. UNIX for Dummies Questions & Answers

Length of a Unix filepath max length

Hi Guys, Could anyone shed some light on the length of a Unix filepath max length pls ? thanks ! Wilson (3 Replies)
Discussion started by: wilsontan
3 Replies

3. Shell Programming and Scripting

what is the max length of args i can pass in shell?

i have a shell script which takes several args. what is the maximum length of string i can give as argument? (6 Replies)
Discussion started by: senthilk615
6 Replies

4. UNIX for Dummies Questions & Answers

Read file and remove max length

Hi all, I tried to write a shell to read huge file and eliminate max length record which is wrong generated record. But I get an error remove_sp.sh: line 27: syntax error near unexpected token `else' remove_sp.sh: line 27: ` else $LINE >> REJFILE' My shell is here: #!/bin/sh... (5 Replies)
Discussion started by: mr_bold
5 Replies

5. Shell Programming and Scripting

Counting the max length of string

Hi all, I have a flat file of 1000 rows. I want to check the length of the 5th column. The one having the longest length , I want to set it as DEFINED PARAMETER. So later I can check others with that particular number only. Any ideas ?? (2 Replies)
Discussion started by: ganesh123
2 Replies

6. UNIX for Dummies Questions & Answers

How to increase the maximum record length

Hi, I need to create a file of record length more than 300 characters. But in my unix box, i am able to create a file only with a maximum of 256 characters per record. Is there anyway i can create a file with more than 300 characters in this case? Or How to increase the maximum record... (1 Reply)
Discussion started by: mahish20
1 Replies

7. Red Hat

Increase Password length

Hello All, I am using RHEL 4. Currently maximum password length limit is set to 8 on my system. Please tell what do i need to change to increase this limit to say 20. I changed the login.defs and included the following line - " PASS_MAX_LEN 20 " but this dint work. I further... (7 Replies)
Discussion started by: shamik
7 Replies

8. UNIX for Advanced & Expert Users

NIS username max lenght

Hi I want to know the maximum length of user name under NIS? I tried googling but it didnt help :(. If there is any command to find out this please let me know. I know on unix user name should be 8 characters long but just i want to know if i can have 9 letter user under mapped under NIS. (1 Reply)
Discussion started by: zedex
1 Replies

9. Programming

key_t type max length or boundaries value

Hello, In shared memory, when using shmget function, first parameter is ket_t key. I know it is an integer type, but length of it is system dependent. That means may not be have integer's ranges. What is range of key_t in Linux? Is it different in distros, for example in ubuntu & fedora? (2 Replies)
Discussion started by: pronetin
2 Replies

10. UNIX for Dummies Questions & Answers

Modify the max username length

Hey Any one... Do u know any way I can modify the max username length in unix? I guess it is 32/64 characters by default. Suppose I want to increase it to 128. i hav tried /etc/skel but no use... How can I do that? (2 Replies)
Discussion started by: MayureshRisbud
2 Replies
sasl_server_userdb_checkpass_t(3)				  SASL man pages				 sasl_server_userdb_checkpass_t(3)

NAME
sasl_server_userdb_checkpass_t - Plaintext Password Verification Callback SYNOPSIS
#include <sasl/sasl.h> int sasl_canon_user_t(sasl_conn_t *conn, void *context, const char *user, unsigned ulen, unsigned flags, const char *user_realm, char *out_user, unsigned out_umax, unsigned *out_ulen) DESCRIPTION
sasl_canon_user_t Is the callback for an application-supplied user canonicalization function. This function is subject to the requirements that all user canonicalization functions are: It must copy the result into the output buffers, but the output buffers and the input buffers may be the same. context context from the callback record user and ulen Un-canonicalized username (and length) flags Either SASL_CU_AUTHID (indicating the authentication ID is being canonicalized) or SASL_CU_AUTHZID (indicating the authorization ID is to be canonicalized) or a bitwise OR of the the two. user_realm Realm of authentication. out_user and out_umax and out_ulen The output buffer, max length, and actual length for the username. RETURN VALUE
SASL callback functions should return SASL return codes. See sasl.h for a complete list. SASL_OK indicates success. SEE ALSO
sasl(3), sasl_callbacks(3), sasl_errors(3) SASL
10 July 2001 sasl_server_userdb_checkpass_t(3)
All times are GMT -4. The time now is 02:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy