F
F
fastboot2020-12-29 09:11:20
linux
fastboot, 2020-12-29 09:11:20

Did ln /var/www -> /mnt/usb/WWW and if echo test > /var/www/test.txt => Permission denied why?

I did ln /var/www -> /mnt/usb/WWW
ls -l /var
...
/var/www -> /mnt/usb/WWW
...
Then I try to echo 1 > /var/www/test.txt I get:
Permission denied

And if echo 1 > /mnt/usb/WWW/test.txt
Then the file is created!

chmod works, but does not solve the problem :(

Please help with this question, who is interested in playing with arm linux plugged in an ntfs usb flash drive - as it’s already clear, I want to raise the server and not kill the internal memory. The server is needed for tests, not for general use.

P .S. I'm not competent, I'm a teapot :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-12-29
@fastboot

Try reformatting the flash drive to EXT4 so that you can set the owner and file permissions on it normally.

A
anikavoi, 2020-12-29
@anikavoi

ln /var/www -> /mnt/usb/WWW
Like this, with an arrow???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question