This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] How to prevent students from changing wallpaper.

Hensyr Wolf

Thu Jun 15, 2017 8:00:00 am

Hi there,

On the Dutch forum of Zorin OS i have a question of a school teacher.

He has 30 computers with Zorin OS installed.
Now the students can change the wallpaper and he doesnt want that enymore.
How can he prevent changing the wallpapers on these computers?

Swarfendor437

Thu Jun 15, 2017 11:55:54 am

Hi, My first thoughts were:

1. Delete all wallpapers bar the one that he wants to be shown

2. Remove all Graphics Packages if they are not needed (these allow images to be 'Set as Wallpaper')

Apart from that:

https://help.gnome.org/admin/deployment-guide/

https://www.linux.com/news/lock-down-gn ... p-pessulus - this was the only link at the bottom of the web on the above link that is still active. ;) :D

He may also want to take a look at:

viewtopic.php?f=3&t=7474

Oh and not forgetting dconf-editor (which may need installing as it didn't come as default i.e., 'dconf-tools':

http://wrightrocket.blogspot.co.uk/2015 ... ricks.html

Hensyr Wolf

Sat Jun 17, 2017 9:33:19 am

Hi dear Swarfendor437,

Thanks for your reply.

Unfortunatly the lockdown editor doesn't work with Gnome3

But i find a workaround to hide the Background changer for normal users.

First log in as root in Nautilus

Code:
gksudo nautilus


Go to "other locations" > computer > usr > share > applications > right click on Background en go to properties
Click on the right tab "Rights"
Change the rights

owner = root acces = read and rwite
group = root acces = none
others = acces = none

Thats all, from now on they can't reach and change the background enymore.

Now the only thing remains:
How can a disable the "set as background" in the dropdown menu when you right click on a photo.

If you can find something i would be very pleased.

Swarfendor437

Sat Jun 17, 2017 9:04:34 pm

Hensyr Wolf

Sun Jun 18, 2017 5:43:55 pm

I have found the solution with this command:

First set your desired background
then give this command in the terminal:

Code:
cd /home


Code:
sudo chattr +i */.config/dconf/user


That chattr command turns on the "(i)mmutable" bit. Immutable files cannot be changed, even by their owners. Even root has to first turn off the bit with "chattr -i" in order to change or delete the file.

Thanks to this wonderful man.

Swarfendor437

Sun Jun 18, 2017 8:39:28 pm

Nice - will mark as [SOLVED] ;)