Operating System - HP-UX
1834104 Members
2582 Online
110063 Solutions
New Discussion

Re: Customizing New Installed HP-UX

 
SOLVED
Go to solution
Amit Dixit_2
Regular Advisor

Customizing New Installed HP-UX

Hi,
I want to stop sendmail services running
on my server and want to set Login prompt
to something like this
hostname:loginname >

How can I do this, so whenever a user logs
onto server he/she should get this login
prompt.

Thanks,
Amit
5 REPLIES 5
Geoff Wild
Honored Contributor

Re: Customizing New Installed HP-UX

vi /etc/rc.config.d/mailservs and set:
export SENDMAIL_SERVER=0

then, /sbin/init.d/sendmail stop

For the prompt:

Don't use ">" - for if you cut'n'paste and accidently select the whole line - you coult over write a file...

In .profile:

HOST=`uname -n`
PS1="\$HOST:\$LOGNAME:\$PWD # ";export PS1

That's what I do.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ravi_8
Honored Contributor

Re: Customizing New Installed HP-UX

Hi,

#cd /etc/rc.config.d
# vi mailservs
set the flag SENDMAIL_SERVER=0
save and clost the file

#/sbin/init.d/sendmail stop

to set the login prompt,in users .profile file make entry

PS1=`hostname`
never give up
Amit Dixit_2
Regular Advisor

Re: Customizing New Installed HP-UX

Geoff,
Thanks
Please is there any way where in
I make modification in a file for login
prompt so it gets automatically updated
in all the user profiles of the system.

Thanks,
Amit
Geoff Wild
Honored Contributor
Solution

Re: Customizing New Installed HP-UX

Sure - put it in /etc/profile

But if users set it themselves in their own .profiles, then they will overide /etc/profile.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: Customizing New Installed HP-UX

The steps noted above will stop the sendmail daemon from accepting email.

The server will still be capable of using sendmail to SEND mail.

Usually environment variables such as PS1 the prompt are set in a /etc/profile as follows

ENV=/.kshrc


My contents are thus:


PS1=`date -u +%c uname -n`:'$PWD
[!#] '


You can put
PS1=`hostname`:'$LOGNAME' if LOGNAME is set

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com