HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- [Q] the case of repeatedly overwriting .dtprofile ...
Operating System - HP-UX
1834813
Members
2514
Online
110070
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-28-2006 01:46 PM
02-28-2006 01:46 PM
[Q] the case of repeatedly overwriting .dtprofile once user log in is occuring ..
We are using User accounts under NIS environment.
Once I log in our HPUX, it could not accept .profile and always commented DTSOURCEPORFILE=TRUE in .dtprofile, even though I uncommented DFSOURCEPROFILE=TRUE in .dtprofile before.
I'm not sure what cause this problems.
So, I could not view user name, hostname, PATH at prompt line when I first loged in.
Now, I am using manually execute .profile like this.
# . ./.profile
Another NIS users have similar conditions.
I did change ownership .dtprofile to root and permission .dtprofile to 444 only can read after uncomment DTSOURCEPROFILE=TRUE in .dtprofile.
Neverthless, it was overwritten to new .dtprofile with commented DTSOURCEPROFILE=TURE part.
Please let me know what I should check it up to prevent from overwriting at user's login process ??
When user try to log in, What scripts are executed ?? Is there any sequence ??
==========================================
For reference, that user's profile is ..
. ./.kshrc
And, .kshrc file has contents such as..
PATH=.:/usr/sbin:$PATH:/sbin:/home/infodba:/usr/ucb
#PATH=/home/infodba:$PATH
export HISTSIZE=800
export HISTFILE=/.sh_history
set -o trackall
if [ `uname -s` = 'SunOS' ]
then
export PS1="`/usr/xpg4/bin/id -un`@`hostname`-KOR:\$PWD$ "
alias df='df -k'
else
export PS1="`id -un`@`hostname`-KOR:\$PWD$ "
alias df='bdf'
fi
set -o vi
stty erase "^H" kill "^U" intr "^C" eof "^D"
umask 022
export EDITOR=/bin/vi
Once I log in our HPUX, it could not accept .profile and always commented DTSOURCEPORFILE=TRUE in .dtprofile, even though I uncommented DFSOURCEPROFILE=TRUE in .dtprofile before.
I'm not sure what cause this problems.
So, I could not view user name, hostname, PATH at prompt line when I first loged in.
Now, I am using manually execute .profile like this.
# . ./.profile
Another NIS users have similar conditions.
I did change ownership .dtprofile to root and permission .dtprofile to 444 only can read after uncomment DTSOURCEPROFILE=TRUE in .dtprofile.
Neverthless, it was overwritten to new .dtprofile with commented DTSOURCEPROFILE=TURE part.
Please let me know what I should check it up to prevent from overwriting at user's login process ??
When user try to log in, What scripts are executed ?? Is there any sequence ??
==========================================
For reference, that user's profile is ..
. ./.kshrc
And, .kshrc file has contents such as..
PATH=.:/usr/sbin:$PATH:/sbin:/home/infodba:/usr/ucb
#PATH=/home/infodba:$PATH
export HISTSIZE=800
export HISTFILE=/.sh_history
set -o trackall
if [ `uname -s` = 'SunOS' ]
then
export PS1="`/usr/xpg4/bin/id -un`@`hostname`-KOR:\$PWD$ "
alias df='df -k'
else
export PS1="`id -un`@`hostname`-KOR:\$PWD$ "
alias df='bdf'
fi
set -o vi
stty erase "^H" kill "^U" intr "^C" eof "^D"
umask 022
export EDITOR=/bin/vi
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 10:19 PM
02-28-2006 10:19 PM
Re: [Q] the case of repeatedly overwriting .dtprofile once user log in is occuring ..
It sounds like some clever administrator wanted to make it so that users could not alter their .dtprofile. Check /etc/profile to see if there is code in there to copy a default .dtprofile into the user's home directory on login.
Pete
Pete
Pete
Pete
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP