前提・実現したいこと
WSL上でPostgresをインストールしております。
GUI上でファイル操作してしまったせいかは分かりませんが
rootfs\etc\postgresql\11\main直下のファイルを削除したいのですが
権限等の問題でCUI,GUIどちららからも削除できなくなりました。
初歩的な質問で申し訳ないですがよろしく願いいたします。
発生している問題・エラーメッセージ
●現在のフォルダ、ファイルの状態
hogeOS@PC:~$ cd /etc/postgresql/11/main (/etc/postgresql/11/mainに移動)
hogeOS@PC:/etc/postgresql/11/main$ ls -l (lsコマンド)
total 44
---------- 1 postgres postgres 4687 May 17 13:28 _pg_hba.conf (※元々あったファイルをリネームした)
drwxr-xr-x 1 postgres postgres 512 Apr 28 00:07 conf.d
-rw-r--r-- 1 postgres postgres 315 Apr 28 00:07 environment
-rw-r--r-- 1 postgres postgres 143 Apr 28 00:07 pg_ctl.conf
-rw-rw-rw- 0 hogeOS hogeOS 4687 May 17 13:28 pg_hba.conf (※GUI上で作成。権限で削除もリネームも出来ない)
-rw-r----- 1 postgres postgres 1636 Apr 28 00:07 pg_ident.conf
---------- 1 postgres postgres 24032 May 17 13:31 postgresql.conf
-rw-r--r-- 1 postgres postgres 317 Apr 28 00:07 start.conf
Linuxは触ったことがなく
初学者なみの質問をしていると思いますがよろしくお願いいたします。<(_ _)>
