Remove user profiles
Gavin McCullagh
gmccullagh at gmail.com
Thu Aug 30 20:46:44 BST 2007
Hi,
On Thu, 30 Aug 2007, John Hegarty wrote:
> I recently moved from k12ltsp5 to edubuntu 7.04 with an smbldap setup. I
> used rsync to bring all the home folders across. There are incompatibilities
> between the old and the new. New users have no problem but users with
> existing profiles are having various problems.
a further thought is that perhaps you don't need to delete all .xxxx files.
For example, people probably don't want to lose their bookmarks.html file.
With that in mind you can do things like
find /home/ -maxdepth 2 -name '.*' | egrep -v "(bookmarks.html|.bashrc) | xargs rm -r
to omit bookmarks.html and .bashrc or do something like
find /home/ -maxdepth 2 -name '.g*' | xargs rm -r
to remove all files beginning ".g" which would among others get rid of
gconf and gnome stuff.
You know your users but if a sysadmin deleted my .files (many of which I
craft by hand) and didn't have a backup, I might be guilty of assault.
Gavin
More information about the edubuntu-users
mailing list