Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-12-2003, 01:20 AM   #1
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
No files in an account!!! Pls. Help!!!


I need to open over 200 accounts in an Linux system for the very very dummy users.

They keep asking "What are the files ".bash_history" ".bashrc" and ".bash_profile" for ?"

It really makes me crazy.

So, I delete all thest files (include the files inside /etc/skel)

However, the ".bash_history" is generated automatically.

How to turn this "history feature" off?


Old 12-12-2003, 01:25 AM   #2
Registered: Feb 2003
Distribution: redhat
Posts: 58

Rep: Reputation: 15
The bash shell stores up to 500 old commands in the "~/.bash_history" file (where "~/" is your home directory)

Every user who have an account on the system will have this file "Bash_history" in their home directory.

For the bash to store lesser commands and delete them all on logout, just do this...

*** (taken from the web)
The HISTFILESIZE and HISTSIZE lines in the "/etc/profile" file determine the size of old commands the "Bash_history" file for all users on your system can hold. I would highly recommend setting the HISTFILESIZE and HISTSIZE in "/etc/profile" file to a low value such as 30.
Edit the profile file (vi /etc/profile) and change the lines to:
Which mean, the "Bash_history" file in each users home directory can store 20 old commands
and no more.

The administrator should also add into the "/etc/skel/Bash_logout" file the
"rm -f $HOME/Bash_history" line, so that each time a user logs out, its "Bash_history" file will be deleted.
Edit the Bash_logout file (vi /etc/skel/Bash_logout) and add the following line:
rm -f $HOME/Bash_history

Does this answer your query ???

Cheers !!
Old 12-12-2003, 05:23 AM   #3
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Why can the very very dummy users find the files? Do they use the console? You might be able to put some sort of alias in .bash_profile to prevent them from doing "ls -a". If they work in a file manager, see if you can disable the "show hidden files" option.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
possible comprimise? files dissappearing... pls help. danielw Linux - Security 1 04-06-2004 07:48 PM
Question regarding files pls help!! steve_2010 Solaris / OpenSolaris 9 02-25-2004 03:27 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
listening to .pls files on RH9 PionexUser Linux - General 1 10-27-2003 03:50 AM
KPPP Creating a account.. PLS HELP RedMandrake Linux - Networking 1 09-16-2002 04:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration