Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Dolphin doesn't care about file read-only permission?

  1. #1
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,937

    Default Dolphin doesn't care about file read-only permission?

    I'm running oS 11.3 KDE 4.6.3.

    If I try to delete a read-only file in the terminal I can, but get a warning message I have to confirm:

    Code:
    blimmer@Bruno-03:~> ls -l test*
    -r--r--r-- 1 blimmer users 79408 Jun 10 21:00 test file.txt
    
    blimmer@Bruno-03:~> rm test*
    rm: remover arquivo comum "test file.txt" protegido contra escrita? y
    
    blimmer@Bruno-03:~> ls -l test*
    ls: impossível acessar test*: Arquivo ou diretório não encontrado
    
    blimmer@Bruno-03:~>
    In Dolphin the file is simply sent to trash, no warning. I couldn't find a setting in Dolphin configuration options to change this. I do have "Ask for confirmation ...when moving files and folders to trash" unchecked, but even so, if the file is read-only???

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Dolphin doesn't care about file read-only permission?

    Sorry, what do you want it to do?

    If you leave: "Ask for confirmation ...when moving files and folders to trash" unchecked
    It'll not ask.

    If you leave: "Ask for confirmation ...when moving files and folders to trash" checked
    It'll ask

    The same if you enable the delete in the context
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,937

    Default Re: Dolphin doesn't care about file read-only permission?

    But this was a read-only file, as you can see in the listing.

    I thought it wouldn't be moved to trash or deleted, at least without a warning. Isn't that one of the things that no-write-permission means?

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Dolphin doesn't care about file read-only permission?

    But there is a warning.
    'Are you sure you want to....?'
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,937

    Default Re: Dolphin doesn't care about file read-only permission?

    Quote Originally Posted by caf4926 View Post
    'Are you sure you want to....?'
    In the terminal, or in Dolphin *if* the "confirm move/delete" thing is checked - and then to *every* file, read-only or not. BUT if it's not checked then Dolphin will move *read-only* files without warning. Got it now?

    What I'd like to know is if there is some setting I don't know of to change this (on further looking it seems there isn't), as it does seem strange to me that one app would move or write off a read-only file. Other apps don't, if I open the text file with kwrite, for example, and try to save it will fail, as it should. That's why Dolphin behavior seem strange to me.

  6. #6
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Dolphin doesn't care about file read-only permission?

    As far as I understand things:
    Read / Write is one thing
    You have to consider Owner and or Group too.

    I don't see any abnormal behaviour here.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  7. #7
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,937

    Default Re: Dolphin doesn't care about file read-only permission?

    Quote Originally Posted by caf4926 View Post
    I don't see any abnormal behaviour here.
    Perhaps peculiar is a better word. It is weird that read-only files can be trashed without warning. But then, I'm repeating myself.

  8. #8
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Dolphin doesn't care about file read-only permission?

    It is weird that read-only files can be trashed without warning
    If you have permissions... Yes you can

    What you are saying is read-only should prevent that, even if you have permission? (owner/user/group)

    I have to admit it's not something I'm that clued up on. Someone like @ken_yap might be better able to explain.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  9. #9
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,079

    Default Re: Dolphin doesn't care about file read-only permission?

    On Sat, 11 Jun 2011 04:06:02 +0000, brunomcl wrote:

    > caf4926;2351990 Wrote:
    >> 'Are you sure you want to....?'

    >
    > In the terminal, or in Dolphin *if* the "confirm move/delete" thing is
    > checked - and then to *every* file, read-only or not. BUT if it's not
    > checked then Dolphin will move *read-only* files without warning. Got it
    > now?
    >
    > What I'd like to know is if there is some setting I don't know of to
    > change this (on further looking it seems there isn't), as it does seem
    > strange to me that one app would move or write off a read-only file.
    > Other apps don't, if I open the text file with kwrite, for example, and
    > try to save it will fail, as it should. That's why Dolphin behavior seem
    > strange to me.


    Are you the owner of the file?

    If you are, then the chances are that when it fails, it changes the
    permissions and then performs the operation.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,897
    Blog Entries
    3

    Default Re: Dolphin doesn't care about file read-only permission?

    Quote Originally Posted by brunomcl View Post
    Other apps don't, if I open the text file with kwrite, for example, and try to save it will fail, as it should. That's why Dolphin behavior seem strange to me.
    That's a very different issue. You cannot write to a read-only file. You also cannot remove a file from a read-only directory. But as long as the directory is writable, you can remove the file from that directory.

    At the command line with "rm" you are only being warned because this is sometimes a mistake. When you do it in a file manager, isn't the file simply moved to trash where you can rescue it if that was a mistake?
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •