The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Logs
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-04-2006
charbel charbel is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 41
Hello there,
ihave the following command in the .profle "script -a $LOGNAME"
once the user logged out, the following file is created "typescript" which contains all the commands the user have entered and the output of those commands.
Now i want to ask something, the user can access the output file "typescript" and modify it or even delete it,right??!!

How can i prevent him from doig so, or can i copy the output file "typescript" to the root user and this file will be updated accordingly??

Hope to hear from u soon since this is mandatory to my job.....
Thanks alot.....