Operating System - HP-UX
1753945 Members
8204 Online
108811 Solutions
New Discussion юеВ

Re: host name issue in 11.11

 
SOLVED
Go to solution
Sreer
Valued Contributor

host name issue in 11.11

Hi Gurus,

I have an HPUX 11.11 server.

As usual Iam not able to set a hostname of more than 8 characters in result of uname -a

for example its showing hostname output as perfect but while giving uname -a giving partial name with in 8 characters.

root@convert15:.../root # uname -a
HP-UX convert1 B.11.11 U 9000/785 468273748 unlimited-user license
root@convert15:.../root #
root@convert15:.../root # uname -S convert15
Nodename must be less than9 characters
root@convert15:.../root #

Note: its the issue in setting hostname display in uname -a o/p only!!


any solution for this?

thnx much in advance

Rgds
Sree


14 REPLIES 14
Torsten.
Acclaimed Contributor

Re: host name issue in 11.11

Witch 11.11 you are limited to 8 chars, AFAIR.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Manix
Honored Contributor

Re: host name issue in 11.11

By default is 11.11 the host name can`t be more then 8 characters .

there is a way to do it but it`s not secure & highly recommended as it causes a security exception if you still want it i may sent it to you.
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi manix,

Pls send me the procedure to do it.

Its for my testing purpose only.

I can comprimise the security here.

Rgds
Sree
Manix
Honored Contributor

Re: host name issue in 11.11

I did the tests too some time back !!

let me search it ..will post EOD

Thanks & Regards

Manix
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi Manix,

Thnx for help.
I will wait for your feedback on this.

Rgds
Sree
Pete Randall
Outstanding Contributor

Re: host name issue in 11.11

Have a look at Bill Hassel's detailed and excellent response in this post:

http://h30499.www3.hp.com/t5/System-Administration/increasing-max-length-of-uname/m-p/2651570#M46143

Pete


Pete
Manix
Honored Contributor
Solution

Re: host name issue in 11.11

NOTE :: this is a workaround ..not recommended
& secure ..i tested it a year back !!

Referred to PHCO_21833 for 11.00 which states that libpam_unix.1 which is one of the PAM library function checks the the existence of a file called "I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS" in the directory /etc/default.

If this file exists then user may have login name with more than 8 characters.

There is not need to install any patch for libpam_unix.1 from 11.11 onwards as this functionality is enabled by default but we need to create the file manually.

To resolve the issue tried following steps : -

1) cd /etc/default

2)touch I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS

3) jets 11.11: /etc/default # ls -l
total 48
-rw-rw-rw- 1 root sys 0 Mar 31 07:37 I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS
-r--r--r-- 1 bin bin 11 Apr 21 2008 fs
-r--r--r-- 1 root root 626 Jan 22 2007 nlspath
-r--r--r-- 1 bin bin 84 Feb 28 2006 useradd

4) vi /etc/paswd

and added a line ( manually created the directory /home/test) testtester:*:992:20::/home/test:/sbin/sh

5)Created the password for user
passwd testtester
Changing password for testtester
New password:
Re-enter new password:
Passwd successfully changed

6) tried to login

HP-UX jets B.11.11 A 9000/800 (tc)
login: testtester
Password:

Log in sucessfull

Thanks & Regards

Manix
HP-UX been always lovable - Mani Kalra
Torsten.
Acclaimed Contributor

Re: host name issue in 11.11

Manix, hostname, not username.

Look at the subject.


However, good information.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Manix
Honored Contributor

Re: host name issue in 11.11

Hello Torsen !!

U r always right !! will search more ..

thanks for yr guidance.

Regards
Manix

HP-UX been always lovable - Mani Kalra