Skip to content

Commit

Permalink
Tighten permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajacoutot committed Nov 12, 2023
1 parent e330724 commit bb477d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toad.pl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ sub create_mount_point {
create_hier ();

make_path ("$mountbase/$login/$devtype$devnum", {owner=>$uid, group=>$gid, mode=>0700});
chown $uid, $gid, "$mountbase/$login", "$mountbase/$login/$devtype$devnum";
chmod 0700, "$mountbase/$login", "$mountbase/$login/$devtype$devnum";
chown $uid, $gid, "$mountbase/$login/$devtype$devnum";
chmod 0500, "$mountbase/$login";
chmod 0700, "$mountbase/$login/$devtype$devnum";
}

sub create_pkrule {
Expand Down

0 comments on commit bb477d7

Please sign in to comment.