diff --git a/pbs-datastore/src/lib.rs b/pbs-datastore/src/lib.rs index b842519e..cfe39921 100644 --- a/pbs-datastore/src/lib.rs +++ b/pbs-datastore/src/lib.rs @@ -142,8 +142,6 @@ //! * / = no interaction //! * shared/exclusive from POV of 'starting' process -use anyhow::{format_err, Error}; - // Note: .pcat1 => Proxmox Catalog Format version 1 pub const CATALOG_NAME: &str = "catalog.pcat1.didx"; @@ -161,23 +159,6 @@ macro_rules! PROXMOX_BACKUP_READER_PROTOCOL_ID_V1 { }; } -/// Unix system user used by proxmox-backup-proxy -pub const BACKUP_USER_NAME: &str = "backup"; -/// Unix system group used by proxmox-backup-proxy -pub const BACKUP_GROUP_NAME: &str = "backup"; - -/// Return User info for the 'backup' user (``getpwnam_r(3)``) -pub fn backup_user() -> Result { - nix::unistd::User::from_name(BACKUP_USER_NAME)? - .ok_or_else(|| format_err!("Unable to lookup backup user.")) -} - -/// Return Group info for the 'backup' group (``getgrnam(3)``) -pub fn backup_group() -> Result { - nix::unistd::Group::from_name(BACKUP_GROUP_NAME)? - .ok_or_else(|| format_err!("Unable to lookup backup user.")) -} - pub mod backup_info; pub mod catalog; pub mod cached_chunk_reader;