News for hackers. Stuff that matters.
Re:Ending support for Dropbox syncing to drives with certain... by shittyadmin on Friday August 10, 2018 @09:25AM (#17732979)
It's not encrypted ext4, it's ecryptfs (which acts as a separate layer entirely, creating a virtual encrypted filesystem on top of ext4) - probably doesn't support some inotify feature or some extended attributes that aren't set correctly when used through ecryptfs.

If instead you used dmcrypt and encrypted the whole device or partition you'd probably have no issue as it looks just like any other EXT4 FS to the system.

Would be a lot better if they specified what features they need the underlying FS to support.

Re:Ending support for Dropbox syncing to drives with certain... by rcarmo on Friday August 10, 2018 @09:38AM (#17733102)
Home directory encryption via ecryptfs is now the default in most Ubuntu variants, and it would be insane not to attempt to support it.

That said, given that my Dropbox subscription just renewed (and that Linux is pretty much the only reason I'm still using it, since there is no OneDrive client I can rely on), I am really sad this seems to be a future direction for Dropbox.

Re:Ending support for Dropbox syncing to drives with certain... by Androider on Friday August 10, 2018 @11:37AM (#17734280)
On the contrary, Ubuntu 18.04 dropped the home directory encryption entirely and now only supports full disk encryption.
Re:Ending support for Dropbox syncing to drives with certain... by ronjouch on Friday August 10, 2018 @11:50AM (#17734409)
Indeed: https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Other_base...

> "The installer no longer offers the encrypted home option using ecryptfs-utils. It is recommended to use full-disk encryption instead for this release."

Re:Ending support for Dropbox syncing to drives with certain... by shittyadmin on Friday August 10, 2018 @01:49PM (#17735356)
There was also a series of issues found by with the encryption used by ecryptfs:

https://defuse.ca/audits/ecryptfs.htm

The full disk block-based (as opposed to this file-based) encryption is really the way to go if you want a good security and performance margin.

Re:Ending support for Dropbox syncing to drives with certain... by MikeHalcrow on Friday August 10, 2018 @04:11PM (#17736379)
Author of eCryptfs and EXT4 encryption chiming in.

"Series of issues?" Really? There were 3, and they were all scored "Low" by the authors for exploitability and security impact.

That said, I generally agree FDE is the way to go if your platform's constraints allow for it -- but only for security. Native EXT4 encryption will give you equal or better performance than FDE primarily because the file system metadata isn't encrypted. Which isn't to say that's a good tradeoff -- it's just the nature of the beast.

Because of performance and functionality issues (file name length, possibility of page cache inconsistency) eCryptfs shouldn't be used for anything any more.

Re:Ending support for Dropbox syncing to drives with certain... by shittyadmin on Saturday August 11, 2018 @01:38AM (#17738538)
Ah, you're right, I had it confused with a similar analysis on EncFS which had more significantly damaging findings.

https://defuse.ca/audits/encfs.htm

I wasn't even aware Ext4 had native encryption support though! I'll definitely have to give that a go. Thanks for the tip.

Re:Ending support for Dropbox syncing to drives with certain... by colint on Friday August 17, 2018 @07:34AM (#17781975)
According to Michael Halcrow's LinkedIn [1], he was heavily involved on the EXT4 encryption:

"I was also the project lead for encryption in EXT4, which is now available as the mechanism implementing file-based encryption on Android."

[1] https://www.linkedin.com/in/michael-halcrow-1880601

Re:Ending support for Dropbox syncing to drives with certain... by h4b4n3r0 on Friday August 10, 2018 @01:58PM (#17735447)
There is (or at least _was_ when I last tried FDE) one major fly in this ointment: you lose the ability to reboot your machine remotely. Upon restarting it required that you enter the password, which you can only do from a local keyboard.
Re:Ending support for Dropbox syncing to drives with certain... by shittyadmin on Friday August 10, 2018 @02:44PM (#17735801)
On Debian-based systems including Ubuntu, they offer an initrd based Dropbear (lightweight SSH server) which can be used to connect and authenticate. Involved a bit of custom scripting last I checked though, but a possible solution if that's a requirement for you.
Re:Ending support for Dropbox syncing to drives with certain... by mjevans on Friday August 10, 2018 @02:35PM (#17735732)
For such systems I consider the primary root file-system to be part of the 'bootloader'. Everything that I want to keep actually secure is inside of the encrypted PVs backing LVM volumes.

Yes, this presents a security risk in that someone could (offhand I think the term is 'evil maid'?) attack the root filesystem, but they could still have done that to the bootloader anyway.

Remote interaction is then required to bring the VMs on that system up.

Re:Ending support for Dropbox syncing to drives with certain... by Spivak on Friday August 10, 2018 @03:28PM (#17736110)
They could not have done that to the bootloader because of SecureBoot.
Re:Ending support for Dropbox syncing to drives with certain... by bobpaul on Sunday August 12, 2018 @11:37AM (#17744794)
With secureboot on Linux you can secure as much or as little as you want. On my system, grub isn't even safe, only the shim that load grub is secure. But I could set it up so the kernel is secure, have the kernel only load verified initrd, and then have the initrd check the root filesystem.

I don't, but secureboot can detect changes to the root filesystem if you want it to. I think this generally requires setting the rootfs to mount readonly.

Re:Ending support for Dropbox syncing to drives with certain... by cbhl on Friday August 10, 2018 @04:03PM (#17736327)
You could put a daemon on the initramfs (say, ssh) that allows you to remotely provide a key/password for decrypting the disk.

This would certainly be more work to set up than vanilla full-disk encryption, though.

Re:Ending support for Dropbox syncing to drives with certain... by StavrosK on Friday August 10, 2018 @06:31PM (#17737162)
Shit, so now I can't turn on my desktop remotely and supply the password through SSH later? That's a huge inconvenience.
Re:Ending support for Dropbox syncing to drives with certain... by Jedd on Friday August 10, 2018 @07:52PM (#17737507)
> Shit, so now I can't turn on my desktop remotely and supply the password through SSH later? That's a huge inconvenience.

a) This hasn't ceased to work for your desktop - you can continue to do this through the upgrade cycle, as it would only affect new installs (safely converting native fs to dmcrypt isn't possible, AFAIK)

b) during an installation you could eschew FDE and opt for a PV, as I do, that you put your selected, secure LV's onto. I use Debian in preference to Ubuntu, but I'm sure they're materially identical in this case -- two physical partitions -- /boot and not-boot. /boot isn't encrypted in my case, but /, and /home (and a couple of others, though not swap of course) are LVM2 volumes sitting on top of the encrypted 'rest of the disk' partition. If you have /home only with noauto option in fstab , pointing to a an LV on the crypted partition, you could continue to do what you're doing, with the same reduced security confidence.

Re:Ending support for Dropbox syncing to drives with certain... by Rondom on Wednesday August 15, 2018 @03:35PM (#17769017)
Debian and Ubuntu allow running Dropbear in initramfs to prompt for the FDE password
Re:Ending support for Dropbox syncing to drives with certain... by StavrosK on Wednesday August 15, 2018 @03:46PM (#17769093)
That's fantastic to know, thank you. Do you know if it's complicated to set up?
Re:Ending support for Dropbox syncing to drives with certain... by unhammer on Saturday August 11, 2018 @02:45AM (#17738675)
Though unfortunately if you want to dual-boot, you have to manually set up the encryption :/ As in https://askubuntu.com/a/293029/25639 – I do wish the installer could do that instead of asking dual-booters to compromise.
Re:Ending support for Dropbox syncing to drives with certain... by pythonaut_16 on Friday August 10, 2018 @10:38AM (#17733603)
If it just renewed and this changes breaks your use case you can probably request a refund since your system is no longer supported.
Re:Ending support for Dropbox syncing to drives with certain... by fovc on Friday August 10, 2018 @12:02PM (#17734520)
What issues have you found with this Onedrive client[1]? I've been using it for over a year without any hiccups beyond the odd duplicate file

[1] https://skilion.github.io/onedrive/

Re:Ending support for Dropbox syncing to drives with certain... by framerate on Friday August 10, 2018 @01:48PM (#17735354)
I second this. I created my own systemd service so it runs when I’m not logged in and it’s been as reliable as Dropbox. On the one occasion (in 3 years) it did screw up, I simply ended up with two copies of the same file.
Re:Ending support for Dropbox syncing to drives with certain... by eloff on Friday August 10, 2018 @11:22AM (#17734115)
I get a terabyte free with onedrive, because of the office subscription. I wish I had a good way to utilize it on Linux.
Re:Ending support for Dropbox syncing to drives with certain... by owaislone on Friday August 10, 2018 @11:28AM (#17734188)
Out of curiosity, what happens if you office subscription ends? Obviously you won't be able to sync but does onedrive have some sort of grace period to let you download your stuff and at what point would it go and completely delete your data?
Re:Ending support for Dropbox syncing to drives with certain... by fencepost on Friday August 10, 2018 @12:40PM (#17734819)
If it's the business version, you have full access for 30 days, admins have access for 90 days, then it's deprovisioned (source: https://support.office.com/en-us/article/What-happens-to-my-...)

On the O365 Personal/Home or direct OneDrive plans, it looks like your data remains available but read-only for 3 months, then your account is "frozen." You can do a one-time 30-day "unfreeze" to get access to download/delete (to get under your quota), then it gets "frozen" again. Eventually it'll be deleted, but I don't see documentation for how long that takes. (source: https://support.office.com/en-us/article/what-does-it-mean-w... linked from https://support.office.com/en-us/article/OneDrive-storage-pl...)

Re:Ending support for Dropbox syncing to drives with certain... by thesephist on Friday August 10, 2018 @12:38PM (#17734801)
I believe the modus operandi for most personal cloud storage providers here is to make the entire dataset read- and delete-only until the user gets enough storage space (by upgrading or deleting files) to be able to write/upload again. That, plus some incessant push messages to your client devices about upgrading, which is annoying but expected.
Re:Ending support for Dropbox syncing to drives with certain... by godzillabrennus on Friday August 10, 2018 @12:27PM (#17734733)
Office stops working if your subscription ends so most likely they will renew their subscription.
Re:Ending support for Dropbox syncing to drives with certain... by jonbarker on Friday August 10, 2018 @11:27AM (#17734177)
Use a flow to replicate your onedrive in Azure Files, then mount it to your Linux box: https://flow.microsoft.com/en-us/galleries/public/templates/... AND https://docs.microsoft.com/en-us/azure/storage/files/storage...
Re:Ending support for Dropbox syncing to drives with certain... by fowl2 on Friday August 10, 2018 @11:38AM (#17734291)
That would be very much not free
Re:Ending support for Dropbox syncing to drives with certain... by rahimnathwani on Saturday August 11, 2018 @12:17AM (#17738314)
rclone mount
Re:Ending support for Dropbox syncing to drives with certain... by beardbound on Friday August 10, 2018 @11:39AM (#17734300)
I use Google drive, but the Linux support was awful and I started using insync. It's about $25 for a lifetime license and I love it. I run Ubuntu with encrypted home and have for years. It works great and I highly recommend it, and I don't work there, just a happy user. The Nautilus integration is decent too.
Re:Ending support for Dropbox syncing to drives with certain... by kryogen1c on Friday August 10, 2018 @11:45AM (#17734373)
Not trying to rain on your parade, I hope it fills your use case.

However, my IT company onboarded a media-intense client with insync and it has been nothing but a nightmare. There are hardcoded limits (like only syncing two files at a time, IIRC) that make it effectively useless for anything beyond small, personal use. It's cheap and you get what you pay for.

Re:Ending support for Dropbox syncing to drives with certain... by _e on Friday August 10, 2018 @06:21PM (#17737125)
Not sure what your exact role is but is there a possibility to move this client from insync to rclone?

rclone is rsync for cloud storage services -- https://rclone.org/

Re:Ending support for Dropbox syncing to drives with certain... by IronBacon on Saturday August 11, 2018 @04:59AM (#17738974)
I seldom use it, so I can't say how well it runs, but from Gnome version 3.22 if I'm not wrong, Google drive is integrated with Nautilus (the file manager) via GVfs/GIO and the couple of times I used it to share a file worked flawlessly.

YMMV ^__^;

Re:Ending support for Dropbox syncing to drives with certain... by gpvos on Friday August 10, 2018 @12:06PM (#17734558)
You could use Nextcloud instead.
Re:Ending support for Dropbox syncing to drives with certain... by StavrosK on Friday August 10, 2018 @06:32PM (#17737170)
I recently switched to Nextcloud because Dropbox's Android app is terrible, and like it a lot. It does everything Dropbox does, I get as much space as my server has, and the apps are all better than Dropbox.

I also use Syncthing, which I am very impressed by, it works really well.

Re:Ending support for Dropbox syncing to drives with certain... by Paul-ish on Friday August 10, 2018 @01:43PM (#17735308)
Security concerns aside, I found home directory encryption to have awful performance. It also caused issues with file name length.
Re:Ending support for Dropbox syncing to drives with certain... by jorvi on Friday August 10, 2018 @10:30AM (#17733537)
If you feel comfortable with Google, Gdrive has a great client in the form of OverGrive.
Re:Ending support for Dropbox syncing to drives with certain... by dawnerd on Friday August 10, 2018 @11:42AM (#17734341)
And there’s always rclone. Combine that with whatever encryption you want and you’re set.
Re:Ending support for Dropbox syncing to drives with certain... by kevin_thibedeau on Friday August 10, 2018 @12:06PM (#17734561)
Just put /home on a separate partition and please the BOFH gods.
Re:Ending support for Dropbox syncing to drives with certain... by wutbrodo on Friday August 10, 2018 @03:14PM (#17736014)
I'm surprised to hear anyone is still mounting home and root on the same partition, frankly. It's made my life sooo much easier since I started doing it ages ago.
Re:Ending support for Dropbox syncing to drives with certain... by fuzzy2 on Friday August 10, 2018 @09:27AM (#17732993)
The (supposed) Dropbox engineer refers to Extended Attributes.

Maybe they’re doing uncommon stuff with ’em that uncommon filesystems cannot cope with... ;)

Re:Ending support for Dropbox syncing to drives with certain... by ronjouch on Friday August 10, 2018 @09:31AM (#17733031)
> "It's not encrypted ext4, it's ecryptfs (which acts as a separate layer entirely, creating a virtual encrypted filesystem on top of ext4) - probably doesn't support some inotify feature or some extended attributes that aren't set correctly when used through ecryptfs."

Thanks, I updated the title.

Re:Ending support for Dropbox syncing to drives with certain... by kenferry on Friday August 10, 2018 @01:05PM (#17735035)
What do you think are the chances that Dropbox “just works” on a file system on which it isn’t regularly tested but which nominally has the right feature set? I’d go with “not good”. :-)
Re:Ending support for Dropbox syncing to drives with certain... by x0x0 on Friday August 10, 2018 @02:59PM (#17735912)
This whole article read (to me!) as them wanting to reduce test load, and probably workarounds in their codebase.
Re:Ending support for Dropbox syncing to drives with certain... by russdill on Friday August 10, 2018 @12:08PM (#17734580)
The backing files for your ecryptfs will still get synced though, correct?
Re:Ending support for Dropbox syncing to drives with certain... by shittyadmin on Friday August 10, 2018 @01:51PM (#17735380)
If you point it at the backing files and they're stored on a supported FS, I see no reason why they wouldn't.