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

Re: How to replicate the behaviour of /usr/local [SOLVED]



Dne, 20. 10. 2009 09:31:38 je Vincenzo Tibullo napisal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Il giorno Tue, 20 Oct 2009 08:55:37 +0200
> Klistvud <quotations@aliceadsl.fr> ha scritto:
> 
> | Dne, 16. 10. 2009 12:50:43 je Klistvud napisal(a):
> | > Dne, 16. 10. 2009 12:19:03 je Cameron Hutchison napisal(a):
> | > > Klistvud <quotations@aliceadsl.fr> writes:
> | > > 
> ...
> | > > 
> | > > # chgrp users /path/to/shared/directory
> | > > # chmod g+s /path/to/shared/directory
> | > > 
> ...
> | 
> | Anybody care to chime in? The question was: how does /usr/local
> | manage to assign a predefined group ownership to every file you
> copy
> | to /usr/ local? Can such behaviour be replicated for an arbitrary
> | directory in my /home subtree?
> | 
> 
> You have received the correct answer from Cameron, what else you
> want?
> 
> If you copy or create a file, it works exactly as /usr/local, the
> file
> has the same group as the destination dir.
> If you move a file, it works exactly as /usr/local, the file retains
> its group.
> 
> 
> - -- 
> Vincenzo Tibullo
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> 
> iEYEARECAAYFAkrdZ1oACgkQVC1WJss4YhefAQCfbA9DjgiIU5xLXdPvr98X65cj
> rZwAn2NXJHdrysHRoPYKLIy80Z33dtiK
> =T9zZ
> -----END PGP SIGNATURE-----
> 

<BLUSH>

You're so right. I've been trying out Cameron's solution through a nfs 
share; it seems that the directory listing was cached or whatever, fact 
is, the changed permissions from previous attempts weren't updated on 
my local display and were still showing the permissions from *before* I 
had actually applied Cameron's instructions. Apologies to Cameron and 
all other listers who might have gotten misled by my ramblings...

</BLUSH>

-- 
Regards,

Klistvud
Certifiable Loonix User #481801


Reply to: