LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-30-2018, 02:14 AM   #1
trevoratxtal
Member
 
Registered: Dec 2012
Location: South Devon, UK
Distribution: PCLinuxOS, Suse, Mint, Puppy.
Posts: 79

Rep: Reputation: 20
use of tmpwatch


Help please.for All versions of desk top Linux
I would like to start all new sessions as totally clean from tmp and other leftovers.
The reason as various users use a common logon for the charity's work. (Mobility loans , Scooters Wheel chairs etc)
Volunteers (login as staff) any data left over to a new reboot may break the UKs stringent Data protection laws.
While awaiting custom the volunteers play on the computer !
Would tmpwatch fit the bill and how to implement it to ensure the clean start required.
Maybe I am on the wrong track and would appreciate advise.

Of course any one that do not log of or close down can only blame themselves for data left on the machine.
Many thanks for any help.
Trevor
 
Old 10-30-2018, 07:18 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by trevoratxtal View Post
Help please.for All versions of desk top Linux
I would like to start all new sessions as totally clean from tmp and other leftovers. The reason as various users use a common logon for the charity's work. (Mobility loans , Scooters Wheel chairs etc) Volunteers (login as staff) any data left over to a new reboot may break the UKs stringent Data protection laws. While awaiting custom the volunteers play on the computer! Would tmpwatch fit the bill and how to implement it to ensure the clean start required. Maybe I am on the wrong track and would appreciate advise.

Of course any one that do not log of or close down can only blame themselves for data left on the machine.
If you reboot the machine between users, you can easily put something in at system start-up, to just remove that users home directory, and create a new, blank one. Once the user logs in, any new desktop config settings will be created, since (essentially), the system will think it's the first time they logged in. You could also flush the /tmp directory as well, if you're concerned about data-remnants. Simple script, placed anywhere in system startup to just run
Code:
rm -fR /home/staff
mkdir /home/staff
chown staff:users /home/staff
rm -fR /tmp
But the 'stringent data protection laws' you mention are essentially out the window in the scenario you describe, since all users share one password (no audit chain to see WHO was using the system), and can copy files/data to other storage media/email it out, etc. This would be very much like putting a heavy door with a great lock, on a house that's missing a wall. If you want to adhere to any sort of data security policies, you have individual ID's for each staff member, you enable auditing on the system, mirror ALL the logs to a second system, and physically disable any external media (USB ports, CD/DVD drives) that can copy data off. And you either disable access to email on those systems, or you scan all outgoing emails and copy outgoing attachments. Because emailing data off premises is just as effective as a USB copy.
 
2 members found this post helpful.
Old 10-30-2018, 07:51 AM   #3
trevoratxtal
Member
 
Registered: Dec 2012
Location: South Devon, UK
Distribution: PCLinuxOS, Suse, Mint, Puppy.
Posts: 79

Original Poster
Rep: Reputation: 20
Smile A lot to think about !

Many thanks TBOne.
A lot for me to think about.
I will experiment with your suggestions.
The computer is in use every day so I will experiment on my home machine first.
Was Windoz 95 but I hope to enhance the experience of the volunteers.

As for the UK data protection act it was devised by Morons (MPs) enacted on by even more uneducated. and of course unworkable.
"But one has to show one try ones best Watt"
As a charity I am unable to engage Lawyers (no money) and I have yet to find one that comprehends any Act of Parliament. Ho Ho


Thank you again.
A good start
 
  


Reply



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
[SOLVED] tmpwatch in Centos 6 hnasr2001 Linux - General 4 10-21-2015 08:48 PM
[SOLVED] tmpwatch to delete only particular files vikas027 Linux - Server 4 09-01-2012 02:31 PM
[SOLVED] /etc/cron.daily/tmpwatch script Soji Antony Linux - Newbie 4 04-15-2011 06:05 AM
Unable to exclude with tmpwatch slcoit Linux - Software 1 03-04-2009 09:47 AM
Periodic cleanup of folder through Crontab with tmpwatch Angelic_Mew Linux - Newbie 7 11-20-2007 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 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
Open Source Consulting | Domain Registration