Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2001 14:32:22 -0400
From:      Tim Singletary <tsingle@vetinsite.com>
To:        freebsd-questions@freebsd.org
Subject:   hard link and schg flag ?
Message-ID:  <15291.22966.892426.726912@macaw.hq.vetinsite.com>

next in thread | raw e-mail | index | archive | help
On a 4.4-RELEASE system, I'm trying to understand

  # ls -ol /bin/rcp
  -r-sr-xr-x  1 root  wheel  schg 244712 Oct  1 17:20 /bin/rcp
  # ln /bin/rcp /eraseme
  ln: /eraseme: Operation not permitted
  # ls /eraseme
  ls: /eraseme: No such file or directory

It appears that I can't hard link a file whose schg flag is set.
I've checked `man 1 ln', man 2 link', `man 1 chflags', and `man 2
chflags' but can't find any good clues about what's happening.

Is this a bug or a feature?

Thanks,

tim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15291.22966.892426.726912>