Prevent users from changing the desktop background on Ubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?







share|improve this question


















  • 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














up vote
2
down vote

favorite












How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?







share|improve this question


















  • 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












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?







share|improve this question














How can I prevent users from changing the desktop wallpaper on Ubuntu 18.04?









share|improve this question













share|improve this question




share|improve this question








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












  • 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










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.






share|improve this answer






















  • 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

















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





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer






















    • 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














    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.






    share|improve this answer






















    • 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












    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.






    share|improve this answer














    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.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    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
















    • 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












    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





    share|improve this answer
























      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





      share|improve this answer






















        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





        share|improve this 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






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 9 at 21:55









        solsTiCe

        4,90221642




        4,90221642






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error

            How do I move numbers in filenames, in a batch renaming operation?