Forbidden(Server error)

Amrit Pal Pathak amritpalpathak1 at gmail.com
Wed Jul 20 18:40:18 UTC 2011


On Wed, Jul 20, 2011 at 2:33 PM, Avi <lists at avi.co> wrote:

> Amrit Pal Pathak wrote:
> >     Can you tell me who is www-data user?
>
> www-data is the user the apache process runs as.
>
> >     Above threads shows the output of apache users with
> > permission.Please tell me what i can do now.
>
> No it doesn't. That reply shows the apache processes running and a few
> stats.
>
> If you do
>
> ls -ld /var/www/directory
>
    It gives
    drwx------ 10 www-data www-data 4096 2011-07-04 02:31
/var/www/GNDEC-SMS-Service

> ls -l /var/www/directory
>
total 816
-rwx------ 1 www-data www-data   4578 2011-06-29 09:43 \
-rwx------ 1 www-data www-data   6433 2011-06-29 09:44 additionalinfo.php
-rwx------ 1 www-data www-data  13080 2011-06-29 09:45 address.php
-rwx------ 1 www-data www-data   4763 2011-06-29 09:42 birthday.php
-rwx------ 1 www-data www-data   3121 2011-06-29 09:44 cell.php
-rwx------ 1 www-data www-data   2404 2011-06-29 09:45 changeLog.txt
-rwx------ 1 www-data www-data   9142 2011-06-29 09:43 class-contactlist.php
-rwx------ 1 www-data www-data   4596 2011-06-29 09:42 classes.php
-rwx------ 1 www-data www-data   2458 2011-07-04 02:31 config.php
-rwx------ 1 www-data www-data   4210 2011-06-29 09:43 constants.inc
-rw------- 1 www-data www-data   1473 2011-06-29 09:43 credits.html
drwx------ 3 www-data www-data   4096 2011-07-20 02:30 css
-rw------- 1 www-data www-data  33989 2011-06-29 09:43 datetime.js
-rwx------ 1 www-data www-data    352 2011-06-29 09:38 DEADJOE
-rwx------ 1 www-data www-data  24204 2011-06-29 09:42 edit.php
-rwx------ 1 www-data www-data  26780 2011-06-29 09:43 export.php
-rwx------ 1 www-data www-data   6230 2011-06-29 09:43 fileupload.php
-rwx------ 1 www-data www-data  11180 2011-06-29 09:43 functions.php
-rw------- 1 www-data www-data   2627 2011-06-29 09:43 get_report.php
-rw------- 1 www-data www-data     53 2011-06-29 09:42
google8864db9c6fc17639.html
-rwx------ 1 www-data www-data  18009 2011-06-29 09:43 gpl.txt
-rwx------ 1 www-data www-data  12673 2011-06-29 09:44 groups.php
-rwx------ 1 www-data www-data   1732 2011-06-29 09:43 harbhag.css
-rw------- 1 www-data www-data   6054 2011-06-29 09:43 harbhag_predictive.js
-rw------- 1 www-data www-data    341 2011-06-29 09:43 image_create.php
drwx------ 2 www-data www-data   4096 2011-07-20 02:30 images
-rwx------ 1 www-data www-data    173 2011-06-29 09:43 indexMaintenance.php
-rwx------ 1 www-data www-data   5770 2011-06-29 09:43 indexOK.php
-rwx------ 1 www-data www-data   5770 2011-06-29 09:43 indexphp
-rwx------ 1 www-data www-data  10032 2011-06-29 09:43 index.php
-rwx------ 1 www-data www-data   5391 2011-07-01 13:54 insert.php
-rwx------ 1 www-data www-data  11685 2011-06-29 09:43 install.php
-rw------- 1 www-data www-data  84362 2011-06-29 09:43 jquery-1.5.min.js
-rw------- 1 www-data www-data 208229 2011-06-29 09:43 jquery_ui.js
drwx------ 2 www-data www-data   4096 2011-07-20 02:30 languages
drwx------ 3 www-data www-data   4096 2011-07-20 02:30 lib
-rwx------ 1 www-data www-data  16945 2011-06-29 09:45 list.php
-rwx------ 1 www-data www-data  17754 2011-06-29 09:46 list.php~
-rw------- 1 www-data www-data    525 2011-06-29 09:43 lookup.php
-rwx------ 1 www-data www-data   3953 2011-06-29 09:43 mailsend.php
-rwx------ 1 www-data www-data  11558 2011-06-29 09:43 mailto.php
drwx------ 2 www-data www-data   4096 2011-07-20 02:30 mugshots
-rwx------ 1 www-data www-data  16005 2011-06-29 09:38 options.php
drwx------ 2 www-data www-data   4096 2011-07-20 02:30 raiBackup
-rwx------ 1 www-data www-data   7209 2011-06-29 09:43 register.php
-rw------- 1 www-data www-data   2852 2011-06-29 09:43 reset_password.php
-rwx------ 1 www-data www-data  14968 2011-06-29 09:42 save.php
-rwx------ 1 www-data www-data   4652 2011-06-29 09:42 scratchpad.php
-rwx------ 1 www-data www-data   6072 2011-06-29 09:43 search.php
-rwx------ 1 www-data www-data   6130 2011-06-29 09:43 sendsms.php
-rwx------ 1 www-data www-data   6274 2011-06-29 09:38 sendsms.php~
-rwx------ 1 www-data www-data   3227 2011-06-29 09:43 show_sent.php
drwx------ 8 www-data www-data   4096 2011-07-20 02:30 sms
drwx------ 2 www-data www-data   4096 2011-07-20 02:30 sms_backup
-rw------- 1 www-data www-data    422 2011-06-29 09:38 student_search.php
-rwx------ 1 www-data www-data   4717 2011-06-29 09:43 styles.css
-rwx------ 1 www-data www-data  10716 2011-06-29 09:43 upgrade.php
-rwx------ 1 www-data www-data  21680 2011-06-29 09:44 users.php


> Then you will first have the permissions of the directory named
> 'directory' and then those of its contents.
>
> I very much suggest you seek out a book (e-book or paper one) on Linux
> and running servers in particular.

        ok .I will

      Thanks you
      amritpalpathak.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110720/7c9e36b3/attachment.html>


More information about the ubuntu-users mailing list