Results 1 to 4 of 4

Thread: Lock Permissions on Desktop Background

  1. #1
    Join Date
    May 2005
    Location
    USA
    Beans
    186
    Distro
    Xubuntu

    Question Lock Permissions on Desktop Background

    In XFCE, is there a way to lock the permissions on changing the desktop background image? Right now I can right click the desktop and go to "desktop settings" without a password. Is there a way I can change the permissions for this application to require sudo?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Lock Permissions on Desktop Background

    Right now I can right click the desktop and go to "desktop settings" without a password.
    These are per user settings not system settings, so why should there be a password? A user should be able to set the background image as he/she wants.

  3. #3
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    801
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Lock Permissions on Desktop Background

    2F4U is right but I guess you knew that already.
    What if you still want to prevent someone (say a kid) from changing your wallpaper while you are away.
    Here's a strategy that might work for you.

    1) Rename and restrict xfdesktop-settings
    Code:
    sudo mv /usr/bin/xfdesktop-settings /usr/bin/xfdesktop-settings-bin
    sudo chmod 700 /usr/bin/xfdesktop-settings-bin
    2) Create a script that will unlock the settings and run them
    Code:
    gksudo leafpad /usr/bin/xfdesktop-settings
    Contents:
    Code:
    #!/bin/bash
    gksudo chmod 755 /usr/bin/xfdesktop-settings-bin && /usr/bin/xfdesktop-settings-bin && gksudo chmod 700 /usr/bin/xfdesktop-settings-bin
    3) Make the script executable
    Code:
    sudo chmod +x /usr/bin/xfdesktop-settings
    Now every time you launch the desktop settings, this script will be executed.
    You should save these instruction in case Xfce gets updated and overwrites your script.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  4. #4
    Join Date
    May 2005
    Location
    USA
    Beans
    186
    Distro
    Xubuntu

    Re: Lock Permissions on Desktop Background

    Quote Originally Posted by LewisTM View Post
    2F4U is right but I guess you knew that already.
    What if you still want to prevent someone (say a kid) from changing your wallpaper while you are away.
    Cheers!
    You read my mind lol. Thanks, the script works great.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •