Tôi không thể mở một thư mục username
ngay cả sau khi sở hữu và cấp cho nó tất cả các quyền:
sudo mkdir /path/to/the/directory/
sudo chown -R username:username /path/to/the/directory/
sudo chmod -R 777 /path/to/the/directory/
Tôi có:
$sudo ls -al /path/to/the/directory/
total 0
drwxrwxrwx 1 username username 0 nov 16 15:13 .
drwx------ 1 root root 208 nov 16 15:13 ..
$ ls -al /path/to/the/directory/
ls: cannot access '/path/to/the/directory/': Permission denied
Điều gì có thể xảy ra?
@Rinzwind Đừng lo lắng, 777 chỉ là kết quả của việc tôi bị gỡ lỗi điên cuồng! :-)
—
Victor
sudo chown -R $USER:$USER /path/to/the/directory/
là những gì cần có ($USER
sẽ được chuyển thành tên người dùng của bạn) và khi bạn coi đósudo chmod -R 777 /path/to/the/directory/
là câu trả lời, bạn không được phép duy trì trang web ;-)