LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-21-2011, 12:34 AM   #1
lewster
LQ Newbie
 
Registered: Dec 2005
Location: West Henrietta, NY, USA
Distribution: openSUSE tumbleweed, Linux Mint KDE
Posts: 6

Rep: Reputation: 0
Question Can superuser prevent a KDE 4.6user from deleting icons from his desktop?


Despite repeated pleadings from me, my elderly father has been deleting all of his desktop icons (KDE 4.6, openSUSE 11.3). I lock the widgets, but somehow he manages to unlock the widgets AND delete everything he can. Then I have to restore his desktop again. He's not deliberately malicious; he just tries stuff out when he forgets how to, say, bring up google.

I've tried changing the ownership and permission bits of my dad's icons, but either KDE allows him to delete them anyway, or else the icons turn into nonfunctional white rectangles.

I've also looked into kiosking, but the software I've found seems to lack recent support.

Another factor to take into consideration: I must administer my father's system through ssh because he and I live 1000 miles from each other. I use nomachine's nx when I can, but it's not always available, so a CLI solution would be preferable to a GUI one.

Thanks in advance for any ideas.

Last edited by lewster; 03-22-2011 at 03:30 AM.
 
Old 03-21-2011, 09:25 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
Can't you lock his /.desktop file using permission / ownership?
 
Old 03-22-2011, 12:30 AM   #3
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 6
Quote:
Then I have to restore his desktop again.
How do you do this? What about a chron job, restoring his desktop ... say ... hourly?
 
Old 03-22-2011, 03:12 AM   #4
lewster
LQ Newbie
 
Registered: Dec 2005
Location: West Henrietta, NY, USA
Distribution: openSUSE tumbleweed, Linux Mint KDE
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JZL240I-U View Post
Can't you lock his /.desktop file using permission / ownership?
Thanks kindly for the response, JJZL240I-U. There is no /.desktop file, but perhaps you meant the ~/Desktop directory? That's what I assumed.

In any case, your suggestion was an interesting one, and I learned a few things by following it, including how to describe the problem more precisely. I said in the original post that my father deletes his icons. It's more accurate, however, to say that he makes them go away by unlocking widgets and then deleting the panel that contains his icons. The icon files remain in ~/Desktop; You just can't see them.

Also, I've learned that when I delete the ~/.kde4 directory and reboot, his old icons return, with the widgets unlocked and therefore vulnerable to my dad's tendency to delete things. That's better than nothing, of course, and another responder suggested that I just cron a restoration periodically.

Finally, I've concluded that the problem is plasma issue, not a file permission bit issue. (Apologies for possibly using wrong terminology here; I need to learn much more about KDE 4.6 and plasma). Consider this experiment and its results: I set all of ~/Desktop's 9 permission bits to zero. I expected that the user could do nothing on the desktop, but in fact he can still unlock the desktop widgets and delete panels. Apparently the software designers decided that plasma configuration tools will ignore file permission bit settings. A user can delete whatever that user wishes, even if to do so conflicts with permission bits.

Anyway, I believe that a solution to this problem lies not in how to configure permission bits in ~/Desktop or that directory's contents. Perhaps it's possible to configure plasma? Again, I'm not real familiar with that part of the system.

Thanks again.

lewster
 
Old 03-22-2011, 03:26 AM   #5
lewster
LQ Newbie
 
Registered: Dec 2005
Location: West Henrietta, NY, USA
Distribution: openSUSE tumbleweed, Linux Mint KDE
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bluebox View Post
How do you do this? What about a chron job, restoring his desktop ... say ... hourly?
Thanks for the interesting idea, bluebox. When my dad began screwing up his desktop several weeks ago, I found out that you can recover the default desktop by deleting the ~/.kde4 directory and rebooting. When the user logs in the next time, the system will create a new directory, and the user will see a new desktop.

Yeah, it would be real easy to write a short script program to do this automatically with cron. One complication I've discovered, however, from doing it manually. By default a new desktop's widgets come unlocked. As I implied in my original post, my father tends to futz around and click on things when he forgets how to do something, so it would be better to have locked widgets in his new desktop, so he'd have one more obstacle before he can cause damage. But your idea is a practical remedy. Thanks.

lewster
 
Old 03-22-2011, 05:27 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
Hi lewster .

