Samba: Read-Only, but writing allowed?
Is there ANY way in Samba (or even Windows... Bleugh!) - to have a read only share, yet anyone can write - but any writing is ignored? E.g. redirect all writing to /dev/null or something!? Its for the profiles on our network (NT Server/2k Clients) - all students will soon use the same generic profile (as set in user manager) but if I make it read-only, it errors, if its writable, students can change anything! Dug Stokes IS Technician/Senior Webmaster Gilberd IS Department The Gilberd School - A Mathematics and Computing College w: www.gilberd.com e: dug@gilberd.com
What sort of errors are you getting if the share is read only? I assume you are renaming USER.DAT to USER.MAN? All the best, Nial. At 09:19 15/07/2003 +0100, you wrote:
Is there ANY way in Samba (or even Windows... Bleugh!) - to have a read only share, yet anyone can write - but any writing is ignored? E.g. redirect all writing to /dev/null or something!?
Its for the profiles on our network (NT Server/2k Clients) - all students will soon use the same generic profile (as set in user manager) but if I make it read-only, it errors, if its writable, students can change anything!
Dug Stokes IS Technician/Senior Webmaster Gilberd IS Department
The Gilberd School - A Mathematics and Computing College w: www.gilberd.com e: dug@gilberd.com
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
--- Dug Stokes <dst@gilberd.essex.sch.uk> wrote:
Is there ANY way in Samba (or even Windows... Bleugh!) - to have a read only share, yet anyone can write - but any writing is ignored? E.g. redirect all writing to /dev/null or something!?
Well, yes there is. Here is what I would do.... On the Linux box, create a group say: "trustees", thus: groupadd trustees Make all your users who can write to it a member of that group (using Yast here would help you, as I doubt editing "/etc/groups" directly is your idea of fun). Then on the partition to which you're mounting, issue the following command: chmod 546 -Rv ./the_directory && chown -Rv root.trustees ./the_directory That *should* give everyone write access (for those in your group) and read access to anyone else. Now, if this is just a transient dump of information, you can issue the following command as a cron-job 1 * * * * * rm -fr /the/directory/* >& /dev/null 2>&1 Which would wipe everything out, each minute. As to whether it would work, I'm not sure, but you can try it :) HTH, -- Thomas Adam (innovative solutions :) ) ===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
participants (3)
-
Dug Stokes
-
mailinglists@admin.tregib.org.uk
-
Thomas Adam