*** nowen (~nowen@2600:1003:b007:a328:b5cf:c0f6:b669:9f73) has joined #wikid | 13:26 | |
laszlof | wb | 13:39 |
---|---|---|
laszlof | nowen: whats the purpose of the setenv.sh script? my shell is trying to call it everytime I login and chown some files | 13:39 |
laszlof | chown: changing ownership of `/opt/WiKID/lib/xercesImpl.jar': Operation not permitted | 13:39 |
laszlof | chown: changing ownership of `/opt/WiKID/lib/mailapi.jar': Operation not permitted | 13:40 |
laszlof | chown: changing ownership of `/opt/WiKID/lib': Operation not permitted | 13:40 |
laszlof | chown: changing ownership of `/opt/WiKID': Operation not permitted | 13:40 |
laszlof | fortunately thats all root owned so it cant change it | 13:40 |
laszlof | i never noticed it until recently. | 13:41 |
nowen | laszlof: just checking in. still traveling | 13:50 |
nowen | that script should do some simple environment checks. | 13:51 |
laszlof | looks like it expects /opt/WiKID/* to be owned by root | 13:51 |
nowen | it should check the ownership. is this a new install or old? | 13:51 |
laszlof | and its owned by "wikid" | 13:51 |
laszlof | relatively new | 13:51 |
laszlof | I hosed up my test environment and reinstalled a few weeks ago | 13:52 |
nowen | should be owned by wikid:root | 13:52 |
laszlof | either way, those kind of things shouldnt be set in an env file like that | 13:52 |
laszlof | cause it runs for every user that logs in | 13:52 |
laszlof | it would be fine if it was just for root | 13:52 |
nowen | hmm | 13:52 |
laszlof | cause it would actually work | 13:52 |
laszlof | but logging in as my local user, it tries to chown the files and fails | 13:53 |
laszlof | maybe just needs some sanity checks around it | 13:53 |
nowen | yeah. or is there another option? | 13:53 |
laszlof | i dont think a login script is a good place for it anyways :) | 13:54 |
laszlof | maybe a startup script | 13:54 |
nowen | put it in as a check in 'wikidctl start'? | 13:54 |
laszlof | ya, or that | 13:54 |
laszlof | that has to be run as a privledged user, so it wouldnt fail | 13:55 |
laszlof | or shouldnt, anyways | 13:55 |
nowen | that's probably some pretty old code in there | 13:57 |
laszlof | the env stuff makes sense | 13:57 |
laszlof | to have in the login script | 13:57 |
laszlof | but you typically dont want to go around chowning files whenever someone logs in. | 13:57 |
nowen | right | 13:57 |
laszlof | I probably have some jacked up file ownership, which is what prompted it | 13:58 |
laszlof | [laszlof@tyr ~]$ ls -ld /opt/WiKID/ | 13:58 |
laszlof | drwxr-xr-x 13 wikid root 4096 Mar 9 12:31 /opt/WiKID/ | 13:58 |
laszlof | WIKID_USER is set to root | 13:59 |
laszlof | so thats why its trying to chown the files | 13:59 |
nowen | wikid user should be set to wikid in /etc/WiKID/security | 14:00 |
laszlof | it is | 14:01 |
laszlof | but its set to root in setenv.sh | 14:01 |
nowen | hmm. if you change it to root, does the problem go away? | 14:02 |
laszlof | you mean change it to wikid? | 14:05 |
laszlof | i would imagine so | 14:05 |
laszlof | since the conditional would be met | 14:05 |
laszlof | i just commented out the chown. :) | 14:05 |
nowen | that works ;-) | 14:08 |
nowen | I'll dig into it a bit more when I'm back home | 14:10 |
nowen | ok - time for the next meeting. Most likely I will be back on here tomorrow afternoon. | 14:11 |
laszlof | cool. have fun | 14:12 |
nowen | later | 14:12 |
*** nowen has quit (Quit: Leaving.) | 14:12 | |
*** moushira (~chatzilla@wikimedia/Moushira) has joined #wikid | 14:36 | |
*** moushira has parted #wikid (None) | 14:37 | |
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 16:30 | |
*** ricardoamaro has quit (Ping timeout: 265 seconds) | 19:46 | |
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 19:55 | |
*** ricardoamaro has quit (Remote host closed the connection) | 23:54 | |
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 23:55 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!