https://bugs.kde.org/show_bug.cgi?id=393260

            Bug ID: 393260
           Summary: Advanced permissions are set but also cleared (only
                    visually) when you check them after closing the window
           Product: krusader
           Version: 2.6.0
          Platform: Debian unstable
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

In the file/dir properties, you can set some file permissions. There's also the
"Advanced permission" button, which gives access to setting some additional
permissions. When some new entries are specified, they are set after saving the
changes, but when you access the information after closing the properties
window, it looks like that no advanced permissions were actually set.

Step to reproduce this bug:

- create a test/ folder, and see whether it has some ACLs set:
    $ mkdir test/
    $ chgrp p2p test/
    $ ls -al test/
    total 8
    drwxr-xr-x 2 morfik p2p    4096 2018-04-18 17:18:18 ./
    drwxr-xr-x 3 morfik morfik 4096 2018-04-18 17:18:18 ../
    $ getfacl test/
    # file: test
    # owner: morfik
    # group: p2p
    user::rwx
    group::r-x
    other::r-x

- go to the Advanced Permissions tab in Krusader and add some new permission
entry.

- save the perms and close the dir properties window

- open the dir properties window again and check the advanced permissions -- it
should present you with the default permissions ignoring the fact that you had
just set something there.

- when you check the perms in a terminal, it will show you the permissions you
had set. So the problem is mostly in presenting the right permission to the
user. Moreover, when you click the "Advanced permission" button and simply
press "OK" without committing any changes, the permissions are reset to
defaults (or simply removed altogether). 

- also when you check the "default for new files in the folder" option, you can
only add either "owner" or "owning group" -- you can't add both. There's also
problem with removing such default entry when you added one by mistake.

-- Basically I just wanted to reproduce the following commands in the Krusader
GUI:
    $ mkdir test/
    $ chgrp p2p test/
    $ setfacl -Rm g:p2p:rwX,d:g:p2p:rwX test/
    $ chmod g+s test/

Which gives the following perms:
    $ getfacl test
    # file: test
    # owner: morfik
    # group: p2p
    # flags: -s-
    user::rwx
    group::r-x
    group:p2p:rwx
    mask::rwx
    other::r-x
    default:user::rwx
    default:group::r-x
    default:group:p2p:rwx
    default:mask::rwx
    default:other::r-x

But it looks like there's lots of bugs concerning the advanced permissions in
Krusader, and I wasn't able to set the perms in the way I wanted.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to