FTP, permissions: I cannot see permissions but I can change them

3

I'm browsing a server with my ftp client. When I try to get the information about a folder, I cannot see the permissions (all rwx check boxes are unchecked).

If i try to check one of it, the operation is successful (I don't get any error), but then when I come back it is again unchecked.

What does it mean? I don't have privileges to read permissions but I can change them?

aneuryzm

Posted 2010-06-02T12:12:56.810

Reputation: 1 765

What FTP client are you using? – Josh K – 2010-06-02T12:19:28.340

Cyberduck on mac. It always worked so far (on 5 6 different servers). – aneuryzm – 2010-06-02T16:54:17.620

What kind of server? The rwx permissions shown by the client are *nix and may not map to the file system of the server. – Chris Nava – 2010-06-02T17:29:18.817

It is an IIS Server... I dunno how to provide you more information. What are *nix permissions ? So what should I do to solve it ? – aneuryzm – 2010-06-02T19:06:36.260

*nix is Unix/Linux. There may be a setting on your client to tell it it's connecting to a Windows server. This should allow it to correctly display/set the permissions. – Chris Nava – 2010-06-03T14:27:58.377

Answers

1

Possible cause:

In FTP, there is no standard format for directory listings; everything is sent as human-readable text, and GUI FTP clients must try to detect the output format.

Try to either enable the logging function of your FTP client, or use the command-line ftp, to see what is actually received from server. Maybe the server doesn't even use permissions? Maybe it uses some strange directory list format?

user1686

Posted 2010-06-02T12:12:56.810

Reputation: 283 655

ok, I've loged in with the terminal: 220 Microsoft FTP Service – aneuryzm – 2010-06-02T19:09:04.683

@Patrick: I actually wanted you to check the actual directory listing... But it doesn't matter now. "Microsoft FTP service" already tells us that it's a Windows system. And Windows systems do not have Unix-style rwx permissions. (There are security ACLs in Windows, but they cannot be changed over FTP.) – user1686 – 2010-06-02T19:13:54.637

Remote system type is Windows_NT. Tell me what other information you need, and how can I get them, and I will write down. thanks – aneuryzm – 2010-06-02T19:15:04.733

So what does that mean ? I cannot change permissions through ftp, but I need ssh access ? Is that the only way ? – aneuryzm – 2010-06-02T19:15:52.393

@Patrick: Windows systems use a very different way of setting permissions. There is no rwx or chmod. Those are Unix(/Linux/BSD) things. Forget them. (There is no SSH either.) – user1686 – 2010-06-02T19:28:14.830

ok, do you know how can I change them in Microsoft environment ? – aneuryzm – 2010-06-02T19:46:59.907

@Patrick: either icacls or the "Security" tab of the file properties box (in Explorer). – user1686 – 2010-06-02T19:54:06.680

ok, what's a good solution from terminal ? – aneuryzm – 2010-06-03T07:39:56.777

@Patrick: icacls, like I already said. (Older Windows versions have cacls, which is much less capable.)

– user1686 – 2010-06-03T11:22:59.367