LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-12-2003, 02:20 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

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


Hi ALL

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?

Thanks.

Mok
 
Old 12-12-2003, 02:25 AM   #2
sudhir
Member
 
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:
HISTFILESIZE=30
HISTSIZE=30
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, 06:23 AM   #3
guygriffiths
Member
 
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.
 
  


Reply


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 08:48 PM
Question regarding files pls help!! steve_2010 Solaris / OpenSolaris 9 02-25-2004 04: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 06:12 PM
listening to .pls files on RH9 PionexUser Linux - General 1 10-27-2003 04:50 AM
KPPP Creating a account.. PLS HELP RedMandrake Linux - Networking 1 09-16-2002 05:03 PM


All times are GMT -5. The time now is 06:45 PM.

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