.sh_profile not updating


 
Thread Tools Search this Thread
Operating Systems AIX .sh_profile not updating
# 1  
Old 10-28-2008
.sh_profile not updating

Dear Gurus

i have read a lot written on this topic but i just wanna ask that the /etc/profile file is present but the .sh_profile in the users $HOME directory is not being updated, any guesses why???
Also that i need to get the information about the date, time, IP and the user name from which the user logs in???
Please help???
# 2  
Old 10-28-2008
Question

1) /etc/profile is typically the default profile run by users at login, prior to any profile in their own directory. What and how do you excpect something to be updated?

2) details on users... are your referring to some kind of audit report?
# 3  
Old 10-28-2008
Joe

Well what i am saying is that i have enabled the logging of commands that the user run in the .sh_history file. But the file is not updating!!!!
# 4  
Old 10-28-2008
The standard shell in AIX is ksh. Therefore the correct file to put settings into is not ".sh_profile" but ".kshrc" in the users $HOME.

If you want to be 101% sure put a ". ~/.kshrc" as the last line into the file "~/.profile".

For details about users sessions you might want to examine the wtmp and the utmp files, both in the "/var" tree. Consult your man pages about both for details and also the tools (last, etc.) to examine them.

I hope this helps.

bakunin
# 5  
Old 10-29-2008
Hey bakunin

Did what u told me but then again the .sh_history is not updating, can u clearify if i need to restart the system or some process to get it working????
# 6  
Old 10-29-2008
You might want to read this thread about a detailed explanation. Experiment a bit.

Check if there is a ksh_exit routine in place which might delete the file written this way.

I hope this helps.

bakunin
# 7  
Old 10-30-2008
Bakunin

The .sh_history is updating for the root
files but they are not for the remaining users, any thoughts on that????
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

16.04 not updating

Just installed the latest version on my hp stream, was tired of windows. Of the few times I've used Linux, this is the first time it won't update. Im connected to the net the updater recognizes that the OS needs 21 updates. But it won't download/install the updates. It also won't load the... (1 Reply)
Discussion started by: DabblingMadman
1 Replies

2. UNIX for Dummies Questions & Answers

Updating a File

Hi, I have a below requirement and need your help in this regard. I have two timestamps in a file i.e. TimeBefore=2014-07-10.18.06.55 TimeAfter_1=2014-07-09.05.45.12 TimeAfter_2=2014-07-09.05.40.12 When I first run the script file, it sets the 'TimeBefore' to todays date. When I run... (5 Replies)
Discussion started by: vrupatel
5 Replies

3. Shell Programming and Scripting

Help updating a file

I can not seem to figure out how to update the attached match.txt column 2 using update.txt. However, only the text before the period in updat.txt appears in match.txt. For example, in update.txt NM_001613.2 matches NM_001613 in match.txt, so is it possible to update the record in match.txt to... (8 Replies)
Discussion started by: cmccabe
8 Replies

4. Emergency UNIX and Linux Support

Table is not updating

Hi, I have script lyk: nawk '{{print $1,$2,$3}}' ./$DirectoryName/AuditGroupTableTableData_$TimeStamp.txt | while read a b c do echo $a echo $b echo $c ret=`sqlplus -s $db_user/$db_pwd@$db_sid $a $b $c <<EOF SET HEADING OFF SET SERVEROUTPUT ON SET FEEDBACK OFF DECLARE CNT ... (42 Replies)
Discussion started by: rkrish
42 Replies

5. Shell Programming and Scripting

updating LD_LIBRARY_PATH

Inside my csh script, I have the following command: source ${HOME}/.login When I execute my csh script, why do I get the following error message: /cygdrive/c/WINDOWS/system32/export: Permission denied This is what I have inside my .login #!/bin/bash export... (9 Replies)
Discussion started by: casau
9 Replies

6. Shell Programming and Scripting

Updating data

Hi Guys, i currently facing a problem with a script i'm writing. I have a text file with the following data Windows in 21 days:John Goodman:29.90:30:19 I will like to know what method i can use so in order to edit the data in any of the field with ":" being the delimiter. example if i... (5 Replies)
Discussion started by: Cheranime
5 Replies

7. UNIX for Dummies Questions & Answers

Updating a database

i've got a database setup that references user inputs to see if they are already inputted. What I am wanting to do is allow the user to update the database by typing "update: name" where name is someone already in the database. echo "Enter your name." read NAME location=`find . -name... (2 Replies)
Discussion started by: fufaso
2 Replies

8. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies

9. UNIX for Dummies Questions & Answers

updating kde 3.5 to 4.0

i know i can find doc's to upgrade on like thats not what im looking for im just here to ask how hard on 1 to 10 is it to do and how long would you say... please not im not a unix pro nor have any phython perl or c background but i do know html little php and basic qbasic and purebasic ... and is... (2 Replies)
Discussion started by: revolver
2 Replies

10. AIX

updating ssa

I am in the process of updating ssa adapters, drives and enclosures and wanted to know if there are any caveats that anyone would like to share. The documentation is not very clear on the ordering of the updates. Any tips would be appreciated. (1 Reply)
Discussion started by: chosie
1 Replies
Login or Register to Ask a Question