You are not logged in.

#1 2014-01-11 03:10:53

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

sshfs/Fstab problems

I'm trying to set up an Fstab entry for an sshfs mount that
- doesn't mount at boot, but auto-mounts as soon as I access the folder
- only accessible by me and root
- any files owned by user 64 on the remote system appear to be owned by me, same with group 997 if possible.

I've been fiddling with the fstab for a while but haven't got it working.

Also, how can I reload the fstab without mounting everything in it? mount -a mounts everything, even things marked with x-systemd.automount


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#2 2014-01-11 03:35:11

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

Re: sshfs/Fstab problems

So far, I've got

rw,port=2222,nosuid,idmap=user,IdentityFile=/home/james/.ssh/id_rsa,idmap=user,allow_other,fsname=CyberWars,x-systemd.automount,_netdev,user

Right now, all files are owned by the corresponding user on the remote system. This means that everything has a big X on it in my file manager, which is a bit distracting and misleading. However, if I set uid=1000,gid=1000, ALL files look like they're owned by me (not just the ones owned by 64:997). Less distracting, but no less misleading.

Also, how can I enable gzip compression? Most of what I'm transferring is HTML files, so some compression wolud speed things along a bit.


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

Board footer

Powered by FluxBB