[Samba] Increase machine name length in /etc/passwd

Don McCall donmccall1 at yahoo.com
Wed Jul 23 14:24:47 GMT 2003


Hi,
This is a function of your system 'useradd' program.  Some *UX systems only allow a 'username' to be 8 characters.  try executing the useradd command as root and give it a username greater than 8 characters on the command line - should give you the same behavior.  To workaround this, you would need to implement some sort of wrapper around the useradd script that executes the useradd script, and then perhaps does some sort of 'awk' to change the name in /etc/passwd to the full name supplied by the %u variable.
not very pretty; better if your *ux distribution has a patch or version that supports >8character user names.
Hope this helps,
Don

Corey Hart <chart at acad.stedwards.edu> wrote:
when a new machine connects and the person logs them into the domain using the proper administrator account add user script runs.
add user script = /usr/sbin/useradd -d /dev/null -g machines -c Machine -s /bin/false -M %u

The problem is I notice in /etc/passwd the machine name is only using 7 characters. Is there a way to increase this so it uses them all?

Samba 2.2.8a
Red Hat Linux 8.0


--
----
Corey Hart
Systems/Security Analyst
St. Edward's University
coreyh at admin.stedwards.edu
512/428-1038 - voice
512/448-8492 - fax
512/470-8462 - cell


-- 
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


More information about the samba mailing list