Ciao, come da oggetto, è possibile che i file scritti in una determinata directory abbiano assegnato di default un gruppo da me scelto?
Credo di si, ma non ricordo come si fa![]()
ciao e grazie
Ciao, come da oggetto, è possibile che i file scritti in una determinata directory abbiano assegnato di default un gruppo da me scelto?
Credo di si, ma non ricordo come si fa![]()
ciao e grazie
da qui: http://content.hccfl.edu/pollock/AUn...ermissions.htmSUID and SGID for Directories
The SUID bit has no effect on directories.
In Linux and Solaris, when SGID is set on a directory files created in that directory will have their GID automatically reset to that of the directory's GID. This means that setting the SGID bit on a directory causes any new files or directories created within to inherit the group identity of that directory rather than that of the user. Also, new sub-directories will inherit the SGID bit as well.
The purpose of this approach is to support project directories: users can save files into such SGID directories and the group identity of the file automatically changes. This is useful for example on the Document Root of a website or other directories containing a set of files worked on by a specific group of users. (It works especially well if each user's primary group (*) is a private group for that user, and the umask (*) setting is 002). However, setting the setgid bit on directories is not specified by standards such as the Single Unix Specification [Open Group 1997].
Potresti limitare il livello di accesso (scritura esecuzione) della dir ai soli utenti che appartengono al gruppo scelto.
ecco, era quello che cercavo, grazieOriginariamente inviato da mxa
da qui: http://content.hccfl.edu/pollock/AUn...ermissions.htm