Sponsored Content
Operating Systems HP-UX /etc/profile file not executed Post 302668951 by vbe on Tuesday 10th of July 2012 09:04:42 AM
Old 07-10-2012
As Peasant recommends, it is not the way to stop people connecting...
Now you have not said how they connect, at first look I would say with your issue: Using ssh...
If people spend time writing man pages, it is in the hope one will read them, why didnt you?
You would not have posted - or at least not in the same way...

in ssh man pages you would have heard of ~etc/ssh_config file and more interestingly : ~etc/sshrc file, I use ~ for I suppose path may vary depending of implementation e.g. on my HP:
Code:
ant:/usr/local/etc $ ll
total 2754
drwxr-xr-x   5 bin        bin           1024 Apr 15  2011 .
drwxr-xr-x  21 bin        bin           1024 May 28  2009 ..
drwxr-xr-x   2 root       sys             96 Apr 15  2011 bash_completion.d
drwxr-xr-x   4 root       sys             96 May 28  2009 fonts
drwxr-xr-x   2 root       sys           2048 Dec  7  2004 gtk
-rw-r--r--   1 root       sys            920 Nov 12  2004 im_palette-small.pal
-rw-r--r--   1 root       sys            224 Nov 12  2004 im_palette-tiny.pal
-rw-r--r--   1 root       sys           3376 Nov 12  2004 im_palette.pal
-rw-r--r--   1 root       sys           5474 Nov 12  2004 imrc
-rw-r--r--   1 root       sys           1443 Jan 11  2011 slsh.rc
lrwxr-xr-x   1 root       sys             24 Sep 18  2009 sshd_config -> /opt/ssh/etc/sshd_config
-rw-r--r--   1 root       sys        1391457 Mar 15  2007 termcap

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

Can I modify the .bashrc file instead of .profile file to customize my login?

Hello, I got this question which tells me to customize my login script. Some people in the forums suggested to modify the .profile file in my home directory. I did so, but none of my customizations show up when I open the terminal after. So, I tried to modify other files in my home directory,... (1 Reply)
Discussion started by: Hyunkel
1 Replies

3. Shell Programming and Scripting

calculating the time difference, when the script was executed and the currenent file

Hi, I has created the shell script in HP_UX 11.23 and using the command, echo $(date +%Y%m%d%H%M%S) > $DIR/alert, placing the time of running the script into a file alert. I want to compare the time in the above file alert with the current time.If difference is more than 5 min, then print the... (7 Replies)
Discussion started by: velocitnitin
7 Replies

4. Programming

File compiles but produces Memory fault when executed

I run the following K$ cc -v dtfn.c -o dtfn Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking... (3 Replies)
Discussion started by: sewood
3 Replies

5. Red Hat

php file is not executed

hello i have installed php on my FC 10 Machine and made the necessary changes. like:- AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps in the "httpd.conf" But when i run php file it opens file as "Save As" dialogue box. anyone can guess why ?... (5 Replies)
Discussion started by: phpalerts
5 Replies

6. AIX

Script not getting executed via cron but executes when executed manually.

Hi Script not getting executed via cron but executes successfully when executed manually. Please assist cbspsap01(appuser) /app/scripts > cat restart.sh #!/bin/ksh cd /app/bin date >>logfile.out echo "Restart has been started....." >>logfile.out date >>logfile.out initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies

7. Shell Programming and Scripting

Users who desire to have their .profile executed must explicitly do so in the crontab entry. Why?

The .profile file should be read when the user logs in. So, there should be no need to execute .profile file again in a cron job (since the cron job is run after the user logs in). Doesn't the cron require login from the user. Then, from where does the cron execute? Please help!! (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

8. Shell Programming and Scripting

Whats the profile file that is auto executed when I login

Hi, I dont find any .profile under my user home directory. These are the only files i see in my home directory. # ls -laq total 44 drwx------ 4 user1 adm 4096 Nov 23 05:10 . drwxr-xr-x. 12 root root 4096 Nov 22 13:05 .. -rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout... (3 Replies)
Discussion started by: mohtashims
3 Replies

9. Shell Programming and Scripting

Create file when script has executed

I would like to get some kind of notification when a script has been executed. I know how to get an email sent, but I something different. This works, unless it occurs when I am not at my computer. notify-send "Cleanup of Backup Directories complete." It could even involve creating... (2 Replies)
Discussion started by: drew77
2 Replies

10. UNIX for Beginners Questions & Answers

Save executed file details

Hi Everyone!!! I have a script file in which execution is performing for 500 folders. But sometime due to some error in execution script terminated at middle of execution(at 200 folder).when again we will start the processing it will start from first folder but i want that it should start from last... (1 Reply)
Discussion started by: pr128att
1 Replies
ssh-keysign(1M) 														   ssh-keysign(1M)

NAME
ssh-keysign - ssh helper program for host-based authentication SYNOPSIS
ssh-keysign ssh-keysign is used by ssh(1) to access the local host keys and generate the digital signature required during host-based authentication with SSH protocol version 2. This signature is of data that includes, among other items, the name of the client host and the name of the client user. ssh-keysign is disabled by default and can be enabled only in the global client configuration file /etc/ssh/ssh_config by setting Host- basedAuthentication to yes. ssh-keysign is not intended to be invoked by the user, but from ssh. See ssh(1) and sshd(1M) for more information about host-based authen- tication. /etc/ssh/ssh_config Controls whether ssh-keysign is enabled. /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_rsa_key These files contain the private parts of the host keys used to generate the digital signature. They should be owned by root, readable only by root, and not accessible to others. Because they are readable only by root, ssh-keysign must be set-uid root if host-based authentication is used. ssh-keysign will not sign host-based authentication data under the following conditions: o If the HostbasedAuthentication client configuration parameter is not set to yes in /etc/ssh/ssh_config. This setting cannot be overri- den in users' ~/.ssh/ssh_config files. o If the client hostname and username in /etc/ssh/ssh_config do not match the canonical hostname of the client where ssh-keysign is invoked and the name of the user invoking ssh-keysign. In spite of ssh-keysign's restrictions on the contents of the host-based authentication data, there remains the ability of users to use it as an avenue for obtaining the client's private host keys. For this reason host-based authentication is turned off by default. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsshu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ ssh(1), sshd(1M), ssh_config(4), attributes(5) AUTHORS
Markus Friedl, markus@openbsd.org HISTORY
ssh-keysign first appeared in Ox 3.2. 9 Jun 2004 ssh-keysign(1M)
All times are GMT -4. The time now is 06:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy