アクセスの問題か権限の問題ですか?

アクセスの問題か権限の問題ですか?

最近、ファイルアクセスに問題があります。この問題を解決する過程で所有権をからに変更しようとしましたが、rootこれがar.lnx私が得たものです。

[ar.lnx@host DATA] $ cd /mnt/DATA
[ar.lnx@host DATA] $ ls -l
total 832
drwxr-xr-x  7 root root  32768 Jan 10 09:52 1
drwxr-xr-x 14 root root  32768 Jan 22 14:36 Audio
drwxr-xr-x  2 root root  32768 Jan 10 09:48 Compressed
drwxr-xr-x  4 root root  32768 Jan 22 19:22 Dev Workshop
drwxr-xr-x  3 root root  32768 Jan 10 11:40 ISO
drwxr-xr-x 11 root root  32768 Jan 17 12:10 Knowledge
drwxr-xr-x  3 root root  32768 Jan 11 01:30 Photos
drwxr-xr-x  2 root root  32768 Dec  3 20:24 print
-rwxr-xr-x  1 root root  40354 Jan 22 22:57 rpm-pack.catalog
-rwxr-xr-x  1 root root 335462 Jan 11 23:11 Solarized (dark).kateschema
drwxr-xr-x  4 root root  32768 Jan 11 00:53 Tattoo
-rwxr-xr-x  1 root root    320 Dec 26 15:53 network-list
-rwxr-xr-x  1 root root      2 Dec 26 15:53 network-list~
drwxr-xr-x  2 root root  32768 Jan 11 03:19 Windows(.exe)
[ar.lnx@host DATA] $ su
Password: 
[root@host DATA] # sudo chown ar.lnx:ar.lnx /mnt/DATA -R
chown: changing ownership of ‘/mnt/DATA/1/PP1-CS6-start.pdf’: Operation not permitted
chown: changing ownership of ‘/mnt/DATA/1/PP1-CS6-start1.odg’: Operation not permitted
.
.
.
chown: changing ownership of ‘/mnt/DATA/Audio’: Operation not permitted
chown: changing ownership of ‘/mnt/DATA’: Operation not permitted
[root@host DATA] #

「ジョブが許可されていません」というメッセージが表示されるのはなぜですか?正確に問題は何ですか?

ベストアンサー1

/mnt/DATAおそらく、FAT(Windowsやms-dosなど)のファイルシステムであり、FATはUnixファイルの権限や所有権をサポートしていません。 FATでない場合は、UNIXの所有権や権限をサポートしていない他の種類のファイルシステムである可能性が高いが、FATである可能性が最も高い。

所有権や権限が重要でない限り、書式を変更する必要はありません。/mnt/DATAUSBスティックなどを使用してファイルを転送したい場合は、Operation not permittedエラーメッセージを無視してください。

所有者/権限が重要な場合は、ext4で再フォーマットしてください。

/mnt/DATAインストール時に特定の所有者またはグループのみを所有したい場合、およびuid=/またはgid=インストールオプションを使用できます。生成されたファイルおよび/またはディレクトリに対するデフォルト(偽/エミュレーション)権限に影響を与える値をumask設定することもできます。dmaskfmask

詳細を表示してman mount検索してくださいMount options for fat

おすすめ記事