Quote:
Originally Posted by lewster View Post
...There is no /.desktop file, but perhaps you meant the ~/Desktop directory? That's what I assumed.
Yes, of course. I was in a hurry when I wrote my suggestion.


Quote:
Originally Posted by lewster View Post
...In any case, your suggestion was an interesting one, and I learned a few things by following it, including how to describe the problem more precisely.


Quote:
Originally Posted by lewster View Post
...Also, I've learned that when I delete the ~/.kde4 directory and reboot, his old icons return, with the widgets unlocked and therefore vulnerable to my dad's tendency to delete things.
Would be "locking" ~/.kde4 by permission and owner give you a chance to achieve your goal?

Quote:
Originally Posted by lewster View Post
...I set all of ~/Desktop's 9 permission bits to zero. I expected that the user could do nothing on the desktop, but in fact he can still unlock the desktop widgets and delete panels ... A user can delete whatever that user wishes, even if to do so conflicts with permission bits.
Next step might be the use of ACLs.


Quote:
Originally Posted by lewster View Post
...Anyway, I believe that a solution to this problem lies not in how to configure permission bits in ~/Desktop or that directory's contents. Perhaps it's possible to configure plasma? Again, I'm not real familiar with that part of the system.
Neither am I, sorry .
 
Old 03-22-2011, 11:26 AM   #7
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 6
Yes, this is a plasma problem, not a file permission problem. But, as plasma has to store its configuration somewhere, the problem should be trackable down to a file permission problem.

Or, to be more precisely, it is a "desktop preconfiguration problem"

I'm quite new to KDE 4. As far as I understood, there is no "icons" anymore in KDE 4, everything is a "plasmoid". I don't know whether there is a way to lock locked plasmoids in an unlockable way. But the configuration has to be stored somewhere in /home/, so it should be possible to set up a preconfigured configuration when e.g. the user logs in.

Maybe, the easiest way would be to write a script that restores the desired state of the desktop and put it into autostart. Your dad would still be able to sabotage this, but as you said, he is not malicious, so probably he will not do so.

Edit: I rethought about this ... maybe it's not a good idea to change the KDE config via KDE autostart. The KDM startup scripts would be a better place. See "man kdm".

Anyways ... configure the desktop the way it should be including locked plasmoids, log out of the session, backup the .kde4 directory and restore the backup whenever your dad logs in.

End of edit.

A cronjob would be the "hard" way to do this.

Quote:
to say that he makes them go away by unlocking widgets and then deleting the panel that contains his icons.
Are we talking about this desktop panel window that comes with KDE 4? You can configure it to expand over the whole desktop, so it is not obviously a "closable window" anymore, but just "the desktop". Maybe this prevents him from deleting this panel.

btw, what about just adding the commands he needs to the KDE menu? Maybe to "favourites"?

Last edited by bluebox; 03-22-2011 at 01:06 PM.
 
Old 03-30-2011, 03:50 PM   #8
lewster
LQ Newbie
 
Registered: Dec 2005
Location: West Henrietta, NY, USA
Distribution: openSUSE tumbleweed, Linux Mint KDE
Posts: 6

Original Poster
Rep: Reputation: 0
Another solution : hide the cashew

Thanks bluebox and JZL240I-U. Sorry for not getting back much sooner, but life distracted me. In any event, I think I found a practical, if inelegant solution: You can drag and drop the plasma cashew to any point on the periphery of the desktop. When it's dragged to the same corner as the application launcher, the cashew disappears behind the launcher. And my dad would be very unlikely to find it there.

According to a number of sources, the plasma developers didn't provide a conventional means for hiding the cashew, or for preventing a user from unlocking widgets. I think that's a problem, but what do I know?

Again, I'm grateful for your responses, which led me to learn some interesting things.
 
  


Reply

Tags
desktop, kde4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting desktop icons in KDE Happeren Suse/Novell 2 10-31-2005 02:45 PM
KDE 3.3.1 -> Icons on Desktop don't disappear when deleting hypernetics Fedora 0 11-13-2004 07:40 AM
kde desktop icons XSW Linux - Newbie 1 12-23-2003 10:51 PM
Deleting Icons on Desktop Micro420 Mandriva 13 09-05-2003 09:32 PM
KDE Desktop Icons thesynergy Linux - General 0 11-07-2001 07:36 AM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration