- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/profile question?
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
07-29-2003 07:55 AM
07-29-2003 07:55 AM
Thanks
David.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:58 AM
07-29-2003 07:58 AM
Re: /etc/profile question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:59 AM
07-29-2003 07:59 AM
Re: /etc/profile question?
Export a variable in /etc/profile and check to see if it gets set for these users.
"export FOO=bar"
Then, after they log in, "echo $FOO"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:59 AM
07-29-2003 07:59 AM
Re: /etc/profile question?
check the environtment variables.
Some heavily depend on the one dclared in /etc/profile
Check if what is in the /etc/profile is also in the env of the user.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:08 AM
07-29-2003 08:08 AM
Re: /etc/profile question?
To absolutely ensure that /etc/profile gets run by our users (who login via Reflections), we added the following lines to $HOME/.dtprofile:
DTSOURCEPROFILE=true
. /etc/profile;
. $HOME/.profile;
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:08 AM
07-29-2003 08:08 AM
Re: /etc/profile question?
in /etc/profile you can add something like this :
PS1=[`hostname`]
export PS1
or,if you have already set PS1, try to modify it.
When users log on to the system, a prompt
with hostname must appear.
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:11 AM
07-29-2003 08:11 AM
Re: /etc/profile question?
Its used for setting environment variables.
I would think based on my limited knowledge of Citrix that it would not source environment varaibles. Its not using a regular Unix session. Its probably using a TCP connection.
Its like visitors to your web site, they get processes running on port 80, but do the get environmetn variables from /etc/profile? No, they get their environment variables from the httpd server.
Citrix may be different, and the tests earlier in the thread might be a valid way of figuring it out, but I have no reason to believe that Citrix is going to run using /etc/profile or .profile for the user involved. I'm not sure it should.
I'd check with Citrix.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:12 AM
07-29-2003 08:12 AM
Re: /etc/profile question?
I forgot to mention this. when the user gets the citrix login screen he is directly put on the xmotif application. He does not get a prompt.
Thanks
David.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:13 AM
07-29-2003 08:13 AM
Re: /etc/profile question?
Can you break out of the application to a shell prompt so you can check to see if the variable gets set or not?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:14 AM
07-29-2003 08:14 AM
Re: /etc/profile question?
Our print spooler is called easy spooler. It relies on the OS to validate users.
The environment /etc/profile and .profile is NOT sourced unless they are using the telnet/ssh version of the product.
The Windows GUI gets needed variables from the easyspooler server.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:08 AM
07-29-2003 09:08 AM
SolutionDo this on a TEST BOX!!!!!
make a copy of your /etc/profile
edit your /etc/profile and add the following line towards the end...
exit 0
see if you can launch the application now for any user. If it executes the /etc/profile, you should not be able to launch
Thanks
Giri Sekar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:15 AM
07-29-2003 09:15 AM
Re: /etc/profile question?
Thanks
David.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:16 AM
07-29-2003 09:16 AM
Re: /etc/profile question?
To have /etc/profile sourced for all users in all terminals, do the following:
cd /etc/dt/config/C
Edit (or create if it does not already exist)
sys.resources (644 root:sys) to contain
*loginShell: True
Elena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:47 AM
07-29-2003 09:47 AM
Re: /etc/profile question?
1 - Edit /opt/CTXSmf/lib/ctxsession.sh and uncomment the following lines:
< # if [ -f $HOME/.ctx.session.sh ] ; then
< # . $HOME/.ctx.session.sh
< # fi
2 - Create a .ctx.session.sh file in the home directory.
Here's what I use.
1 #!/bin/sh
2 # echo "Executing .ctx.session.sh ..."
3 export LOGNAME=`whoami`
4 . $HOME/.pshrc
5 ctx3bmouse middle=left,1
ctx3bmouse allows use of left shift and left mouuse click for two mouse click.
3 - Edited .profile and added the following:
# Citrix will not log on if ENV variable is set!!! for /usr/bin/sh shell
# ENV=/home/mqm/.pshrc
# export ENV
if [ "X${SHELL}" = "X/usr/bin/sh" ]; then
if [ `env | grep CITRIX_SESSION_ID | wc -l` -eq 0 ]; then
ENV=$HOME/.pshrc
export ENV
fi
fi
if [ ! "X${SHELL}" = "X/usr/bin/sh" ]; then
ENV=$HOME/.pshrc
export ENV
fi
Now I can't remember why I did all the changes. Citrix support was of no value.
You can see that .pshrc is executed.
Don't know if this fixes your problem.
Jack...