ftp problems on intel imac

Joined
Feb 20, 2004
Messages
277
Reaction score
6
Points
18
Location
Texas
Your Mac's Specs
Mid-2011 MBP 13" i5
Im having a problem when connecting to my ftp host to update my website files. It keeps saying I cannot because "blank" cannot be modified.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
That sounds like a permission problem.

Do a 'ls -l' at the prompt and see who owns the file.

Also, I wonder if your in you own directory. Type 'pwd' at the prompt to see your current remote working directory. Perhaps you need to change it.
 
OP
Texasmeat
Joined
Feb 20, 2004
Messages
277
Reaction score
6
Points
18
Location
Texas
Your Mac's Specs
Mid-2011 MBP 13" i5
Can you explain that a bit? I'm new to web hosting stuff...
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
You probably understand this, but read this whole thing...

Your hosting company supports many users like you on the machine your connecting to. To do that they will create a folder structure similar to your Mac which is /Users/username, where username on the hosting site is likely the first part of your domain.com name ,or perhaps another name you told them to use. The name your logging in with anyway.

When you connect, it is normal for ftp to connect at the top level of your directory structure, so really you shouldn't have a permission problem. This is because each user should be able to read/add/remove/alter their own files. Your username has unique ids that are associated with the files you create and own.

First you need to know if you are ending up in your directory. It would be odd not to. If your using the Terminal command line tool 'ftp' then the 'pwd' command tells you what directory your in. If your using a GUI tool then it should say that somewhere or via a button. You need to be in or below your top level (known as root is the biz) directory.

The ls command, an 'ftp' Terminal command, I gave you will list several important things. A GUI tool may not list those items, but might have an option to show the information, such as a "Get Info" or "Show Properties" button.

The important bits are, owner, read permission, and write pemission. There is also execute permission so your scripts will run, but I doubt that is important here.

An ftp ls command will display something like this;
-rw-r--r-- 1 xstep guest 317 Jan 22 2003 fdev.txt

The first character, a dash says this is a normal file. A d would say it is a directory/folder. The next three charactes, rw- tells me that the owner, 'xstep' of group 'guest' has no execute permission but does have read and write permission. So I can edit and delete this file. The next 'r--' says the group can read the file. The last 'r--' says the world can read the file, which of course needs to be true for you to serve the page. ie; The web server needs to be able to read the file to present it to the browser asking for it.

Finally we get to your problem, '"blank" cannot be modified'. The words 'cannot be modified' suggest your trying to put a file onto the server. Only two things would stop this. 1) Your trying to replace a file you don't have permission to write to. 2) The directory your writing into is not owned by you or you worse, you do not belong to a group that can modify the directory meaning your someplace you don't belong.

If the "blank" is litteral, then perhaps you are not actually connecting to the server. When you post, you should post the exact message.

One final note. Often the server company sets up a directory within your top level directory that they say is where your web files are to be placed. The common name is the past has been public_html so if you see that or they told you another name, enter that directory.

I also suggest you review any notes or FAQs your provider has.
 
OP
Texasmeat
Joined
Feb 20, 2004
Messages
277
Reaction score
6
Points
18
Location
Texas
Your Mac's Specs
Mid-2011 MBP 13" i5
I tried using terminal to view the ownership and it keeps telling me that I'm not connected! I am really confused here.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Are you entering the terminal and then typing something like 'ftp myhost'? If so then you should be asked for a username and password specific to the host your connecting to.

See this answer on another thread;
http://www.mac-forums.com/forums/showpost.php?p=187658&postcount=4

You might want to look into a GUI tool such as RBrowser or Fetch. They make like much easier, especially for inexperienced users.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top