Re: [K12OSN] apache and student websites

Paul Nelson (pnelson@riverdale.k12.or.us)
01 Mar 2002 22:29:09 -0800


I'm still learning about samba after using for about 5 years now...

One new thing I learned this year was the inherit parmissions tag you
can set for a share. I'll post it here from the smb.conf man page.
Basically what it lets you do is create the permissions you  want for
the parent directory and then everything under that gets the same
permissions. This could work well for web folders and solve the problem
mentioned in the original post. It also works well for folders shared by
groups. You could set group ownership and make the files writable and
then the permissions would get passed on to all the other users as they
add files and folders.

;-) Paul

>From smb.conf man page:

 inherit permissions (S)
              The permissions on new files  and  directories  are
              normally governed by  create mask,  directory mask,
              force create mode and force directory mode but  the
              boolean  inherit  permissions  parameter  overrides
              this.

              New directories inherit  the  mode  of  the  parent
              directory, including bits such as setgid.

              New  files  inherit  their read/write bits from the
              parent directory. Their execute bits continue to be
              determined by map archive , map hidden and map sys­
              tem as usual.

              Note that the setuid bit is never set  via  inheri­
              tance (the code explicitly prohibits this).

              This  can  be  particularly useful on large systems
              with many users, perhaps several thousand, to allow
              a  single [homes] share to be used flexibly by each
              user.



On Fri, 2002-03-01 at 21:13, James Jensen wrote:
> Paul's got it.
> 
> That's probably one of the trickier aspects of using Samba--dealing with
> file & directory rights between the Unix & Windows worlds.  This chapter
> from O'Reilly's _Using Samba_ book was very helpful in my quest to mesh the
> two schemes:
> 
> http://www.oreilly.com/catalog/samba/chapter/book/ch05_03.html
> 
> Of particular interest is figure 5.7:
> http://www.oreilly.com/catalog/samba/chapter/book/ch05_03.html#ch05-56404
> 
> I had an interesting journey in my quest to get Samba to act as a PDC in a
> small office with Windows workstations.  Getting rights to set properly on
> newly created files by default in the Samba shares was one of the issues
> that had to be worked out (sort of what you are seeing).
> 
> Just had to get it all sorted out in smb.conf, once I got that down it
> worked perfectly...
> 
> James
> 
> ----- Original Message -----
> From: "Paul Nelson" 
> To: "Stephen Wagner, District Tech. Coord." 
> Cc: 
> Sent: Friday, March 01, 2002 10:19 AM
> Subject: Re: [K12OSN] apache and student websites
> 
> 
> > What OS is Pagemill running on? If you're using Windows and Samba, then
> > the solution is pretty easy. I made a new share just for the web folders
> > (public_html in each users folder) in the smb.conf file like this:
> >
> > [webfiles]
> >    comment = User Webfolders
> >    path = /home/%u/public_html
> >    browseable = no
> >    read only = no
> >    preserve case = yes
> >    short preserve case =  no
> >    force create mode = 0775
> >    force directory mode = 0775
> >
> > The last two lines will give you the right permissions.
> >
> > Mount this share as the "w:" drive and train the kids to edit and
> > publish through this share instead of their home folder and it will
> > work.
> >
> > ;-) Paul
> >
> > On Fri, 2002-03-01 at 06:53, Stephen Wagner, District Tech. Coord.
> > wrote:
> > > Question..
> > >
> > > I have apache running and have it set up so that students can have their
> > > own website.  ex:
> > > fs1.danps.csw.net/~student
> > >
> > > anyway, the students are using adobe pagemill 3.0 to make their
> websites,
> > > but when they save their pages, the rights to the page are changed from
> > > 0755 to -rw-rw---- I use chmod 755 to get it working again, but when
> they
> > > modify the page and save it, it changes back.  can anyone please help
> me?
> > >
> > > Stephen Wagner
> > > District Technology Coordinator
> > > Danville Public Schools
> > > Danville, AR  72833
> > >
> > >
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN@redhat.com
> > > https://listman.redhat.com/mailman/listinfo/k12osn
> > > For more info see 
> > --
> > ======================================================================
> > Paul Nelson................................pnelson@riverdale.k12.or.us
> > Riverdale School..............11733 SW Breyman Ave. Portland, OR 97219
> > (503)636-4511......fax(503)635-6342.....http://www.riverdale.k12.or.us
> >
> > =====================================================================
> 
> 
-- 
==========================================================
Paul Nelson................... pnelson@riverdale.k12.or.us
Riverdale School, 11733 SW Breyman Ave, Portland, OR 97219
school (503)636-4511.....................fax (503)635-6342
Riverdale Web Page......... http://www.riverdale.k12.or.us



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see