LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2008, 07:46 PM   #1
TentativeChaos
Member
 
Registered: Feb 2008
Posts: 53

Rep: Reputation: 15
Question 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?
 
Old 03-10-2008, 07:52 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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
 
Old 03-10-2008, 08:01 PM   #3
TentativeChaos
Member
 
Registered: Feb 2008
Posts: 53

Original Poster
Rep: Reputation: 15
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$

Last edited by TentativeChaos; 03-10-2008 at 08:13 PM.
 
Old 03-10-2008, 09:30 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Quote:
Originally Posted by TentativeChaos View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Problems Wynand1 Linux - Security 1 01-28-2005 06:33 AM
HD permission problems Sarrin Linux - Software 1 05-13-2004 10:16 PM
sm permission problems Jestrik Linux - Networking 0 03-27-2004 08:00 AM
Permission Problems Ekim Gram Linux - Newbie 42 05-12-2003 04:23 PM
Permission Problems Bigun Linux - General 1 11-19-2002 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration