I have an assignment to write PHP code, and upload the data to our school student's account. To make sure my script is working, I need to change the permissions on the files.
I am not a root because I am a student. How can I fix that problem?
chown: changing permissions of `nyccrash.txt': Operation not permitted
Those files has permission labeled as apache
The owner and user are apache, according to ls -ls
Thanks.
You should not be able to fix this yourself and need help from the admin.
Renaming or copying the file should not be possible since your username is more than likely to be part of
others
(and not part ofuser
orgroup
).Either your user has to be in the same group as the
apache
user or you need more permissions on only that file or you need to be asudoer
.