LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2017, 06:26 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Ideas for backups where you cannot read what you have just written


Kinda like emails where you send them but cannot delete them, it is up to the receiver to decide what to do with them. Backups like that would be safe if a hacker subsequently takes over your system and wipes its drives or attempts to store malware in all your old backups but they cannot. Then you'd ask the email receiver for a copy of your data before the disaster.

How can such a thing be done with an external USB drive?

Last edited by Ulysses_; 10-11-2017 at 08:42 AM.
 
Old 10-11-2017, 06:34 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,420

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Look into your encryption options. That's your read.

Alternatively, mega.nz does encrypted cloud storage. It's owned by Kim Dot Com,who you may have heard of in the days of Megaupload. Anyhow, he doesn't keep your decryption key, so if you lose it, tough. Your data is also lost.
 
Old 10-11-2017, 06:40 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
I don't understand what the OP is getting at. Not unusual for this OP.

As for mega, last I looked Kim was (way) on the outer - dishing the site in fact.
 
1 members found this post helpful.
Old 10-11-2017, 07:12 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
SpiderOak.

The OP's concepts of email seems a bit askew.
Plenty of self-destruct email services about.
 
Old 10-11-2017, 07:52 AM   #5
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Can't a malicious hacker discover the encryption key, open all backups in the cloud and put their malware in all backups so any restore will not get rid of his malware no matter what version you restore to? Or I memorise 50 passphrases, one for each backup version in the cloud. Not practical.

Does such a thing as "write once but cannot read immediately" exist with an external USB drive? Like when you drop a coin into a piggy bank and cannot get the coin back without breaking the piggy?



Hacker can then put mangled coins in the piggy bank but cannot change the good coins you put in it yourself before you got hacked.

Last edited by Ulysses_; 10-11-2017 at 08:43 AM.
 
Old 10-11-2017, 10:15 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
If you run your backups as an unprivileged user, you can create a root cron job that goes through and moves the backup to a secure location, removes all permissions from the files/dirs, etc., so your user can no longer access it. If you're afraid the hacker might have root access on the machine on which the backups are stored, there's not much you can do beyond using an external drive that you physically unplug from the machine when your backups are finished.
 
Old 10-11-2017, 10:50 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,420

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Quote:
Originally Posted by Ulysses_ View Post
Can't a malicious hacker discover the encryption key, open all backups in the cloud and put their malware in all backups so any restore will not get rid of his malware no matter what version you restore to? Or I memorise 50 passphrases, one for each backup version in the cloud. Not practical.
Actually, no.
With mega.nz (I only mention them on merit, no connection), and they bellyache if you don't make the password/encryption key extremely long. Hackers won't guess that unless you give it to them. I don't think I'm compromising my security to say I ended up with a line from an obscure and forgettable song. If you write it down neatly labelled where a hacker can find it, you're a fool. Then your cloud drive is decrypted for you to see like google drive. I believe transfers of files come encrypted and you decrypt them, making network transfers slow but secure. Read more on their site.

If you want to encrypt encrypted stuff and that sort of thing, I back out. Where I live only highly illegal stuff is worth that bother. About the only thing that illegal here is child pornography. Of course in other areas (e.g. North Korea, China) restrictions limit normal activities (e.g. religion) and you would need to consult locally. My friend in China pays for a VPN to access his religious stuff, and doesn't hoard backups, but that solution doesn't work everywhere, or everywhere in China. It would strike me as the course of wisdom not to keep backups of backups, gigabytes of data you cannot afford to let anyone see.
 
Old 10-11-2017, 11:23 AM   #8
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
There are also keyloggers that can steal the passphrase when you type it.

When a folder owned by root has the read flag set to Off for root but On for the group and the write flag for the group is On, can root still read what a user of this group adds to the folder?

Last edited by Ulysses_; 10-11-2017 at 12:07 PM.
 
Old 10-11-2017, 11:26 AM   #9
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Does such a thing as a hidden folder exist, that you must know its name to access it? Much like hidden wifi access points?
 
Old 10-11-2017, 02:25 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Ulysses_ View Post
When a folder owned by root has the read flag set to Off for root but On for the group and the write flag for the group is On, can root still read what a user of this group adds to the folder?
root can do whatever it wants, whenever it wants. File permissions are no more than a polite suggestion for root. The only thing it can't access is an encrypted volume (unless it has the passphrase), but despite not being able to read it, it can still wipe it out.

See my earlier post:
Quote:
Originally Posted by suicidaleggroll View Post
If you're afraid the hacker might have root access on the machine on which the backups are stored, there's not much you can do beyond using an external drive that you physically unplug from the machine when your backups are finished.
Note that "physically unplug" is from the perspective of the OS. If that OS is on a virtual machine, then "physically unplug" could mean using your virtualization software on the host to remove access to a drive or shared folder from the guest.

Last edited by suicidaleggroll; 10-11-2017 at 02:28 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner needing some written material to read garda2899 Linux - Newbie 5 09-04-2011 06:10 PM
How do you have a module read a message written to its proc file entry? beaglebird Programming 1 10-27-2009 10:24 PM
DVD, once written, cannot be read successfully sichen Linux - Hardware 20 06-20-2005 09:48 PM
djgpp c++ cross compiler cannot read library functions written in C back2morrie Linux - General 0 05-31-2005 02:43 AM
Can't read CDs written using K3B mabuse Linux - Software 2 08-02-2004 02:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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