Operating System - HP-UX
1835912 Members
2918 Online
110086 Solutions
New Discussion

Re: Giving login parameters to XClients

 
Vibhor Kumar Agarwal
Esteemed Contributor

Giving login parameters to XClients

Hi,

I am using Hummingbird 11.
I want to pass some commands to XClients during login, like changing to a default directory,etc.

How can this be done.
Thanks
Vibhor Kumar Agarwal
9 REPLIES 9
Luk Vandenbussche
Honored Contributor

Re: Giving login parameters to XClients

Hi,

vi .dtprofile (in user home directory)

uncomment the last line

DTSOURCEPROFILE=true
Thayanidhi
Honored Contributor

Re: Giving login parameters to XClients

Hi,
Look at .dtprofile in users home directory.

Regds
TT
Attitude (not aptitude) determines altitude.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Giving login parameters to XClients

I can't modify that file, as its a common id.

So all others will also get affected.
I want that to be applicable to myself only.
Vibhor Kumar Agarwal
Luk Vandenbussche
Honored Contributor

Re: Giving login parameters to XClients

What do you mean with common ID?

The file .dtprofile is located in your home directory, so it will only pass the info when you login to your x environment.
Enrico P.
Honored Contributor

Re: Giving login parameters to XClients

Hi,
I don' t know Hummingbird but can you modify your connection string?

Example:

/usr/bin/X11/hpterm -e command [- other setting] ....

Where command should be a script.

Enrico
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Giving login parameters to XClients

Suppose I am loggin via id xyz.

And many people login via this id.

Now if i change the .dtprofile in the home directory of xyz, then everybody using that id will get effected.

Am i right?

Vibhor Kumar Agarwal
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Giving login parameters to XClients

Hi Enrico,

Can you give an example of your process.

Thanks
Vibhor Kumar Agarwal
Enrico P.
Honored Contributor

Re: Giving login parameters to XClients

Hi,
sorry I tested it but it wasn' t a good solution because the -e option run the command and exit from the shell.

Enrico
Bill Hassell
Honored Contributor

Re: Giving login parameters to XClients

Most sysadmins will tell you that shared logins are a high security risk. So when you login, there is no way for the system to know who is pressing keys on the keyboard. You could base the differentiation on the incoming IP address but most PCs get random IP addresses from DHCP. So there really isn't any electronic way to determine who you are wehen you login. I would strongly looking at the single login requirement as it can cause other problems sych as exceeding maxuprc, and as you might expect, you'll never know who trashed the account when someona msakes a mistake.

If therre is no possible choice about shared logins, then create a shell script with the changes and name it with your initials. Put it in a local directory such as $HOME/scripts and then add ~/scripts to your login PATH in .dtprofile so you just type xyz after login. Otherwise, just type ./scripts/xyz to get all your personal setup chanhes.


Bill Hassell, sysadmin