My script is creating a folder for an user and now, i'm trying to make my user the only one that can modify his folder and that nobody else can do anything to it.
Here's the script so you can see what i'm talking about:
while [ $counter -le $# ]; do #la boucle est bonne? sudo useradd -m -b /home/${tableauParam[$counter]} ${tableauParam[$counter]} -G $1 #change this ⬇⬇⬇⬇ sudo chmod 730 /home/${tableauParam[$compteur]} counter=$(( $counter + 1 )) done
https://stackoverflow.com/questions/65386348/how-do-i-make-permissions-so-the-user-is-the-only-one-that-can-modify December 21, 2020 at 09:04AM
没有评论:
发表评论