- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: User name restrictions in Linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 07:13 PM
тАО08-30-2007 07:13 PM
User name restrictions in Linux
IS there a way to create a username with more than 8 characters in Linux? if i do it editing the password file, then i am not able to chnage the password for the user. let me know if there is a work aroung for this know issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 09:25 PM
тАО08-30-2007 09:25 PM
Re: User name restrictions in Linux
Red Hat Enterprise Linux 4 OS:
# getconf LOGIN_NAME_MAX --> 256
# useradd abcdefghijk
# more /etc/passwd
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 09:27 PM
тАО08-30-2007 09:27 PM
Re: User name restrictions in Linux
Further Testing.
# usermod -l lmnopqrstu abcdefghijk
# id lmnopqrstu
uid=501(lmnopqrstu) gid=501(abcdefghijk) groups=501(abcdefghijk)
# more /etc/passwd
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 09:47 PM
тАО08-30-2007 09:47 PM
Re: User name restrictions in Linux
But, the problem is
#getconf LOGIN_NAME_MAX
256
#cat /etc/passwd | grep pattabhiraman
pattabhiraman:x:30105:501::/data/u01/apps/db2:/bin/bash
When i try to login, it does not let me in..
login as: pattabhiraman
pattabhiraman@inharley's password:
Access denied
pattabhiraman@inharley's password:
Access denied
pattabhiraman@inharley's password:
if i reduce the username to within 8 charaters, it lets me in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 11:43 PM
тАО08-30-2007 11:43 PM
Re: User name restrictions in Linux
Using 'ssh' to test connect to the server, no issue
login as: lmnopqrstu
lmnopqrstu@demo's password:
[lmnopqrstu@demo ~]$
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 11:49 PM
тАО08-30-2007 11:49 PM
Re: User name restrictions in Linux
# rpm -qa | grep util-linux
# rpm -qa | grep passwd
# rpm -qa | grep openssh-server
You may want to check from the Linux Vendor Site whether above RPM Packages is the Latest Release.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2007 07:13 PM
тАО09-02-2007 07:13 PM
Re: User name restrictions in Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 04:30 AM
тАО09-04-2007 04:30 AM
Re: User name restrictions in Linux
Creating a user on my stock Fedora7 system with more than 8 characters works fine. But I have to ask: Why would you want to? What happens if you have to port these users over to another versions of Linux/Unix which restricts the username to 8 characters (which is the UNIX standard, by the way)? What happens then?
I guess if you will *NEVER* *EVER* use another OS then you'll be ok, but I've learned over my career to always expect the unexpected. This means planning for the most restrictive environment. I'd hate to be the one to have to change the username's for a 1000 (or larger) user system when management decided to go with a different OS which supports only 8 username characters.
Just thinking out loud...
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 06:06 AM
тАО09-04-2007 06:06 AM
Re: User name restrictions in Linux
We have a special request and are trying to repro a customer scenario, thats why this rquest. I will try to get this repro set up on a non-linux platform
Regards,
Pattabh Raman