[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chmod/chown -R - maybe an ITP



On Mon, Dec 13, 1999 at 03:37:14PM +0100, Russell Coker wrote:
> 
> unlink("/home/user/.rhosts");
> link("/etc/passwd", "/home/user/.rhosts");
> sleep(60);
> unlink("/home/user/.rhosts");
> exit(0);
> 

Then you write a simple C program that opens with O_EXCL and then fchown's
or fchgrp's the files. It's very simple.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  -  collinbm@djj.state.va.us  -  bmc@visi.net    '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


Reply to: