This looks like what I've been looking for. Your example includes
several things I've never seen before though. Could you explain those
portions in more detail?
Specifically, I've never seen the -F switch to ls. Secondly, in:
chown kedwardk.kedwardk ed
Is there a difference between . and : in that? Would this have been
equivalent?
chown kedwardk:kedwardk ed
In the chmod, you did 2777... what does the 2 do that 777 doesn't? Then,
in the drwxrwsrwx, what does the s mean?
I suppose my shell skills need a little working.
Thanks :).
Allen Brown wrote:
I had a vague memory that setting the directory's suid or guid
bit would cause the file to take on the directory's ownership.
But I can't find the documentation for it. Anyway, I just
tried it and it works. This might solve your problem.
$ mkdir ed; ls -dFl ed
drwxr-xr-x 2 abrown users 1024 2006-08-27 17:17 ed/
$ sudo bash
# chown kedwardk.kedwardk ed
# chmod 2777 ed; ls -dFl ed
drwxrwsrwx 2 kedwardk kedwardk 1024 2006-08-27 17:17 ed/
$ touch ed/a; ls -Fl ed/.
total 0
-rw-r--r-- 1 abrown kedwardk 0 2006-08-27 17:19 a
That was for group. You should be able to get user forcing
if you want.
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug