home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man2 / chown.2 < prev    next >
Encoding:
Text File  |  1975-06-26  |  714 b   |  35 lines

  1. .th CHOWN II 12/15/74
  2. .sh NAME
  3. chown \*- change owner and group of a file
  4. .sh SYNOPSIS
  5. (chmod = 16.)
  6. .br
  7. .ft B
  8. sys chown; name; owner
  9. .s3
  10. chown(name, owner)
  11. .br
  12. char *name;
  13. .ft R
  14. .sh DESCRIPTION
  15. The file
  16. whose name is given by the null-terminated string pointed
  17. to by
  18. .it name
  19. has its owner and group changed to
  20. the low and high bytes of
  21. .it owner
  22. respectively.
  23. Only the super-user may
  24. execute this call,
  25. because if users were able to give files away,
  26. they could defeat the (nonexistent)
  27. file-space accounting procedures.
  28. .sh "SEE ALSO"
  29. chown (VIII), chgrp (VIII), passwd (V)
  30. .sh DIAGNOSTICS
  31. The error bit (c-bit) is set
  32. on illegal owner changes.
  33. From C a \*-1 returned value indicates error,
  34. 0 indicates success.
  35.