Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By donm on
All of a sudden, can't seem to edit or change permissions or even delete the standard Drupal .htaccess file, located in the document root, under a FreeBSD server running Apache 2.0.
I need to edit it to change the RewriteBase parameter.
Earlier this week, we had not had any problems in doing so.
The file properties show that the owner and group for the file are both the username I am using.
Current permissions are rw-r--r-- (644).
I've tried doing so from a ssh terminal and also using WinSCP (a graphical front end). No dice.
Comments
What is the output of
What is the output of:
# ls -lh .htaccess
# whoami
Output of #ls -lh
Output of
#ls -lh .htaccess:
-rw-r--r-- 1 MyUserName MyUserName 5.1K Oct 17 13:45 .htaccess
#whoami:
/path/to/www$ whoami
MyUserName
And just now I treated "rm -f .htaccess" with an "Operation not permitted" response. Thanks for your interest.
How about this?
How about this?
# lsattr .htaccess
In FreeBSD: ls -lo
/path/to/www$ ls -lo .htaccess
-rw-r--r-- 1 username username schg 5172 Oct 17 13:45 .htaccess
And I gather that "schg" means "system immutable flag", which (if that's right) explains the problem. I'll see if the system admin can do something. Thanks.