Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2014-01-02

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
23:00 mgage_ joined #webwork
00:36 mgage_ joined #webwork
01:19 mgage_ joined #webwork
02:29 mgage_ joined #webwork
11:51 mgage_ joined #webwork
14:08 mgage_ joined #webwork
14:35 mgage_ joined #webwork
16:22 aubreyja joined #webwork
16:22 aubreyja joined #webwork
16:40 aubreyja hi mgage
17:50 mgage_ joined #webwork
18:20 mgage_ joined #webwork
19:34 mgage_ joined #webwork
19:34 mgage_ aubreyja:hi
19:35 aubreyja hi - happy new year - I forgot why I pinged you though (must not have been that important!)
19:35 mgage_ happy new year
19:36 mgage_ might have been about the setfilepermission script -- I saw your post on the forums
19:37 aubreyja ah, I remember, about Monday - would you have time to check wiki/bugzilla/moodle functionality if I also upgrade them? Seems like as good a time as any -
19:38 mgage_ could you and John Jones consult about that and come to some conclusion that would be safe for most people?  I think that having an external script to run just to reset file permissions is a useful thing to have -- it's not uncommon for me (or some other sysadmin) to temporarily change permissions to get some work done -- a failsafe way of resetting would be a good thing.
19:38 mgage_ sounds like JJ might have missed a few items when he wrote the script.
19:39 mgage_ if there was a way of calling that script from within your install program then everything might be easier to maintain.
19:39 aubreyja yeah, I agree - the only thing preventing jj's script from being easy to modify is that the webwork user/group (e.g. wwadmin/wwdata) would need to be available to it
19:40 mgage_ I'm sure there are some compromises involved in all of this that I don't fully appreciate which is why I'm shoving it off on you guys. :-)
19:40 aubreyja so, maybe we can  add that to $ce or make it a parameter to the script.
19:40 mgage_ I believe that he is pulling that out of the sites.conf -- I and Danny Glin did that because there is no other easy way to determine it.
19:41 aubreyja well, he's getting the server user/group from site.conf -
19:41 mgage_ A further compromise involved with combining scripts would be to get the documentation to conform as well.
19:42 aubreyja actually - a good question is why do we need the server user/group in sites.conf and could we just use wwadmin and wwdata instead if they are different?
19:42 mgage_ isn't the server user name in site.conf as well?  if not it should be --- and the documentation should be firm about getting that set correctly.
19:43 aubreyja yes, the server, but not the webwork administrator or webwork data group
19:43 aubreyja i.e. the actual web-server
19:43 aubreyja # The following two variables must match the user ID and group ID respectively
19:43 aubreyja # under which apache is running.
19:43 aubreyja # In the apache configuration file (often called httpd.conf) you will find
19:43 aubreyja # User www-data --- this is the $server_userID -- of course it may be wwhttpd or some other name
19:43 aubreyja # Group wwdata --- this is the $server_groupID -- this will have different names also
19:43 aubreyja $server_userID = 'www-data';
19:43 aubreyja $server_groupID = 'wwdata';
19:43 mgage_ a number of scripts and some part of the website need to be able to determine the url, username and usergroup of the server -- I found this much harder to obtain than I expected.
19:45 aubreyja I'm willing to bet all of those can be replaced by the webwork admin user and wwdata group, given the way the permissions are set up by default
19:45 mgage_ I see -- the group name for webwork administrators.  -- that is not in site.conf currently but I guess you need that if you want to set permissions on all of the files.
19:46 aubreyja yes - but before we add that, lemme check into the simpler fix of changing what we require in site.conf
19:46 aubreyja My intuition is that the way things are set up, that should suffice
19:47 mgage_ I don't think it would be horrible to ask that the webwork administrators group name be specified.
19:47 aubreyja yeah, that would be a sensible thing to ask for
19:47 mgage_ and I guess a default webwork administrator (which would be different from the user name used by the server)
19:48 aubreyja also, frankly, setting the ownership to the logged in user seems to me like a really bad idea
19:48 aubreyja for example, if kenneth ran it on the maa servers, then we couldn't modify those files because he personally would own them
19:48 mgage_ Yes.  I agree with that as well.  (particularly if they are using sudo) -- I'm assuming that was just oversight on JJ's part.
19:48 aubreyja it just doesn't work in an environment where there are multiple admins
19:49 mgage_ (except that we have sudo privileges ) -- that is actually how I operate.  I don't have any owner or group permissions but I do have sudo privileges. -- that has worked but it can be annoying -- particularly when I do remote editing.
19:50 mgage_ and that's how I operate even on my laptop version -- it's useful to have to use sudo before changing something potentially damaging
19:50 aubreyja sorry -that's right - but still it's at least strange to have them owned personally by one of the admins
19:50 mgage_ granted.
19:51 mgage_ it is important I think that the webserver user doesn't have write privileges in general
19:52 aubreyja actually, a problem would occur if a sysadmin had root sudo privileges and a webwork admin only had rights to change files owned by wwadmin. Then if the sysadmin ran it, it would remove access from the ww admin
19:52 aubreyja that's how we had things set up for a long time at MU before I put my foot down
19:53 mgage_ about moodle.  -- I can do check that.  I'm in the process of checking whether or not I can update to moodle 2.6.  moodle 2.5 is ok -- I thought at first that moodle 2.6 broke things but resetting the moodle/webwork connection seems to fix that --- still have more checking to do
19:53 aubreyja ok, I'll prepare a wiki/bugzilla upgrade so we can just swap them in and test on Monday (and swap out if necessary)
19:54 mgage_ yes -- I think a perfectly polished command line script is very careful about who it runs as -- being able to reference site.conf has helped but we're probably not done yet.
19:54 aubreyja I'm hoping this will fix the account creation problem for the wiki in particular, and add some useful git related features to the wiki and bugzilla
19:55 mgage_ kk
20:48 goehle joined #webwork
21:02 mgage_ joined #webwork
21:58 mgage_ joined #webwork
22:41 mgage_ joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary