#!/usr/bin/perl @files=glob "*"; for (@files) { system "chown -R $_ $_"; print; print "\n"; }
#!/bin/bash cd /home for benutzer in *; do gruppe=`id -n -g $benutzer` chgrp -R $gruppe $benutzer done
#!/bin/bash find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \;
#!/usr/bin/perl @files=glob "*"; for (@files) { if (-e "./$_/privat") { #proceed with your code } else { system "mkdir ./$_/privat"; } if (-e "./$_/web") { #proceed with your code } else { system "mkdir ./$_/web"; } system "chmod -R 755 ./$_"; system "chown $_ ./$_/privat"; system "chmod 700 ./$_/privat"; system "chgrp users ./$_/privat"; print; print "\n"; }