Bug 345440

Summary: SFTP: Internal Error on deleting a folder without having permissions and wich is also mounted
Product: [Frameworks and Libraries] kio-extras Reporter: sedrubal <kde>
Component: SFTPAssignee: Plasma Development Mailing List <plasma-devel>
Status: RESOLVED WORKSFORME    
Severity: minor CC: emmanuelpescosta099, kde, nate, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sedrubal 2015-03-23 09:54:09 UTC
There is a folder on a remote pc which I access through sftp. This folder has some strange file permissions because it self is on a mount (I think samba, but not sure). The permissions are:
    $ > ls -l $folder
    drwxrwxr-- 3 nobody nogroup
    $ > id nobody
    uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
    $ > id $USER
    uid=1020($USER) gid=100(users) groups=100(users)
(If it was 777 I could delete it)

Reproducible: Always

Steps to Reproduce:
I couldn't reproduce it, because I'm no admin of the pc and I couldn't manage it to reproduce it on one of my servers as there is no samba or cross mounting.

Actual Results:  
Error Message:
Internal Error
Please send a full bug report at http://bugs.kde.org
sftp://$USER@$SERVER/$PATH_TO_BROKEN_DIR

Expected Results:  
Error Message:
Access denied
(As it appeares, when  you delete a folder you don't have permissions to do this)
Comment 1 sedrubal 2015-03-23 09:58:04 UTC
The parent folder mount looks like this:
    > $ mount
    /dev/mapper/msa20-storage on /mnt/storage type xfs (rw)
Comment 2 Emmanuel Pescosta 2015-03-23 17:10:51 UTC
Thanks for the bug report!

I'll reassign it to KIO-extras.
Comment 3 Harald Sitter 2020-03-04 17:12:52 UTC
Do you think it was important that the remote directory was on a mount?

The way I see it that should be all the same to ssh, in the end the permissions you documented would prevent you from deleting that folder on a POSIX level as well, so I would think that the access-denied error condition simply wasn't mapped to a pretty string in sftp. It is now however, so this should be solved in (at least) 19.12+
Comment 4 Bug Janitor Service 2020-03-19 04:33:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-04-03 04:33:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!