Change permissions to u+rwX,g+rwX

This commit is contained in:
notplants 2021-12-18 10:22:50 -05:00
parent 399af51ccc
commit 570f6a679b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ pub const CONFIGS_DIR: &str = "/var/lib/peachcloud";
/// so this is a useful CLI function for quickly correcting anything that may be out of order.
pub fn set_permissions() -> Result<(), PeachConfigError> {
println!("[ UPDATING FILE PERMISSIONS ON PEACHCLOUD DEVICE ]");
cmd(&["chmod", "-R", "660", CONFIGS_DIR])?;
cmd(&["chmod", "-R", "u+rwX,g+rwX", CONFIGS_DIR])?;
cmd(&["chown", "-R", "peach", CONFIGS_DIR])?;
cmd(&["chgrp", "-R", "peach", CONFIGS_DIR])?;
println!("[ PERMISSIONS SUCCESSFULLY UPDATED ]");