Koozali.org: home of the SME Server

chown -R nobody.nobody

Roy

chown -R nobody.nobody
« on: August 04, 2003, 05:16:51 PM »
Hi,

I want a directory writable by apache. Standard apache is configured as usr nobody. I think it is the same sith e-smith but the command chown -R nobody.nobody in the directory does not work. i chmodded the directory to 777. it also does not work.

i need it for installing Owl intranet engine. Which need writing right to the Documents folder.

Thanks in advance.
Roy

Terry Brummell

Re: chown -R nobody.nobody
« Reply #1 on: August 04, 2003, 05:27:32 PM »
I'm quite sure that the apache user on a SME box is www, and the group is www.  Don't quote me on that, but I think it's correct...

Roy

Re: chown -R nobody.nobody
« Reply #2 on: August 04, 2003, 08:07:52 PM »
chown -R www.www does not work :(

I can ad directory's, comments etc etc. But i just cannot upload the files. reading from HD is no problem. But i want my users to upload in the browser interface in stead of FTP acces.

Please who can help.

dave

Re: chown -R nobody.nobody
« Reply #3 on: August 05, 2003, 12:18:38 AM »
Hi Roy,

This may not be a file/directory ownership issue.  I think SME has HTTP file transfers disabled by default.  I did some quick searches and I found the following thread that *seems* to apply.

http://forums.contribs.org/index.php?topic=17451.msg67960#msg67960

If this doesn't offer a solution, you might want to do some more searching around.  Maybe someone has posted similar questions and has found answers regarding the app you're trying to use.

Dave

Nathan Fowler

Re: chown -R nobody.nobody
« Reply #4 on: August 05, 2003, 01:35:13 AM »
Isn't the syntax chown www:www not chown www.www ?

Nathan Fowler

Re: chown -R nobody.nobody
« Reply #5 on: August 05, 2003, 01:36:08 AM »
Also, you may need to adjust the rights for all folders below the defined parent folder.  Try the recursive option:

chown -R www:www [directory or file]

Roy

Re: chown -R nobody.nobody
« Reply #6 on: August 05, 2003, 02:12:28 PM »
Thankx
Shame both answers cannot help me. I tried the other syntax with : instead of . doesn't work for me.
stil get this message
The 'Temp file Directory Location' is not Writable by the WEB Server!
/home/e-smith/files/ibays/owl/html/intranet/Documents

I still think the webserver is not user nobody or www

Unfortunately i cannot find any info about Owl intranet engine working on E-smith server.
i keep on trying

Roy

Re: chown -R nobody.nobody
« Reply #7 on: August 05, 2003, 02:27:09 PM »
chown -R www:www .

I tried the above couse this works with the program gallery

http://www.familybrown.org/howtos/gallery-howto-sme55.html

Here it works perfectly :(
gonna keep on looking..

Michael Smith

Re: chown -R nobody.nobody
« Reply #8 on: August 05, 2003, 07:06:40 PM »
Sounds like an Owl configuration problem ... where does it think it should be writing its temp files?

Roy

Re: chown -R nobody.nobody
« Reply #9 on: August 06, 2003, 11:53:08 AM »
At the documents folder. I get the messages cannot write to the documents folder? but that is the folder which is world writeable an webserver writeable.
The server can write to that directory couse i can make folders.

WC

Re: chown -R nobody.nobody
« Reply #10 on: August 15, 2003, 05:15:30 AM »
Been trying to get this working too.

I *THINK* as Michael Smith suggested the problem isn't with permissions to the ibay, but where the temp files are being written prior to being moved to the subdirectory in the ibay.

If you use the server-manager log viewer for messages take a look at the errors.

I'm guessing this has to do with the way SME is setup to secure php.  Basically as it stands, this is limited to a particular path (or paths).  I'm not sure exactly what to change this to & where to do this.

Try a few searches on the topic "open_base" on these forums.  I'm pretty sure this is the issue.  Aside from changing the allowed path to "/" I'm not sure how to solve this problem.

WC

Re: chown -R nobody.nobody
« Reply #11 on: August 15, 2003, 05:19:33 AM »
Sorry,
  Almost forgot.  As a side note, chown www:www is correct.
try doing a ps -aux | more from the shell.  Page through & you'll see a whole bunch of instances of httpd running as user www.
Hope this helps.

WC

Re: chown -R nobody.nobody
« Reply #12 on: August 15, 2003, 05:38:05 AM »
Try looking here:
http://sourceforge.net/forum/forum.php?thread_id=867382&forum_id=29448
Will end up testing this later today/tonight to see if this works.

Roy

Re: chown -R nobody.nobody
« Reply #13 on: August 15, 2003, 08:48:39 PM »
Thanks.

Got now a standard debian distro. Works perfectly!!