[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Re: Please pity a newbie...file permissions



It is my understanding that when you list all the contents of a directory
and the file permissions, you should get 3 sets of 3 codes designating
whether the user, group and world can read (r), write (w) or execute (x)
each file or directory (d).  In the line below, what the blazes does the "s"
stand for (and where should I have been able to find the information) and is
it a security issue?

man chmod

s = setuid, aka "sticky bit" ... makes all files created under that directory owned by the group, not just the user, enabling others in the group to read/write it even if "world" permissions are not enabled. Also related to site quota info.

As long as you are looking, if I change the owner of a directory within the
teachers directory, then can the owner of the teachers directory (ddisher)
still write to the modified directory?

We are using Macromedia Dreamweaver for the main webpage and Macromedia
Contribute for each teacher to create and maintain their own page -
assignments, events, etc, hopefully on at least a weekly basis. (It
automates nearly everything for them.  If they can fill out a table and
click "Publish", they can do a webpage.) We want them to use a template to
maintain consistency across our site.  Dreamweaver won't link the template
to each user if we have them keep their data in the user folder that our
Qube3 assigns them.  So we would like to assign them each a folder within
the teachers folder in the main website folder so they can ftp the data in
using their own login information rather than the webmasters.  Any
recommendations?

That's what groups are for. Make a group of the relevant users, and they can publish into their own directory. If the default URL (www.example.com/~group/) isn't acceptable, you could make a symlink into a "regular" web directory or something.