How can I set up Samba to enable NT users to save HTML files to their own home directories on our Linux web server? For example, I want to have them save to /home/teacher1/web/foo.html on our Linux machine, by saving it to L:\teacher1\foo.html on our NT 4 machine. I'm brand new to Samba (just installed Samba 2.2.1a on RedHat 6.2 OS, and am trying to get it set up and running), and I'm trying to wade through all the docs, but if anyone could give me some direct advice, I'd appreciate it! Thanks. Eric Engen Platte Valley Academy Shelton, Nebraska http://www.plattevalley.org/
On Tue, 16 Oct 2001, Eric Engen wrote:> How can I set up Samba to enable NT users to save HTML files to their own > home directories on our Linux web server? For example, I want to have them > save to /home/teacher1/web/foo.html on our Linux machine, by saving it to > L:\teacher1\foo.html on our NT 4 machine. > > I'm brand new to Samba (just installed Samba 2.2.1a on RedHat 6.2 OS, and am > trying to get it set up and running), and I'm trying to wade through all the > docs, but if anyone could give me some direct advice, I'd appreciate it!Mostly. Install samba and configure it to work on your network. The info in $doc/samba-2.2.1a/txtdocs/DIAGNOSIS.txt is _really_ good. where "$doc" is where RedHat 6.2 puts it docs (prolly /usr/doc") Assuming you've run the appropriate "net nse l: \\server\<share>" command on your workstatiuons. Simply edit the "[homes]" section and set the path to: [homes] .... path = /home/%U/web This will mean that the user can save files in "L:\" and they will be webable. Or you can use the default "homes" declaration and the teachers can remeber to place thier web files in "L:\web\" Or you can comment out the homes share altogether and simply declare: [Public] path = /home ... other required options ... And the Staff will be able to save web content in "L:\teacher1\web\" I don't believe that there is any way to get the "L:\Teacher1\..." format you requested. Yours Tony. /* * "The significant problems we face cannot be solved at the * same level of thinking we were at when we created them." * --Albert Einstein */
> How can I set up Samba to enable NT users to save HTML files to their own > home directories on our Linux web server? For example, I want to have them > save to /home/teacher1/web/foo.html on our Linux machine, by saving it to > L:\teacher1\foo.html on our NT 4 machine.At a first glace: This mapping won't work. (Or is going to be tricky) The path statement of the share allway defines the first part of the Unix-Path to the file, the path after the drive letter the secend part. And so you some how get problems leaving out the "web" in the path. But you can define a share [my_web] with path = /home/%u/web in smb.conf, map this share to L: with %u as teacher1 an access the file with L:\foo.html. May be you have to use %U. Or simply use [homes] with out any path and share the home Directories completly (I asume /home/teacher1 is the home directory) and access L:\web\foo.html> > I'm brand new to Samba (just installed Samba 2.2.1a on RedHat 6.2 OS, and am > trying to get it set up and running), and I'm trying to wade through all the > docs, but if anyone could give me some direct advice, I'd appreciate it!For general advice about samba look at the docs that come with the source, at samba.org escecially the PDF-Howto and at the books about samba. One comes as html with the source. Christian> > Thanks. > > Eric Engen > Platte Valley Academy > Shelton, Nebraska > http://www.plattevalley.org/ > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^