Re: Files permissions and owner in Kylix
"urifrid" <[email protected]> Thu, 05 Sep 2002 12:56:51 -0000
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <[email protected]> |
there is a function in libc called stat, this function will return a recorset that contains among other thing the file permissions. consult the kylix help, it has a very good example in there or go to the commands line and time "info stat" or "man 3 stat" have fun ps: i can send you an example if you can't get it --- In KylixGroup@y..., "TOSHYRO (Luiz Fernando " "Ferreira Filho)" <toshyro@s...> wrote: > Friends > > when a user creates a text file in Kylix, gets its own and permissions, > right? Well. When another user tries to make a new version of this file, > gets the msg error that means that "cannot overwrite a file that it's > not yours". > > How can I deal with this problem? Making a rotine that rearrange the > permissions and owners after each file creation? Or I can set previously > (by Kylix or by linux) the permissions and owners of directories and > files? > > Thanks in advance > > Toshyro > > -- > |-----------------------------------------------------------------------| > .^. TOSHYRO - Luiz Fernando Ferreira <toshyro@s...> > /v\ SULTEC VISTORIAS > // \\ Setor de Informática: Desenvolv. e Adm. Rede > /( . )\ Av. Prof. Oscar Pereira, 1463 - B. Glória - POA/RS > ^`~'^ Fone: (51) 3217-0600 r.247 - (51) 9814-3866 > |-----------------------------------------------------------------------| > Powered by Slackware Linux