Re: 問題ID: 22452(ディレクトリのハードリンク)
ゲスト
投稿数: 0
GNU coreutils 8.22のlnのmanページには以下の通り記載がありました。
引用:CentOS7環境で実際に試してみましたが、manの記述通りroot権限でも出来ないみたいですよ 
引用:
-d, -F, --directory
allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for the superuser)
意訳:note部のみ)
スーパーユーザ(=root)であってもシステム的な制約により、おそらく失敗するでしょう

# pwd
/root/test
# ls -l
合計 0
drwxr-xr-x. 2 root root 6 8月 12 17:23 a
# ln -d a b
ln: `b' から `a' へのハードリンクの作成に失敗しました: 許可されていない操作です
# ln -F a b
ln: `b' から `a' へのハードリンクの作成に失敗しました: 許可されていない操作です
投稿ツリー
-
問題ID: 22452(ディレクトリのハードリンク) (ゲスト, 2015-8-12 13:52)
-
Re: 問題ID: 22452(ディレクトリのハードリンク) (ゲスト, 2015-8-12 17:26)
-
Re: 問題ID: 22452(ディレクトリのハードリンク) (ゲスト, 2015-8-16 13:04)
-
Re: 問題ID: 22452(ディレクトリのハードリンク) (ゲスト, 2015-8-16 13:04)
-