Solaris 9ではmkdirを使用できません。 - 権限がありません。

Solaris 9ではmkdirを使用できません。 - 権限がありません。

Solaris 9(5.9)では、ユーザージェネレータを使用して、パス所有者として定義されたグループに存在するユーザーとしてmkdirを作成することはできません。

bash-2.05$ groups builder  
other root sys   
bash-2.05$

ファイル構造は次のとおりです。

 bash-2.05$ ls -la / | grep opt
lrwxrwxrwx   1 root     other         16 Apr 14  2008 opt -> /export/home/opt
bash-2.05$
bash-2.05$ ls -la /export/home/ | grep opt
drwxr-xr-x  13 root     other        512 Jan 24 11:49 opt
bash-2.05$

ビルダーは別のグループに属していますが、なぜ/ optでmkdirを設定できないのですか?

bash-2.05$ pwd
/opt
bash-2.05$ mkdir dire
mkdir: Failed to make directory "dire"; Permission denied
bash-2.05$

ベストアンサー1

このotherグループには、このディレクトリに対する書き込み権限がありません。ファイルやサブディレクトリなどのディレクトリエントリを作成するには、書き込み権限が必要です。

otherルートのようにグループに書き込み権限を付与します。

chmod g+w /export/home/opt

おすすめ記事