You are not logged in.

#1 2007-04-15 15:06:24

sinister99
Member
Registered: 2007-04-10
Posts: 136

can't delete files with sshfs

I have a sshfs share and can read files, write files and change files, but I cannot delete files.

In a terminal, I get the error message:
rm: cannot remove `file': Operation not permitted

The user i am logging in as (to the server) has full access.

Offline

#2 2007-04-15 15:17:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't delete files with sshfs

Default mount options for sshfs include noexec, so you'll need to specify exec in your mount command or fstab entry.

Offline

#3 2007-04-15 16:13:00

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't delete files with sshfs

tomk wrote:

Default mount options for sshfs include noexec, so you'll need to specify exec in your mount command or fstab entry.

I am just manually mounting.  How do I add the exec option to the mount command?

Offline

#4 2007-04-15 17:33:22

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: can't delete files with sshfs

The default set up of fuse is

-rwsr-xr– root fuse

therefore only root or members of the fuse group have write access.
Solution: add yourself to the fuse group

adduser user group

and you should have full access to files.

Hope this helps.

R

Offline

#5 2007-04-15 17:53:15

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't delete files with sshfs

ralvez wrote:

The default set up of fuse is

-rwsr-xr– root fuse

therefore only root or members of the fuse group have write access.
Solution: add yourself to the fuse group

adduser user group

and you should have full access to files.

Hope this helps.

R

My user is already in the fuse group, and I am mounting the sshfs as my user, not root.

I DO have write access, and can overwrite files on the share, but I can't delete files.  I can do everything else.

Offline

Board footer

Powered by FluxBB