Ticket #10531 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Users delete or rename ~/Activities, rendering Sugar unusable

Reported by: godiard Owned by: martin.langhoff
Priority: normal Milestone: 10.1.3
Component: gnome-desktop Version: not specified
Keywords: Cc: godiard, sridhar
Action Needed: no action Verified: no
Deployments affected: Blocked By:
Blocking: #10409

Description

This ticket depends on #10409 "GNOME Breakability Issues -- options and actions breaking Gnome and Sugar"

Change History

  Changed 3 years ago by godiard

We can create a ".hidden" file in /home/olpc/

cd /home/olpc/
echo Activities > .hidden
echo Library > .hidden
echo power-logs > .hidden

This file hide the directories in Nautilus, but not in the file chooser. There are a option in Nautilus to see the hidden files.

This file prevents accidental deletion of directories but does not prevent the deletion if the user want to do it.

  Changed 3 years ago by martin.langhoff

  • milestone changed from Not Triaged to 10.1.3

  Changed 3 years ago by martin.langhoff

We have some options to ameliorate the problem, with comments

  • Split Gnome and Sugar sessions to different users. Complex, complicates sharing documents later.
  • ~/.hidden - simple, limited.
  • mv ~/Activities elsewhere during Gnome sessions. If we mv it to .Activities, it's effectively equivalent to a .hidden file.
  • chattr +i or chmod 0000 ~/Activities immutable/readonly during Gnome sessions. This is only effective if we do it recursively. chattr requires root (while olpc-session runs as olpc).

follow-up: ↓ 5   Changed 3 years ago by martin.langhoff

  • cc godiard added
  • next_action changed from code to add to build

We have olpc-utils-1.0.32 in my rpm dir, which should get pulled into the next build. It has http://dev.laptop.org/git/users/martin/olpc-utils.git/commit/?id=4e095e4f880e2c74b7f6ec6ac0720d87f5e5af88

Which will

  • Put ~/Activities and power-logs in .hidden if necessary.
  • Toggle ~/Activities between 755 and 000 modes.

Naturally, the user still owns the dir, and can make it writeable. This however raises the bar on accidental damage (which was ridiculously low to start).

in reply to: ↑ 4   Changed 3 years ago by erikos

Replying to martin.langhoff:

We have olpc-utils-1.0.32 in my rpm dir, which should get pulled into the next build. It has http://dev.laptop.org/git/users/martin/olpc-utils.git/commit/?id=4e095e4f880e2c74b7f6ec6ac0720d87f5e5af88 Which will * Put ~/Activities and power-logs in .hidden if necessary. * Toggle ~/Activities between 755 and 000 modes. Naturally, the user still owns the dir, and can make it writeable. This however raises the bar on accidental damage (which was ridiculously low to start).

Works for me as described, thanks: http://xs-dev.laptop.org/~dsd/repos/f11/olpc-utils-1.0.33-1.fc11.i586.rpm

  Changed 3 years ago by erikos

  • next_action changed from add to build to test in build

Is in 359.

  Changed 3 years ago by godiard

|TestCase| In Nautilus (the Gnome file manager) the Activities directory is hidden in by default. In Nautilus you can see the directory changing a configuration in Edit -> Preferences -> Views -> Show hidden and backup files. The permissions in the directory are changed too when the session starts, in Gnome write is disabled and in Sugar is enabled.

  Changed 3 years ago by erikos

We do not hide the Library folder. I think this should be done as well.

  Changed 3 years ago by greenfeld

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

Verified that I could not see the Activities or power-logs directories in GNOME's file browser, although the terminal and other programs still showed that they were there.

Also verified that "rm -rf Activities" failed due to a permissions issue while in GNOME, but I could install new activities while in Sugar.

Tested in 10.1.3 os360.

The Library folder was not changed for this release. While removing it gets rid of Collections, its removal does not prevent Sugar from starting.

  Changed 3 years ago by sridhar

  • cc sridhar added
Note: See TracTickets for help on using tickets.