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

drupalnesia’s picture

What is the output of:
# ls -lh .htaccess
# whoami

donm’s picture

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.

drupalnesia’s picture

How about this?
# lsattr .htaccess

donm’s picture

/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.