fsutils

package
v0.0.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureTempDirWithRootOwner

func EnsureTempDirWithRootOwner(path string, mode os.FileMode) error

EnsureTempDirWithRootOwner создает каталог в /tmp/alr или /var/cache/alr с правами для привилегированной группы Все каталоги в /tmp/alr и /var/cache/alr принадлежат root:привилегированная_группа с правами 2775 Для других каталогов использует стандартные права

func GetPrivilegedGroup

func GetPrivilegedGroup() string

GetPrivilegedGroup определяет правильную привилегированную группу для текущего дистрибутива. Дистрибутивы на базе Debian/Ubuntu используют группу "sudo", остальные - "wheel".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL