Results 1 to 3 of 3
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 ...
- 05-21-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 3
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 01:33 AM. Reason: Changed "process" to "program"
- 05-23-2007 #2
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.
Code:excaliber% su Password: bash-3.2# chown root:root encryptioncode.txt.bak bash-3.2# exit exit excaliber% rm encryptioncode.txt.bak rm: remove write-protected regular file `encryptioncode.txt.bak'? y
- 05-23-2007 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 3
Thanks, that cleared it up for me.


Reply With Quote
