Portál AbcLinuxu, 6. května 2025 01:32
3)pote chmod +t /stickyProtože standa je vlastníkem toho adresáře.
4)ale standa mohl rootovo smazat stejne
... unless they own the file or the directory
standa
nebyl vlastníkem adresáře, ale jen měl k němu práva zápisu (přes skupinu, přes ostatní nebo pomocí ACL), pak by mu první pokus prošel, ale druhý už ne.
If a directory is writable and the mode bit S_ISVTX is set on the directory, a process may remove or rename files within that directory only if one or more of the following is true: - The effective user ID of the process is the same as that of the owner ID of the file. - The effective user ID of the process is the same as that of the owner ID of the directory. - The process has appropriate privileges. If the S_ISVTX bit is set on a non-directory file, the behavior is unspecified.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.