Tuesday, 2015-03-31

*** nowen (~nowen@2600:1003:b007:a328:b5cf:c0f6:b669:9f73) has joined #wikid13:26
laszlofwb13:39
laszlofnowen: whats the purpose of the setenv.sh script? my shell is trying to call it everytime I login and chown some files13:39
laszlofchown: changing ownership of `/opt/WiKID/lib/xercesImpl.jar': Operation not permitted13:39
laszlofchown: changing ownership of `/opt/WiKID/lib/mailapi.jar': Operation not permitted13:40
laszlofchown: changing ownership of `/opt/WiKID/lib': Operation not permitted13:40
laszlofchown: changing ownership of `/opt/WiKID': Operation not permitted13:40
laszloffortunately thats all root owned so it cant change it13:40
laszlofi never noticed it until recently.13:41
nowenlaszlof: just checking in.  still traveling13:50
nowenthat script should do some simple environment checks.13:51
laszloflooks like it expects /opt/WiKID/* to be owned by root13:51
nowenit should check the ownership. is this a new install or old?13:51
laszlofand its owned by "wikid"13:51
laszlofrelatively new13:51
laszlofI hosed up my test environment and reinstalled a few weeks ago13:52
nowenshould be owned by wikid:root13:52
laszlofeither way, those kind of things shouldnt be set in an env file like that13:52
laszlofcause it runs for every user that logs in13:52
laszlofit would be fine if it was just for root13:52
nowenhmm13:52
laszlofcause it would actually work13:52
laszlofbut logging in as my local user, it tries to chown the files and fails13:53
laszlofmaybe just needs some sanity checks around it13:53
nowenyeah.  or is there another option?13:53
laszlofi dont think a login script is a good place for it anyways :)13:54
laszlofmaybe a startup script13:54
nowenput it in as a check in 'wikidctl start'?13:54
laszlofya, or that13:54
laszlofthat has to be run as a privledged user, so it wouldnt fail13:55
laszlofor shouldnt, anyways13:55
nowenthat's probably some pretty old code in there13:57
laszlofthe env stuff makes sense13:57
laszlofto have in the login script13:57
laszlofbut you typically dont want to go around chowning files whenever someone logs in.13:57
nowenright13:57
laszlofI probably have some jacked up file ownership, which is what prompted it13:58
laszlof[laszlof@tyr ~]$ ls -ld /opt/WiKID/13:58
laszlofdrwxr-xr-x 13 wikid root 4096 Mar  9 12:31 /opt/WiKID/13:58
laszlofWIKID_USER is set to root13:59
laszlofso thats why its trying to chown the files13:59
nowenwikid user should be set to wikid in /etc/WiKID/security14:00
laszlofit is14:01
laszlofbut its set to root in setenv.sh14:01
nowenhmm. if you change it to root, does the problem go away?14:02
laszlofyou mean change it to wikid?14:05
laszlofi would imagine so14:05
laszlofsince the conditional would be met14:05
laszlofi just commented out the chown.  :)14:05
nowenthat works ;-)14:08
nowenI'll dig into it a bit more when I'm back home14:10
nowenok  - time for the next meeting. Most likely I will be back on here tomorrow afternoon.14:11
laszlofcool. have fun14:12
nowenlater14:12
*** nowen has quit (Quit: Leaving.)14:12
*** moushira (~chatzilla@wikimedia/Moushira) has joined #wikid14:36
*** moushira has parted #wikid (None)14:37
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid16:30
*** ricardoamaro has quit (Ping timeout: 265 seconds)19:46
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid19:55
*** ricardoamaro has quit (Remote host closed the connection)23:54
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid23:55

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!