0
0

В уроке 15 по Linux GIT, допустил ошибку. Когда необходимо было делать команду git clone 'ссылка' .git После .git я не поставил точку через пробел, по рекомендации преподавателя. Запустил действие и у меня в public_html появился каталог kinomonster. Я решил его удалить и произвести повторно операцию. Ошибка возникала при удалении : rm: cannot remove ‘kinomonster/’: Is a directory

Решил использовать rm -r kinomonster/ : в итоге - rm: descend into write-protected directory ‘kinomonster/’?

Last login: Sun May 26 22:54:32 2019 from 217.174.3.134
cx19404@vh200:~$ pwd
/home/c/cx19404
cx19404@vh200:~$ ls -la
total 120
drwx------    4 cx19404 newcustomers  4096 May 21 23:47 .
drwx--x--x 2746 root    root         69632 May 26 05:56 ..
-rw-------    1 cx19404 newcustomers  5880 May 26 23:12 .bash_history
drwx------    2 cx19404 newcustomers  4096 May 19 22:53 .cache
-rw-------    1 cx19404 newcustomers  1272 May 21 22:40 dumpname.sql
-rw-------    1 cx19404 newcustomers   134 May 21 23:47 .mysql_history
-rw-------    1 cx19404 newcustomers     8 May 20 22:57 .nano_history
drwx------    3 cx19404 newcustomers  4096 May 25 23:43 public_html
-rw-------    1 cx19404 newcustomers    40 May 20 22:42 study1
-rw-------    1 cx19404 newcustomers    58 May 20 22:48 study2
-rw-------    1 cx19404 newcustomers  1272 May 21 23:02 testdump.sql
-rw-------    1 cx19404 newcustomers    25 May 20 22:35 test.txt
cx19404@vh200:~$ cd public_html/
cx19404@vh200:~/public_html$ ls -la
total 12
drwx------ 3 cx19404 newcustomers 4096 May 25 23:43 .
drwx------ 4 cx19404 newcustomers 4096 May 21 23:47 ..
d--------- 4 cx19404 newcustomers 4096 May 25 23:44 kinomonster
cx19404@vh200:~/public_html$ cd kinomonster/
-bash: cd: kinomonster/: Permission denied
cx19404@vh200:~/public_html$ ^C
cx19404@vh200:~/public_html$ rm kinomonster/
rm: cannot remove ‘kinomonster/’: Is a directory
cx19404@vh200:~/public_html$ rm -r kinomonster/
rm: descend into write-protected directory ‘kinomonster/’? ^Z
[1]+  Stopped                 rm -r kinomonster/
cx19404@vh200:~/public_html$

Скриншоты :

https://pastenow.ru/9c89faacd85bbe238799083675efc6c1


Владислав Андрианов
4 years ago






установите атрибуты чтения/записи для папки - потом удалите

chmod -R 777 kinomonster

Вадим Семенов
4 years ago

Огромное спасибо!!!

Владислав Андрианов
4 years ago

2 ответов