The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk updating one file with another, comparing, updating mecano Shell Programming and Scripting 11 09-14-2008 06:50 AM
Sed Help in Updating something only in one particular file. bisla.yogender Shell Programming and Scripting 4 03-24-2008 11:48 AM
updating kde 3.5 to 4.0 revolver UNIX for Dummies Questions & Answers 2 01-25-2008 11:04 PM
Updating GCC in Linux mimino High Level Programming 2 08-24-2005 06:44 AM
updating ssa chosie AIX 1 06-03-2005 04:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2008
masquerer masquerer is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 20
.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 (permalink)  
Old 10-28-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
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 (permalink)  
Old 10-28-2008
masquerer masquerer is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 20
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 (permalink)  
Old 10-28-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
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 (permalink)  
Old 10-29-2008
masquerer masquerer is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 20
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 (permalink)  
Old 10-29-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
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 (permalink)  
Old 10-30-2008
masquerer masquerer is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 20
Bakunin

The .sh_history is updating for the root
files but they are not for the remaining users, any thoughts on that????
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0