Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-21-2006, 01:25 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
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..
Old 06-21-2006, 04:18 AM   #2
Registered: Apr 2006
Location: Vancouver, Canada
Distribution: Slackware, Ubuntu
Posts: 168

Rep: Reputation: 30
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.
Old 06-21-2006, 04:22 AM   #3
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
grep <user_name> /etc/passwd
will give you the ID's (and group IDs).

Also what are the permissions?
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?
Old 06-21-2006, 02:40 PM   #4
LQ Newbie
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0

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:




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
access denied simpleaudio Linux - Software 13 03-26-2005 04:30 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 07:42 PM
Access is Denied? sKiBa Linux - Newbie 7 06-12-2004 10:28 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM
access denied - but why? Steave Programming 1 08-31-2001 06:04 AM > Forums > Linux Forums > Linux - Newbie

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

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