Permissions set incorrectly when copying

Bug #1206098 reported by Ken Sharp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sshfs-fuse (Ubuntu)
New
Undecided
Unassigned

Bug Description

Recently, probably following a dist-upgrade, the permissions have been getting munged when copying over sshfs.

SERVER (VFAT):

$ ll
total 36M
d---rwxr-x 1 ken 1015 32K Jul 27 01:27 ./
drw-rwxr-x 1 ken 1015 32K Jul 26 22:11 ../
d---rwxr-x 1 ken 1015 32K Jul 27 15:04 20130726T202957-15fps/
----rwxr-x 1 ken 1015 32M Jul 27 01:53 20130726T202957-15fps.mp4*
d---rwxr-x 1 ken 1015 32K Jul 27 15:04 20130726T220136-15fps/
d---rwxr-x 1 ken 1015 32K Jul 27 15:04 20130726T220222-15fps/
----rwxr-x 1 ken 1015 4.3M Jul 27 01:17 20130726T220222-15fps.mp4*

CLIENT (/tmp)

$ ll
total 36M
drwxrwxr-x 5 ken ken 4.0K Jul 29 11:54 ./
drwxrwxrwt 19 root root 12K Jul 29 12:55 ../
d---rwxr-x 2 ken ken 20K Jul 29 11:53 20130726T202957-15fps/
-rw-rwxr-x 1 ken ken 32M Jul 29 11:54 20130726T202957-15fps.mp4*
drw-rwxr-x 2 ken ken 4.0K Jul 29 11:54 20130726T220136-15fps/
drw-rwxr-x 2 ken ken 4.0K Jul 29 11:54 20130726T220222-15fps/
-rw-rwxr-x 1 ken ken 4.3M Jul 29 11:54 20130726T220222-15fps.mp4*

The result being that I cannot access 20130726T202957-15fps which contains ~500 files.

I don't know why this has started happening but around the same time smbfs has problems connecting and copying (from a different server - ext4) and boot fails because nofail is being ignored. Something core must have been changed.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: sshfs 2.3-1ubuntu0.1
ProcVersionSignature: Ubuntu 3.2.0-49.75-generic 3.2.46
Uname: Linux 3.2.0-49-generic x86_64
NonfreeKernelModules: wl fglrx
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Mon Jul 29 12:57:44 2013
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: sshfs-fuse
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ken Sharp (kennybobs) wrote :
Revision history for this message
Ken Sharp (kennybobs) wrote :

And I've just found out that the first few files that have been copied into this directory are also inaccessible:

$ ll | more
total 174M
drwxrwxrwx 2 ken ken 20K Jul 29 11:53 ./
drwxrwxr-x 5 ken ken 4.0K Jul 29 11:54 ../
----rwxr-x 1 ken ken 382K Jul 29 11:47 00000.jpg*
----rwxr-x 1 ken ken 385K Jul 29 11:47 00001.jpg*
----rwxr-x 1 ken ken 383K Jul 29 11:47 00002.jpg*
----rwxr-x 1 ken ken 388K Jul 29 11:47 00003.jpg*
----rwxr-x 1 ken ken 390K Jul 29 11:47 00004.jpg*
----rwxr-x 1 ken ken 393K Jul 29 11:47 00005.jpg*
----rwxr-x 1 ken ken 396K Jul 29 11:47 00006.jpg*
----rwxr-x 1 ken ken 395K Jul 29 11:47 00007.jpg*
----rwxr-x 1 ken ken 398K Jul 29 11:47 00008.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:47 00009.jpg*
----rwxr-x 1 ken ken 403K Jul 29 11:48 00010.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:48 00011.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00012.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:48 00013.jpg*
----rwxr-x 1 ken ken 403K Jul 29 11:48 00014.jpg*
----rwxr-x 1 ken ken 404K Jul 29 11:48 00015.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00016.jpg*
----rwxr-x 1 ken ken 405K Jul 29 11:48 00017.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00018.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:48 00019.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00020.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00021.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00022.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00023.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:48 00024.jpg*
----rwxr-x 1 ken ken 401K Jul 29 11:48 00025.jpg*
----rwxr-x 1 ken ken 402K Jul 29 11:48 00026.jpg*
-rw-rwxr-x 1 ken ken 397K Jul 29 11:48 00027.jpg*
-rw-rwxr-x 1 ken ken 401K Jul 29 11:48 00028.jpg*
-rw-rwxr-x 1 ken ken 400K Jul 29 11:48 00029.jpg*
-rw-rwxr-x 1 ken ken 397K Jul 29 11:48 00030.jpg*

If I didn't have sudo access I'd be screwed.

Revision history for this message
Ken Sharp (kennybobs) wrote :

Worse than I thought. I've attached an ll -R of the full tree. Note that I have already corrected the permission on the files I mentioned above.

This is insane and never used to occur!

Revision history for this message
Ken Sharp (kennybobs) wrote :

Brand new install of 12.04.3 and nothing has changed.

$ chown -R ken:ken 20131119T070551-15fps
chown: cannot read directory `20131119T070551-15fps': Permission denied

Revision history for this message
Ken Sharp (kennybobs) wrote :

This is bloody hideous!!!

$ sudo chmod -R a+rw 20131119T070551-15fps
$ cd 20131119T070551-15fps/
bash: cd: 20131119T070551-15fps/: Permission denied

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.