DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th August 2008
uptonm uptonm is offline
Port Guard
 
Join Date: Jun 2008
Posts: 14
Default working with .profile and history

2 questions,

is it a bad idea to chflags schg on my root .profile file?

I'd like to also set chflags sappnd on the history file. If someone can't point me to a helpful resource on the net (perhaps there's a manpage I missed) for setting up the history so that it logs to a file, it would be great.

I set up HISTFILE=$HOME/.history; export HISTFILE
in /root/.profile

then i did chflags sappnd to the .history file but it doesn't seem to have any information in it when i try to read the file (as root.)

if there's a good resource on it i'd like to know.
Reply With Quote
  #2   (View Single Post)  
Old 15th August 2008
deemon's Avatar
deemon deemon is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Estonia
Posts: 50
Default

I assume you use bash as root user shell?
The history file is created/updated when the shell exists.
__________________
Fhtagn nagh Yog-Sothoth
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
History not saved in tcsh RandomSF FreeBSD General 8 9th December 2008 11:59 PM
when and by what is .profile read? kasse FreeBSD General 8 11th September 2008 08:46 AM
Firefox profile not saving tonywob FreeBSD General 4 20th May 2008 12:20 PM
weird history problem mmusang FreeBSD General 2 17th May 2008 07:07 PM


All times are GMT. The time now is 07:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick