I decided to teach to my students (10-13 years old) pc and software using a live USB distribution of edubuntu. I can't erase Windows XP becuase it used by other teachers and using a live USB is faster for me than installing dual boot partitioning and so on. But there is a problem. When the system is ready the students can go in nautilus and erase Windows files because they have permissions. What must I do? Can I change permission? Is the change permanent?
Asked
Active
Viewed 67 times
0
2 Answers
2
Since this would imply dropping sudo
rights for the students anyway, a quick workaround could be this one:
- Boot from the Live USB
- Make sure all the partitions you don't want the student to access are mounted
- Open Terminal with Ctrl+Alt+T
- Change the ubuntu user's password: run
passwd
, hit Enter, type a password, type the password again and hit Enter - Close the terminal: run
exit
- Start the Guest user's session
This way being the partitions mounted in the ubuntu user's session there's no way for them to be mounted on the Guest user's session as well (unless by switching back to the ubuntu user's session in order to unmount them, which can't be done without knowing the password).

kos
- 35,891
0
You can just unmount partitions that you don't want people to mess with. That would have additional pro of not tempting anybody to try to get there by just not showing any windows partition whatsoever.
- Boot from the Live USB
- Open Terminal
- Find out windows partition by f.ex.
mount | grep ntfs
(if it's ntfs filesystem, or vfat, if it's fat32) sudo umount [mountpoint of windows filesystem]
(it will probably be someting like /media/[something])- Exit terminal

Marek Bettman
- 481
-
No, this way the drives / partitions would be still visible in Files; also they could be mounted again easily just by clicking on their entry – kos Sep 15 '15 at 11:07
-
Hm, yea, I guess you're right - I think too much in terms of command-line only systems :) On a side note - would unloading ntfs module after unmounting also made unmounted disk invisible in GUI, or does that just takes entries from fstab and presents them? – Marek Bettman Sep 15 '15 at 11:35
-
No idea, however thinking about this again in this case just plainly uninstalling ntfs-3g should do the trick (aside from the fact that of course
sudo
rights should be inhibited as well to prevent a reinstallation) – kos Sep 15 '15 at 12:54
ntfs-3g
). I suppose you're trying to prevent accidental deletion. Because once the students realise they can make their own USBs and boot to the PC... poof! admin access. – muru Sep 14 '15 at 22:28