Do not try to autmount cifs

parent 1af6319b
......@@ -23,8 +23,8 @@ do
fi
classe=${CLASSES[$usr]}
cat <<EOF>>/etc/fstab
//ecole-dc/$lvl2/donnees /home/shares/$usr/$classe/PROFESSEURS/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/$lvl,uid=$usr,gid=$usr 0 0
//ecole-dc/$lvl2/travail /home/shares/$usr/$classe/ELEVES/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/$lvl,uid=$usr,gid=$usr 0 0
//ecole-dc/$lvl2/donnees /home/shares/$usr/$classe/PROFESSEURS/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/$lvl,uid=$usr,gid=$usr 0 0
//ecole-dc/$lvl2/travail /home/shares/$usr/$classe/ELEVES/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/$lvl,uid=$usr,gid=$usr 0 0
EOF
done
# profs
......@@ -38,13 +38,13 @@ do
lvl=`echo $classe | sed 's/^[0-9]*-//'`
# Should not be prof-cp
cat <<EOF>>/etc/fstab
//ecole-dc/profs-$lvl/classe/donnees /home/shares/$usr/$classe/PROFESSEURS/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/prof,uid=$usr,gid=$usr 0 0
//ecole-dc/profs-$lvl/classe/travail /home/shares/$usr/$classe/ELEVES/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/prof,uid=$usr,gid=$usr 0 0
//ecole-dc/profs-$lvl/classe/donnees /home/shares/$usr/$classe/PROFESSEURS/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/prof,uid=$usr,gid=$usr 0 0
//ecole-dc/profs-$lvl/classe/travail /home/shares/$usr/$classe/ELEVES/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/prof,uid=$usr,gid=$usr 0 0
EOF
done
chown -R $usr:$usr /home/shares/$usr
cat <<EOF>>/etc/fstab
//ecole-dc/SCAN /home/shares/$usr/SCAN/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/prof,uid=prof,gid=prof 0 0
//ecole-dc/SCAN /home/shares/$usr/SCAN/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/prof,uid=prof,gid=prof 0 0
EOF
done
......@@ -53,9 +53,9 @@ mkdir -p /home/shares/prof/CONFIDENTIEL
mkdir -p /home/shares/direction/CONFIDENTIEL_PROFESSEURS
mkdir -p /home/shares/direction/CONFIDENTIEL_DIRECTION
cat <<EOF>>/etc/fstab
//ecole-dc/svc-prof/perso /home/shares/prof/CONFIDENTIEL/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/prof,uid=prof,gid=prof 0 0
//ecole-dc/svc-prof/perso /home/shares/direction/CONFIDENTIEL_PROFESSEURS/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/prof,uid=direction,gid=direction 0 0
//ecole-dc/svc-dir/perso /home/shares/direction/CONFIDENTIEL_DIRECTION/ cifs _netdev,users,auto,credentials=/etc/cifs/secrets/dir,uid=direction,gid=direction 0 0
//ecole-dc/svc-prof/perso /home/shares/prof/CONFIDENTIEL/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/prof,uid=prof,gid=prof 0 0
//ecole-dc/svc-prof/perso /home/shares/direction/CONFIDENTIEL_PROFESSEURS/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/prof,uid=direction,gid=direction 0 0
//ecole-dc/svc-dir/perso /home/shares/direction/CONFIDENTIEL_DIRECTION/ cifs _netdev,users,noauto,credentials=/etc/cifs/secrets/dir,uid=direction,gid=direction 0 0
EOF
cp `dirname $0`/mount_shares.service /etc/systemd/system/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment