I am a teacher and I use Linux which is great! But students are curious about this "new" operating system they do not know and in GUI they tweak program settings which affects hidden files inside
[profesor@240-kateder ~]$ ls -a . .dbeaver4 .gtkrc-2.0 .sane .. .dbeaver-drivers .icons .swt .bash_history .dropbox .kde4 .themes .bash_logout .eclipse .local .thumbnails .bash_profile .esd_auth .lyx .ViberPC .bashrc .FlatCAM .masterpdfeditor .w3m .cache .FreeCAD .mozilla .Xauthority .config .gimp-2.8 .pki .xinitrc .convertall .gnupg .qucs .xournal
This is unwanted because over time program interfaces will change so dramatically that programs will be missing toolbars, buttons, main menus, status menus... and students end up with completely different GUI, so they are calling me about the issue and we spend too much time.
Now to optimize this I have to make sure that program settings (hidden files inside
/home/user) aren't changed, so I tried to change them like
sudo chmod -R 555 ~/.* but this didn't work out well for all of the programs, because some of the programs want to manipulate their settings at boot and they therefore fail to start withouth
sudo. And student's don't have
sudo chmod -R 555 ~/.* worked for
.xinitrc so I was thinking if I would:
- prevent user from deleting
- copy all hidden setting files into a folder
.bash_profileto clean up all settings in users home directory on login using
rm -r ~/.*(I assume this wouldn't delete files from point 1., if I protect them) and then restore settings from the
I wan't to know your opinion about this idea, or if there is any better way to do it. And I need a way to prevent users from deleting files from point 1. Otherwise this can't work.