DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-12-08 20:53:37

shepherd wong
Member
Registered: 2008-12-08
Posts: 7

Filezilla FTP - can't upload directory from NAS

This may be a tremendously newb question and apologies if it is but...

I'm having a problem with Filezilla.  When I tried to upload a directory from my NAS to my website, it wouldn't work.  No error message, it just doesn't add the directory to the upload queue.  I can upload files from the NAS but not directories.

What should the directory permissions be, and how can I change them all at once (there are hundreds of directories that I'll need to change, i think).

Thanks in advance for any help.  I'm totally clueless about Linux.  Oh, and FYI when I look at the directory's properties using Windows Explorer, it shows it as Read Only.

Last edited by shepherd wong (2008-12-08 20:54:13)

Offline

 

#2 2008-12-09 19:38:14

shepherd wong
Member
Registered: 2008-12-08
Posts: 7

Re: Filezilla FTP - can't upload directory from NAS

Anyone?  Wild guesses would be appreciated!

Offline

 

#3 2008-12-10 15:47:47

terry_opie
Member
Registered: 2008-02-28
Posts: 11

Re: Filezilla FTP - can't upload directory from NAS

Telnet/ssh into the dns.  Get to the directory in question.  Check the permissions.  "ls -al *"

I found this after a short google search:

=========================================================================
File Permissions Explained
There's a clever command that let's you check existing file permissions. The command "ls" lists all the files in the current directory, "ls -a" shows all the hidden files as well. Typing this returns the results in "long" format:

$ ls -l
So, for example, when you type something like:
$ ls -l /etc/gnome/gnomerc
Linux will return list the file permissions for the file gnomerc in this format:
-rwxr-xr-x   1   root   root   484 Feb 25 14:08 /etc/gnome/gnomerc
This does look a bit complicated at first, but it gets easier once you understand what everything means. The first 10 characters should be read like this:
- | rwx | r-x | r-x
The first character, the "-", tells you whether the item you're checking is a file (-), a directory (d), or a link (l).
The next three characters, "rwx", express the permissions for the user (or file owner). They correspond to: Read, Write, and eXecute.
The next three characters, "r-x", are for the group.
The last three-character set, "r-x", refers to public permissions, or "everyone."
You've already gotten what you came for, the permissions for the file. But here's how the rest of the listing should be interpreted:
The "1" stands for the number of links to the file.
The position where the first "root" appears lists the file owner.
The position where the second "root" appears lists the group.
The "484" is the size in bytes.
The date and time refer to the last modification to the file.
And, the last bit refers to the name and path of the file being checked.
=========================================================================

if you want to make everything readable and writable you can use the following command:

      chmod -R 660 *

To disect that...  Remember, the available permissions are Read, Write, and eXecute. Each permission is assigned a different number:
      Read = 4
      Write = 2
      eXecute = 1

To combine permissions, add them together..   ie read/write for your user, would be 6, read/write for the group would be 6, permissions for everyone else, NONE.

The -R tells the command to do it Recursively.  ie, follow all folders and subfolders to apply the permissions.   The '*' tells it to do it to every file in that directory.

DISCLAIMER:  Be sure that you know what files you're applying the command to especially when you're using '*' or doing things recursively.  The -R is very powerful, as it won't tell you what you've just done...  For example, don't do that command at / on any linux system. 

Good Luck!

Last edited by terry_opie (2008-12-10 15:49:30)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB