Hello All, I have to set up a linux server (most likely debian-based) which will be a file/printer and web server.
Now i have a Single CD-RW Drive which i want to share via samba, so all users can burn CD's
A user would put a blank CD-R (or CD-RW) in the drive and connect to the samba share on the server (as they are windows users). From there i want them to be able to copy files to the CD-R(W) as if its a hard disk (e.g drag & drop), when they are done they close the share and remove the CD, which should be then usable in any computer (mac or PC).
I know Samba already has the ability to mount and unmount volumes automatically (well it has the posibillity to execute a program (or script) before and after mounting) depending on whether the share is in use.
now is it possible to make it so that as soon as a disk is inserted it will mount it writable (format it with a UDF filesystem if its a blank cd, keep the existing UDF filesystem (and users files) if the disk is already got a UDF filsystem) so that people can record accross the network?
(i think some scripts will be required for this)
linux has proved is flexibility and power to me more then once but can this really be done?
Also is there any-way to make it so that only one user at a time can access the share? (having three users trying to write to one CD could be messy
)
any comments/example scripts/tips/how-to links appreciated....
Thanks!
NOTE: the automatic formatting of a CD-R(W) is not a requirement but it would be nice (saves them having to format it beforehand) but if its not possible its not too big a deal, the crucial thing is for the user to be able to write to the CD via the network. so if its not possible to do all the above, just telling me how to do the crucial thing is enough