Prevent users from changing the desktop background on Ubuntu 18.04

Clash Royale CLAN TAG#URR8PPP up vote
2
down vote
favorite
How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?
users 18.04 wallpaper
add a comment |Â
up vote
2
down vote
favorite
How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?
users 18.04 wallpaper
3
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
1
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?
users 18.04 wallpaper
How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?
users 18.04 wallpaper
edited May 10 at 13:20
Zanna
47.9k13119227
47.9k13119227
asked May 9 at 11:33
Pratikkumar Dilipkumar Patel
111
111
3
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
1
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04
add a comment |Â
3
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
1
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04
3
3
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
1
1
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
You can't prevent users from changing your desktop background without preventing your own account from making a change. If they are using your account, they have the same access that you have.
Solution 1:
Give them their own separate login ID. This way your environment will never be affected their settings.
Solution 2:
Activate a script that will check for a change and periodically change it back to your preferred background.
You can find an example of such a script in this answer:
How can I get one wallpaper for each day of the week?
Instead of having the script change daily, just have it periodically set the background to your choice.
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
add a comment |Â
up vote
1
down vote
Yes you can. You need to enforce dconf read-only lock on the background property. I assume you use gnome shell or any destop than use dconf.
So create a file /etc/dconf/profile/user with the content
user-db:user
systemd-db:local
This defines a user dconf db -which is always defined anyway, but also define a system db that we will use to lock the key we want.
Now create the directory /etc/dconf/db/local.d. This is where reside the keyfile you want to set.
But to lock key, you need to create also /etc/dconf/db/local.d/locks directory. now in that directory any file with a key will be locked.
So create /etc/dconf/db/local.d/locks/00_wallpaper with the content:
# prevent changes to the wallpaper
/org/gnome/desktop/background/picture-uri
Now run sudo dconf update
Then users can't change the wallpaper anymore !
- dconf admin guide
- incomplete answer
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
You can't prevent users from changing your desktop background without preventing your own account from making a change. If they are using your account, they have the same access that you have.
Solution 1:
Give them their own separate login ID. This way your environment will never be affected their settings.
Solution 2:
Activate a script that will check for a change and periodically change it back to your preferred background.
You can find an example of such a script in this answer:
How can I get one wallpaper for each day of the week?
Instead of having the script change daily, just have it periodically set the background to your choice.
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
add a comment |Â
up vote
3
down vote
You can't prevent users from changing your desktop background without preventing your own account from making a change. If they are using your account, they have the same access that you have.
Solution 1:
Give them their own separate login ID. This way your environment will never be affected their settings.
Solution 2:
Activate a script that will check for a change and periodically change it back to your preferred background.
You can find an example of such a script in this answer:
How can I get one wallpaper for each day of the week?
Instead of having the script change daily, just have it periodically set the background to your choice.
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
add a comment |Â
up vote
3
down vote
up vote
3
down vote
You can't prevent users from changing your desktop background without preventing your own account from making a change. If they are using your account, they have the same access that you have.
Solution 1:
Give them their own separate login ID. This way your environment will never be affected their settings.
Solution 2:
Activate a script that will check for a change and periodically change it back to your preferred background.
You can find an example of such a script in this answer:
How can I get one wallpaper for each day of the week?
Instead of having the script change daily, just have it periodically set the background to your choice.
You can't prevent users from changing your desktop background without preventing your own account from making a change. If they are using your account, they have the same access that you have.
Solution 1:
Give them their own separate login ID. This way your environment will never be affected their settings.
Solution 2:
Activate a script that will check for a change and periodically change it back to your preferred background.
You can find an example of such a script in this answer:
How can I get one wallpaper for each day of the week?
Instead of having the script change daily, just have it periodically set the background to your choice.
edited May 9 at 22:53
Fabby
24k1352150
24k1352150
answered May 9 at 19:27
L. D. James
17.4k43178
17.4k43178
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
add a comment |Â
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
There is a new answer posted 2 hours after yours you might be interested in reading.
â WinEunuuchs2Unix
May 10 at 0:18
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
@WinEunuuchs2Unix Yes, I read it. I'll look forward to a comment from the OP. I didn't get the impressing that he was trying to also lock himself from being able to make changes. That's why I gave him an alternate solution whereas he could retain his favorite background. If I'm wrong, I guess he has his reasons. He might not realize the burden he places on the users who see colors and shades differently than him.
â L. D. James
May 10 at 1:32
add a comment |Â
up vote
1
down vote
Yes you can. You need to enforce dconf read-only lock on the background property. I assume you use gnome shell or any destop than use dconf.
So create a file /etc/dconf/profile/user with the content
user-db:user
systemd-db:local
This defines a user dconf db -which is always defined anyway, but also define a system db that we will use to lock the key we want.
Now create the directory /etc/dconf/db/local.d. This is where reside the keyfile you want to set.
But to lock key, you need to create also /etc/dconf/db/local.d/locks directory. now in that directory any file with a key will be locked.
So create /etc/dconf/db/local.d/locks/00_wallpaper with the content:
# prevent changes to the wallpaper
/org/gnome/desktop/background/picture-uri
Now run sudo dconf update
Then users can't change the wallpaper anymore !
- dconf admin guide
- incomplete answer
add a comment |Â
up vote
1
down vote
Yes you can. You need to enforce dconf read-only lock on the background property. I assume you use gnome shell or any destop than use dconf.
So create a file /etc/dconf/profile/user with the content
user-db:user
systemd-db:local
This defines a user dconf db -which is always defined anyway, but also define a system db that we will use to lock the key we want.
Now create the directory /etc/dconf/db/local.d. This is where reside the keyfile you want to set.
But to lock key, you need to create also /etc/dconf/db/local.d/locks directory. now in that directory any file with a key will be locked.
So create /etc/dconf/db/local.d/locks/00_wallpaper with the content:
# prevent changes to the wallpaper
/org/gnome/desktop/background/picture-uri
Now run sudo dconf update
Then users can't change the wallpaper anymore !
- dconf admin guide
- incomplete answer
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Yes you can. You need to enforce dconf read-only lock on the background property. I assume you use gnome shell or any destop than use dconf.
So create a file /etc/dconf/profile/user with the content
user-db:user
systemd-db:local
This defines a user dconf db -which is always defined anyway, but also define a system db that we will use to lock the key we want.
Now create the directory /etc/dconf/db/local.d. This is where reside the keyfile you want to set.
But to lock key, you need to create also /etc/dconf/db/local.d/locks directory. now in that directory any file with a key will be locked.
So create /etc/dconf/db/local.d/locks/00_wallpaper with the content:
# prevent changes to the wallpaper
/org/gnome/desktop/background/picture-uri
Now run sudo dconf update
Then users can't change the wallpaper anymore !
- dconf admin guide
- incomplete answer
Yes you can. You need to enforce dconf read-only lock on the background property. I assume you use gnome shell or any destop than use dconf.
So create a file /etc/dconf/profile/user with the content
user-db:user
systemd-db:local
This defines a user dconf db -which is always defined anyway, but also define a system db that we will use to lock the key we want.
Now create the directory /etc/dconf/db/local.d. This is where reside the keyfile you want to set.
But to lock key, you need to create also /etc/dconf/db/local.d/locks directory. now in that directory any file with a key will be locked.
So create /etc/dconf/db/local.d/locks/00_wallpaper with the content:
# prevent changes to the wallpaper
/org/gnome/desktop/background/picture-uri
Now run sudo dconf update
Then users can't change the wallpaper anymore !
- dconf admin guide
- incomplete answer
answered May 9 at 21:55
solsTiCe
4,90221642
4,90221642
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034000%2fprevent-users-from-changing-the-desktop-background-on-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
Give them a separate login ID from yours. Just about anything else would involve crippling the system. It would help if we understood the wallpaper problem... or why it's a problem. As long as they are using your account, they will have all the same access and control that you have. The question might best be asked, how to stop you from being able to change your desktop background.
â L. D. James
May 9 at 11:36
1
@L.D.James That's not a comment! That's an answer! Enter it and ping me and I'll come back to upvote... :-)
â Fabby
May 9 at 18:38
@Fabby Thanks... will do.
â L. D. James
May 9 at 19:04