Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    flac deletes files without write permission

    I was transcoding some wav files to flac from a user account with the option --delete-input-file, and I noticed the flac program was deleting input files which belonged to root and had 644 permissions. How is that possible?
    Last edited by Michielh; 05-21-2007 at 12:33 AM. Reason: Changed "process" to "program"

  2. #2
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    London, England
    It doesn't matter who owns the file or what permissions you have if the user has write permissions on the directory, it's the same visa versa, you can't modify directory contents if you don't have write access to it even if you own it.
    excaliber% su
    bash-3.2# chown root:root encryptioncode.txt.bak 
    bash-3.2# exit
    excaliber% rm encryptioncode.txt.bak 
    rm: remove write-protected regular file `encryptioncode.txt.bak'? y

  3. #3
    Thanks, that cleared it up for me.

  4. $spacer_open

Posting Permissions

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