This approach would be vulnerable to race cases, since the
/tmp/SUNWut/mnt/$USER/* directory tree will be
populated around the same time any utaction is executed.
So I'm not sure how reliable you can make this.  There is
unfortunately no hook which is executed after storage is
mounted, which is what you'd presumably really want here.

-Bob

Alex Collins wrote:


We would like to have SRS always mount USB devices as read-only. Users should
be able to copy information off of CD-ROMs attached to their Sun Rays, but if
they attach a CD-RW or flash drive, we do not want them to be able to write
files.
If this can be scripted to decide whether to mount r/o or r/w based on DTU,
so much the better.
Perhaps just a utaction that changes the permissions on
/tmp/SUNWut/mnt/$USER/* ? Has anyone tried something like this?
Hi Tom

        This is exactly what you need to do as the drive gets mounted.
I presume you are not using CAM / Kiosk so I can't tell you exactly how to do
it.

The script we use for CAM is at:
http://libweb.anglia.ac.uk/test/CAM_Storage_Fix.tar.gz
Credit for this Script goes to Brad.





_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to