SUMMARY for Root .profile $PS prompts showing for all users' telnet connections

From: Barry Tait (Barry.Tait@aggreko.co.uk)
Date: Wed Jan 11 2006 - 11:00:50 EST


Many Thanks to the following who responded in my hour of need (Project
now back on track):

- Jim VandeVegt Thanks for detailed response

- Damian Wiest We both got the root cause ok, but I fixed the
problem differently

- Joseph Saldana Thanks - the info you supplied was useful but not in
my Sol8 man page

- Victor Engle Thanks

- David Harrington Thanks

Problem:-

Root /.profile $PS1 and $PS2 prompts showing for all telnet connections
from all users.

Root cause:-

Root .profile used by inetd subprocess (telnetd) as inetd was improperly
started using:

$ /usr/sbin/inetd -s & to start, so I got that piece right. The
inetsvc initialisation script

does not use the root .profile but the above command does (when run as
root).

Corrective Action:

Stop inetd ($ pkill -HUP inetd / $ pkill -9 inetd) then use the
following as root to start inetd

without the root environment $ env -i /usr/sbin/inetd -s &. Telnetd
does not use/inherit the

root environment variables as a result.

Visit us at http://www.aggreko.com

Confidentiality Notice: This communication and any accompanying attachments
contain confidential information intended for a specific individual and
purpose. This communication is private and protected by law. If you are not
the intended recipient, you are hereby respectfully notified that any
disclosures, copying, forwarding or distribution, or the taking of any action
based on the contents of this communication is strictly prohibited.

_____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:25 EDT