The SUID bit has nothing to do with not being able to copy the file. Users can't copy /usr/bin/passwd because they don't have read access to the file. That doesn't quite meet the criteria of the original request, which was to restrict copying while allowing users to read the contents of the file.
On Thu, 2002-03-07 at 10:37, Lewi wrote: > i found that binary has a suid bit, group and other just have x bit > can't be copy by user, like /usr/bin/passwd. > > so the conclusion is, only root can prevent casual copy of file > > i think it just for security reason, suid bit can't be copied > > thank you all
signature.asc
Description: This is a digitally signed message part