[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/scripts/ -> acls.sh (source)

   1  #!/bin/bash
   2  # Appliquer des acls version test
   3  
   4  effacer=$1
   5  types=$2
   6  nom=$3
   7  lecture=$4
   8  ecriture=$5
   9  execution=$6
  10  repertoire=$7
  11  defaut=$8
  12  propagation=$9
  13  
  14  if [ $nom = "x" ]
  15  then
  16  nom=""
  17  fi
  18  
  19  if [ $defaut = "non" ]
  20  then
  21  setfacl $propagation $effacer $types:$nom:$lecture$ecriture$execution "$repertoire"
  22  fi
  23  
  24  if [ $defaut = "oui" ]
  25  then
  26  setfacl $propagation $effacer d:$types:$nom:$lecture$ecriture$execution "$repertoire"
  27  fi
  28  
  29  if [ $effacer = "eff" ]
  30  then
  31  setfacl $propagation -x $types:$nom "$repertoire"
  32  fi
  33  
  34  if [ $effacer = "effd" ]
  35  then
  36  setfacl $propagation  -x d:$types:$nom "$repertoire"
  37  fi


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1