Home > Software design >  Permission denied to read and write a folder owned by user (UBUNTU)
Permission denied to read and write a folder owned by user (UBUNTU)

Time:11-14

I have created a file called secret and i changed its mode to 600 which means i can read and write on this folder. But unfortunately, that is not the case, as I get "Permission Denied" error. Any help would be appreciated.

drw-------  2 maria maria 4096 نونبر  13 12:18 secret

maria@maria:~$ ls secret

ls: impossible d'accéder à 'secret/fichierA': Permission non accordée
ls: impossible d'accéder à 'secret/ma': Permission non accordée
fichierA  ma

maria@maria:~$ rm -r secret

rm: impossible de supprimer 'secret/fichierA': Permission non accordée

rm: impossible de supprimer 'secret/ma': Permission non accordée
rm: impossible de supprimer 'secret': Le dossier n'est pas vide

CodePudding user response:

the critical operations need root permission to execute. now ubuntu terminal gives you the sudo keyword to perform these commands without changing your current user. so simply add sudo before any command which generates a permission denied error.

sudo rm -r secret
  • Related