LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access Denied (https://www.linuxquestions.org/questions/linux-newbie-8/access-denied-456825/)

ocgolfer 06-21-2006 01:25 AM

Access Denied
 
How can it be that I can upload a complete application to my site and when I wish to modify a file and try to overwrite the old one with the new one I get "Access Denied" message?

I'm using the same ID/PW both times...Grrrrr..

zytsef 06-21-2006 04:18 AM

sounds like you have write access to the directory but not to any of the files in it. Check permissions by doing 'ls -l' in the directory in question from command line. Also try it one directory higher in the tree to see who owns the dir you're writing to. You may want to change the owner to the user you're doing this all with.

ethics 06-21-2006 04:22 AM

You say you are using the same ID? do you mean username or user id? you can have the same username but different IDs which can cause problems
Code:

grep <user_name> /etc/passwd
will give you the ID's (and group IDs).

Also what are the permissions?
Code:

ls -l
My apache knowledge is very hit and miss, but apache gives ownership of files to the nobody user, try editing the files with root?

ocgolfer 06-21-2006 02:40 PM

OK...

First of all...I made a mistake in my initial post. It's not "Access Denied"...It's "Permission Denied".

To be more clear with the problem:

I upload an application (PHP/mySQL) to my site using SmartFTP. Then I run a PHP install script. This script creates other files and initializes the tables in the database.

I then retrieve the entire site to a local directory on my client computer so that I can customize using DreamweaverMX. When I try to save the files to the web server I get the "Permission Denied" message.

I did the grep:

<username>:x:10001:10001::var/www/vhosts/<domain>:/bin/sh

Thanks,


All times are GMT -5. The time now is 10:24 AM.