Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1208068[details]
error message
Description of problem:
Users are unable to write to a file using 'kwrite', though they have ACL access.
Version-Release number of selected component (if applicable):
kwrite-4.10.5-3.el7.x86_64
How reproducible:
Provide acl access to file for a user. Login to that user and try accessing the file.
Steps to Reproduce:
[1] # setfacl -m u:test:rwx /etc/fstab
[2] Login by 'test' user
[3] Open 'kwrite' and try writing /etc/fstab
[4] Received a error saying "The document could not be saved as it was not possible to write to /etc/fstab. Check that you have write access to this file or that enough disk space is available".
Actual results:
kwrite doesn't allow the access provided for the user using ACLs
Expected results:
kwrite should allow the access provided for the user using ACLs
Additional info:
ACLs works fine for gedit
This seems to be caused by the approach that kwrite uses for saving changes to existing files. Instead of opening the existing file for writing (which you granted the ACL for), it writes the new contents to a temporary file and calls rename() to replace the existing file by the temporary file. For this to succeed, you would need to have write access to the _directory_ where the file resides.
In any case, ACLs work as designed. Switching the component to kate...
There is a problem with deleting text. I'm able to edit and add lines/text, but when I try to delete it, It deletes partially or not at all.
kate-4.10.5-5.el7
Reproducer:
1) # setfacl -m "u:test:rw" /etc/fstab
2) open the file in kate
3) add line and save
4) reopen
5) delete the line and save
6) reopen
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0717
Created attachment 1208068 [details] error message Description of problem: Users are unable to write to a file using 'kwrite', though they have ACL access. Version-Release number of selected component (if applicable): kwrite-4.10.5-3.el7.x86_64 How reproducible: Provide acl access to file for a user. Login to that user and try accessing the file. Steps to Reproduce: [1] # setfacl -m u:test:rwx /etc/fstab [2] Login by 'test' user [3] Open 'kwrite' and try writing /etc/fstab [4] Received a error saying "The document could not be saved as it was not possible to write to /etc/fstab. Check that you have write access to this file or that enough disk space is available". Actual results: kwrite doesn't allow the access provided for the user using ACLs Expected results: kwrite should allow the access provided for the user using ACLs Additional info: ACLs works fine for gedit