練習問題
練習問題
問1 ディレクトリ「test」のアクセス権を変更してください。(アルファベットによる変更)
実行結果
[user01@localhost ~]$ su パスワード: [root@localhost user01]# mkdir test [root@localhost user01]# ls -l drwxr-xr-x. 2 root root 6 6月 13 00:21 test [root@localhost user01]# ??? [root@localhost user01]# ls -l dr--r-xr-x. 2 root root 6 6月 13 00:21 test [root@localhost user01]# ??? [root@localhost user01]# ls -l dr--rwxr-x. 2 root root 6 6月 13 00:21 test
図
![](https://kanda-it-school-kensyu.com/wp-content/uploads/6938210a6c8cce742dd92c492c762a09.png)
問2 ファイルの所有者、所有グループを変更してください。
実行結果
[user01@localhost ~]$ su パスワード: [root@localhost user01]# useradd testuser [root@localhost user01]# touch test.txt [root@localhost user01]# ls -l -rw-rw-r--. 1 user01 user01 895 6月 12 22:05 test.txt [root@localhost user01]# ??? [root@localhost user01]# ls –l -rw-rw-r--. 1 testuser user01 895 6月 12 22:05 test.txt [root@localhost user01]# ??? [root@localhost user01]# ls -l -rw-rw-r--. 1 testuser testuser 895 6月 12 22:05 test.txt [root@localhost user01]# exit exit
図
![](https://kanda-it-school-kensyu.com/wp-content/uploads/3cf871f7286b9912ae2555e541d9d149.png)
問3 アクセス権(記号)を数字で記載してください。
実行結果
![](https://kanda-it-school-kensyu.com/wp-content/uploads/d92626d3828869ac2c357884c1bd0adc.png)