Frage

After I accidentally used the command chown /var/www/moodle, I couldn’t change the root directory to be /var/www/moodle, so that I can't install phpmyadmin.

I have looked some suggestions but not very useful, I guess the permission has now changed, the other problem is I don't remember in which root directory I have used the above command.

What I get right now:

chroot: cannot change root directory to /var/www/moodle: Operation not permitted

I am using linux for the first time.

War es hilfreich?

Lösung

Your first command, the chown /var/www/moddle, was syntactically bad. You had to run some other, if you didn't get back an error message.

First, try a

chown root:root /var/www/moodle

...although a chroot command should be able to be called. Probably there is also another problem, what gets you if you call a

chroot /var/www/moodle

?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top