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

            Bug ID: 366583
           Summary: Cannot save file with certain permissions
           Product: kate
           Version: 16.04.1
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: ad...@arkades.org

I have a situation as follows:
mkdir -m 1770 ~/test  #make test-directory with sticky bit
cd ~/test  #change into
sudo chown root:devel .  #only owner can delete files within directory

echo test>./testfile  #write testfile into dir
sudo chown root:devel ./testfile #chown like directoy to protect from delete
chmod g+w,o-w ./testfile  #grant write access to group devel
echo test2>>./testfile #write test2 into testfile

kate ./testfile
# change file and save, but permission denied
# seems that kate/kwrite rewrites files?

Reproducible: Always

Steps to Reproduce:
mkdir -m 1770 ~/test
cd ~/test
sudo chown root:devel . 
echo test>./testfile
sudo chown root:devel ./testfile
chmod g+w,o-w ./testfile 
echo test2>>./testfile
kate ./testfile
#change and save file (permission denied)

Actual Results:  
Permission denied

Expected Results:  
Kate writes changes into file

For example nano can change the file

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

Reply via email to