Linuxtrent: Re: Umask ??? come?

  • From: Lele Gaifax <lele@xxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxxxxxx
  • Date: Thu, 1 Mar 2001 02:52:04 +0100

>>>>> On Thu, 01 Mar 2001 01:54:27 +0100, MaX in the FaX 
>>>>> <maxlinux@xxxxxxxxxxxxxxx> said:

    MitF> Lele Gaifax wrote:
    >> 
    >> 
    >> Non è umask che cerchi, o meglio, non solo: prima di quello
    >> guardati i permessi della directory. Settando il bit `setgid'
    >> sulla directory ottieni l'assegnazione forzata del gruppo ai
    >> nuovi file creati la dentro. Guardati l'info di `fileutils',
    >> "Mode structure".

    MitF> ...????...

    MitF> non è che potresti essere vagamente meno criptico??? :-)

    MitF> dove trovo queste info?

E' nella doc in formato info delle fileutils. Ecco uno stralcio:

   In addition to the three sets of three permissions listed above, a
file's permissions have three special components, which affect only
executable files (programs) and, on some systems, directories:

  1. set the process's effective user ID to that of the file upon
     execution (called the "setuid bit").  No effect on directories.

  2. set the process's effective group ID to that of the file upon
     execution (called the "setgid bit").  For directories on some
     systems, put files created in the directory into the same group as
     the directory, no matter what group the user who creates them is
     in.

    MitF> ....non esiste un comando tipo:

    MitF> cambia il proprietario/gruppo di questa dir in modo
    MitF> ricorsivo, e forza la creazione dei prossimi file sempre con
    MitF> lo stesso proprietario/gruppo.

$ chgrp -R miogruppo directory-path
$ chmod g+s directory-path

    MitF> chown -R -afgid utente1:gruppo1 <direcory-path>

    MitF> dove "afgid" è l'ipotetico comando, indicante "allways force
    MitF> group ID"

    MitF> fantasia?

No, intricata realtà :)

ciao, lele.
-- 
nickname: Lele Gaifax   | Quando vivro' di quello che ho pensato ieri
real: Emanuele Gaifas   | comincero' ad aver paura di chi mi copia.
email: lele@xxxxxxxxxx  |               -- Fortunato Depero, 1929.


-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con SOGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxxxxxx


Other related posts: