Welcome, Guest. Please Login or Register.
May 09, 2025, 03:48:37 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  YaBB on Unix Shell :/ « previous next »
Pages: [1] Reply Ignore Print
Author Topic: YaBB on Unix Shell :/  (Read 393 times)
Dataforce
Full Member
***
Posts: 171


Data-Host.co.uk

YaBB on Unix Shell :/
« on: December 15, 2002, 03:54:28 PM »
Reply with quote

I recently installed YaBB on my unix shell, and (after a while ) got it working, but when ever I download a yabbpak, it chown's it to nobody, therefore I can't actually do nething with it :/

has any1 got a fix for this ?
Logged
Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:YaBB on Unix Shell :/
« Reply #1 on: December 27, 2002, 06:04:43 PM »
Reply with quote

what user does your http server use.
which http server do you use.

normaly the file uploaded get the same user id as the http servers proces name.
Logged


ajk
Full Member
***
Posts: 145


Add something witty here! :-)

ICQ - 1494077ajkcomputing@msn.com WWW
Re:YaBB on Unix Shell :/
« Reply #2 on: December 30, 2002, 09:18:32 AM »
Reply with quote

The same thing happens on FreeBSD.

I would just go to the command line if you have SU access.  Then repair it manually.

Most UNIX uses usergroup.username to show ownership.  Most Linux distributions use www.username.

What version of UNIX / Linux are you using?
Logged

Andy Knifel
Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:YaBB on Unix Shell :/
« Reply #3 on: December 30, 2002, 03:33:31 PM »
Reply with quote

i'm using suse 8.1 and on an other box i run redhat 7.1

btw you could put a script in your cron, that chmod or chown the files every 5 min.

this way you shouldn't have to do it manualy each time.
Logged


ajk
Full Member
***
Posts: 145


Add something witty here! :-)

ICQ - 1494077ajkcomputing@msn.com WWW
Re:YaBB on Unix Shell :/
« Reply #4 on: December 30, 2002, 05:23:33 PM »
Reply with quote

I'm sure you could call CRON to run a script easily.
But why would you want to?  If your FTP is set correctly,
you should not have to change the usergroup.username.

If you really want to do that, I'd write a script in your /etc/rc.d startup files.

You should really only have to run the script after you install programs.

Let me look at the YaBB script again.  I'm not an expert.
Maybe I can see what line calls the own info.
Logged

Andy Knifel
Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:YaBB on Unix Shell :/
« Reply #5 on: December 30, 2002, 06:53:09 PM »
Reply with quote

he says when download something with the ypcenter that it has user nobody.

since you downloaded this through ypcenter actualy your apache server download this, so the OS will give the users id of the apache server to the files.

if you apache server runs with the wrong user id or is misconfigured you can get this problem

my runs userid wwwrun en group nobody
so everytime i download a file it gets the usersid wwwrun and group nobody.

so if your umask is set correctly, your apache server would be able to read its own files
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:YaBB on Unix Shell :/
« Reply #6 on: December 30, 2002, 06:54:55 PM »
Reply with quote

if you don't download this through the yabbpack center then you would indeed need to chmod the files manualy.

or set the correct umask for your ftp user id
Logged


ajk
Full Member
***
Posts: 145


Add something witty here! :-)

ICQ - 1494077ajkcomputing@msn.com WWW
Re:YaBB on Unix Shell :/
« Reply #7 on: December 30, 2002, 07:03:14 PM »
Reply with quote

I have control over my httpd.conf.  Most Linux distros set Apache to run as it's own user and own group.  If you ever looked at the command line, here is what you would see:

-rw-r--r--   1 root  wheel  67316 Dec 28 13:19 httpd.conf

In my case as you can see, the root user and wheel group has ownersip to Apache.  In Linux:

-rw-r--r--   1 www www 67316 Dec 28 13:19 httpd.conf

www is the user and group that run Apache.

Therefore, if you don't have total control on the server, you'd have to ask your admin to change it to the correct user and group.  A cron job would be sensceless if it is not your box.
Logged

Andy Knifel
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  YaBB on Unix Shell :/ « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 17 queries.