home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7664 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!ucla-cs!frazier
  3. From: frazier@kona.cs.ucla.edu (Gregory Frazier)
  4. Subject: Re: Need help globbing.
  5. Message-ID: <1993Jan4.184214.5711@cs.ucla.edu>
  6. Sender: usenet@cs.ucla.edu (Mr Usenet)
  7. Nntp-Posting-Host: simon.cs.ucla.edu
  8. Organization: UCLA, Computer Science Department
  9. X-Newsreader: Tin 1.1 PL5
  10. References: <1i75peINN9pm@crcnis1.unl.edu>
  11. Date: Mon, 4 Jan 93 18:42:14 GMT
  12. Lines: 22
  13.  
  14. Russell Mosemann (mosemann@unlinfo.unl.edu) wrote:
  15. :    What's wrong with this?
  16. :       chown($uid, $gid, <"$home/.*">);
  17. :    I get "csh: Permission denied.".  I've tried various combinations of
  18. : <${home}/.*>, <${home}/.??*>, <${"$home/.*"}> (heh), etc., but that doesn't
  19. : work, either.  The script is running setuid to root, and a previous line
  20. :       chown($uid, $gid, $home);
  21. :    works fine.  Thanks.
  22.  
  23. The problem is that you are trying to change the ownership and
  24. group of "~/..", which is not yours to change.
  25.  
  26. --
  27. "They thought to use and shame me but I win out by nature, because a true
  28. freak cannot be made.  A true freak must be born." - K. Dunn, _Geek Love_
  29.  
  30. Greg Frazier    frazier@CS.UCLA.EDU    !{ucbvax,rutgers}!ucla-cs!frazier
  31.