#!/bin/bash
if [ $# -ne 1 ]; then
	echo "Argument Manquant"
else
	
	if [ -f $1 ]; then
		echo "[644] $1"
		chmod 644 $1
	fi
	if [ -d $1 ]; then 
		echo "[755] $1"
		chmod 755 $1
		for i in $1/*	
		do
			/root/chmodalavolee.sh $i
		done
	fi
fi
