Deletion orphan user home directories
2007/8/29, Finn-Arne Johansen <faj@bzz.no>:
> Yes, there could be a check if there are directories that doesn't belong
> to anyone. But I dont want tp write such a script.
>
> it's something like
> #!/bin/sh
> HOMEPARENTS="/skole/tjener/home0
> /skole/tjener/teachers
> /skole/tjener/somefile"
> for HOMEPARENT in $HOMEPARENTS ; do
> find $HOMEPARENT -maxdepth 1 -type d -nouser -exec rm -rf {} \;
> done
> Put that one as /etc/cron.hourly/deletehomes
> and the homedirs without an owner will be deleted every hour...
Hi, hust a curiosity: with r1 are the orphan home directories
automatically deleted?
In r0, when I user were removed, its home directory was not.
Thanks.
Reply to: