LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission problems (https://www.linuxquestions.org/questions/linux-newbie-8/permission-problems-627079/)

TentativeChaos 03-10-2008 06:46 PM

permission problems
 
Quote:

dan@Dan-PC:~$ cd ~/Downloads/pgd-0.3.2
dan@Dan-PC:~/Downloads/pgd-0.3.2$ ./index.php
bash: ./index.php: Permission denied
dan@Dan-PC:~/Downloads/pgd-0.3.2$
ok what's with that?

Also, my home folder is owned by root for some reason and every time I log in, Ubuntu says, omg! you don't own the home folder your gunna die!!

Help?

gilead 03-10-2008 06:52 PM

Does running php ./index.php work? If not, can you post the output of ls -l ~/Downloads/pgd-0.3.2/index.php please?

As far as your home folder goes, this should work (substitute your username:group):
Code:

sudo chown -Rc username:group /home/username

TentativeChaos 03-10-2008 07:01 PM

It's not my file in the home folder, it's the home folder itself.

As for the other thing, It told me I didn't have php installed, so I installed it and then I tried again and got this:
Quote:

dan@Dan-PC:~/Downloads/pgd-0.3.2$ ./index.php
bash: ./index.php: Permission denied
dan@Dan-PC:~/Downloads/pgd-0.3.2$ php ./index.php

Fatal error: Cannot access empty property in /home/dan/Downloads/pgd-0.3.2/index.php on line 93
dan@Dan-PC:~/Downloads/pgd-0.3.2$


gilead 03-10-2008 08:30 PM

Quote:

Originally Posted by TentativeChaos (Post 3084455)
It's not my file in the home folder, it's the home folder itself.

Then you only need to stop the command being recursive. For example:
Code:

sudo chown -c username:group /home/username
The other one looks like a syntax error in your PHP on line 93. It might be better to post the PHP code in a new thread in the programming forum.


All times are GMT -5. The time now is 04:14 AM.