Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't see Files when FTP

Featured Replies

Hello,

 

have the server setup and able to connect via FTP using filezilla, wsftp, and other ftp clients.

However all I can see is disk1 and disk2

 

When i click to go inside disk1 and disk2 I dont see any files.

 

Files are viewable on the local network and been using great.

Any suggestions? do I need to change folder permissions? if so how do i do that

 

Not a linux expert so response with instructions would be great.

 

Thanks in advance for the help,

- unraid619

 

  • Author

Thanks! I did find that post, but as I'm not a Linux guru or even novice, don't know where to start entering those commands?

I'm assuming when you get to the bootup page?

 

So you have to change the permissions every time a new file is upload? restart the server? or access via FTP?

is there a way to permanently change it the permissions?

 

Thanks for the support forum members@

-unraid619

Yeah, at the command line when you log onto the console or via telnet/ssh to the unraid box. You have to do it for every file that isn't sent up via ftp.

 

I use telnet/ssh (putty) so I just cut/paste one command at a time. ie, Get command line, cut/paste first command, wait a little bit then when it gives you another command line, cut/paste the second command.

 

You don't need to restart the unraid or ftp server, but you do have to refresh the directories in the ftp clients that I've used.

have the server setup and able to connect via FTP using filezilla, wsftp, and other ftp clients.

However all I can see is disk1 and disk2

When i click to go inside disk1 and disk2 I dont see any files.

You need to do this once:

chmod 0755 /mnt/disk*

 

Yeah, at the command line when you log onto the console or via telnet/ssh to the unraid box.

You have to do it for every file that isn't sent up via ftp.

Not necessary, if you change your samba's default settings.

Here's what I have in the global section of my smb-extra.conf file:

[global]
    create mask = 0644
    directory mask = 0755
    map hidden = No
    map system = No

 

  • Author

Thanks Purko and Abeta,

 

I'll give it a try tonight and see what happens.

 

So from what I understand with your instructions purko, I just need to do this once for each disk instead of doing it file per file. Because that would take forever.

 

I would type something in like

"chmod 0755 /mnt/disk1" for disk 1

"chmod 0755 /mnt/disk2" for disk 2

 

And then just located the smb-extra.conf file on the flash drive and edit so it replicates your settings?

 

Again, forum members rocks!

 

Thanks!

Unraid619

Right.

 

Well, you may need to do one whole pass on the whole folder structure, to take care of the folders that have already been created, not sure.

Just try it on the disk first and see what happens.  But when you change the samba default mask settings, future folders will be created properly.

 

If  smb-extra.conf  doesn't exist in the 'config' folder on your flash key, then create it!  Just keep in mind this:

http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F

 

Very cool. I may go back and do that but I really don't use FTP anymore for the unraid server either  ;D

  • Author

Great looks like I'm getting further.

 

Now I see all the folders and I understand I have to run Chmod for all the folders.

However I have hundreds of folders. Do I have to manually run this "chmod 0755" command for each folder? or is their a faster way to do it.

 

Also for the smb-extra.conf file, I don't see it so is this what I need to do

 

1. Create a text file and name it smb-extra.conf

2. add in the following to the text file

 

[global]

    create mask = 0644

    directory mask = 0755

    map hidden = No

    map system = No

 

3. Copy the file to the flash drive /config folder

4. Reboot machine

 

Thanks again for the help.

 

Cheers,

unraid619

 

  • Author

Fun! I'm able to access the files now, but only when I change the chmod for each file.

 

So I did the following: chmod 0755 /mnt/disk1/Orders/Sears/pickup.pdf

 

So chmod only the folder still doesn't let me access the files. Is there a Mass way to folders and it's content?

 

Sorry for all the questions, but man this is pretty frickin cool, being able to access your files remotely!

 

Cheers,

Unraid619

Is there a Mass way to folders and it's content?

 

Run this once:

find /mnt/ -type d -exec chmod 0755 {} \;
find /mnt/ -type f -exec chmod 0644 {} \;

That should do it once and for all.

 

  • Author

Awesome thanks for the quick reply.

 

Just to clarify though.

 

I type in: find /mnt/ -type d -exec chmod 0755 {} \;

 

with d being the disk name?

so it would be like this: find /mnt/ -type disk1 -exec chmod 0755 {} \;

 

or do i need to add "disk1" after /mnt/

like this: find /mnt/disk1 -type d -exec chmod 0755 {} \;

 

Thanks again

 

Cheers,

Unraid619

 

I *THINK* you don't have to put any disks under there which means its your second option if you wanted to do it that way. The original command I used for /mnt/user covered ALL of my user shares in one shot it just took awhile.

 

ie, I literally cut/pasted the commands in a windows without modifying anything whatsoever.

 

I THINK (check with Purko first) that /mnt will catch ALL of your disk and user shares (basically under /mnt) will get caught correctly.

Just to clarify though.

 

I type in: find /mnt/ -type d -exec chmod 0755 {} \;

 

with d being the disk name?

so it would be like this: find /mnt/ -type disk1 -exec chmod 0755 {} \;

 

NOOO!!  :o  You were supposed to Copy/Paste the line literally!

find /mnt/ -type d -exec chmod 0755 {} \;

...means this: "Start searching from '/mnt/', find all things of type 'directory', and chmod them to 0755!"

 

The other line means: "Starting the search from '/mnt/', find all things of type 'file', and chmod them to 0644!"

find /mnt/ -type f -exec chmod 0644 {} \;

 

  • Author

Sweeet!

 

Thank you for both for your help on this. Everything is good to go. I can now see the folders, files, and access them when logging in via FTP.

If I could I'd send you guys some California Burritos from San Diego I would :)

 

One last questions. For the smb-extra.conf file do I do the following

 

1. Create a text file and name it smb-extra.conf

2. Paste into the file

[global]

    create mask = 0644

    directory mask = 0755

    map hidden = No

    map system = No

3. Save the file and upload to the config folder of the flash drive

4. Restart the unraid server

 

Thanks again for tremendous help.

 

Cheers,

unraid619

Yep, but I'd probably just mcedit on the unraid system to create the file as I've heard and read that it has to be unix compatible with line returns or lack thereof. Since I can't ever figure out what apps work correctly in windows, I just SSH to the box and touch a file in the right directory and then edit it.

 

You don't have to restart the unraid system, you can use this command to restart smb.

 

smbcontrol smbd reload-config

 

Sweeet!

 

Thank you for both for your help on this. Everything is good to go. I can now see the folders, files, and access them when logging in via FTP.

If I could I'd send you guys some California Burritos from San Diego I would :)

 

One last questions. For the smb-extra.conf file do I do the following

 

1. Create a text file and name it smb-extra.conf

2. Paste into the file

[global]

    create mask = 0644

    directory mask = 0755

    map hidden = No

    map system = No

3. Save the file and upload to the config folder of the flash drive

4. Restart the unraid server

Yes to 1, 2, and 3.  #4 is not needed.

If the file does not already exist there, and you have to create it, make sure you use Linux-style line endings:

http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F

 

UPDATE:

 

I was playing around with all this, and I discovered that you need to do one more thing to make all things perfect:

# fix the FTP server permissions for uploaded files
echo "anon_umask=0022" >> /etc/vsftpd.conf

You can add the above to your 'go' script, so it can apply the fix at every server reboot.

 

Now, with this modification, and also with the modification to the smb-extra.conf mentioned earlier, ftp works perfectly on my unRAID.

 

Some more thoughts...  Now that I got FTP to work perfectly, I did some benchmarks.

Writing large files to my protected array over ftp (filezilla) gave me less than 5% speed improvement over samba (TeraCopy).

For me that difference is not signifficant enough to make me forego all the other benefits of TeraCopy.

Note: the CPU in my unRAID is seriously underpowered, so your results may be very different than mine.

 

Some more thoughts...  Now that I got FTP to work perfectly, I did some benchmarks.

Writing large files to my protected array over ftp (filezilla) gave me less than 5% speed improvement over samba (TeraCopy).

For me that difference is not signifficant enough to make me forego all the other benefits of TeraCopy.

Note: the CPU in my unRAID is seriously underpowered, so your results may be very different than mine.

 

I didn't see any difference in performance and the only reason I looked at FTP was the Samba Too Many Files Open problems I was seeing. With Teracopy I could work around that problem so I didn't bother with FTP anymore.

  • 2 weeks later...
  • Author

Just finally got time to run everything, it's working as I envisioned in my head!

The permission step to adjust file took a while.

 

After reading the instructions to create the smb-extra.conf file, I don't think it's working.

 

I created the file within windows as a .txt file using crimson editor.

But from I understand I have to use unraid to create the file, with linux style endings. Read through all of the content for that but I'm still trying to understand.

 

By any chance would anyone know what the commands lines is to create the smb-extra.conf file along with putting the propers controls in there when on the unraid server

 

[global]

    create mask = 0644

    directory mask = 0755

    map hidden = No

    map system = No

 

Thanks Again!

 

 

 

  • Author

Ok i tried but it I dont know how to get to the flash directory to execute the command.

 

Futher.

 

I tried you suggestion: echp "anon_unmask".....

 

Now i get an 500 error "unrecognised variable in config file: anon_unmask" when i try to ftp.

 

I looked through and i don't even have a  vsftpd.conf file.

 

Please help, now nothing is working.

Thanks!

  • Author

Ok I rebooted and everything is workign again wheww!

 

Now I just need to get this smb-extra.conf to work

 

From what I understand

 

1. Create the file

2. Copy to the config folder on the flash drive

3. Go to the unraid computer

4. Type in the command to turn the file into a unix file

 

"fromdos  <smb-extra.conf>tempfile

mv  tempfile  smb-extra.conf"

 

However here my problem.

 

1. I don't know how to get to the flash directory

2. Do i run each of those commands seperately?

 

Sorry for the ignorance, but I tried to google linux commands and it told me to cd then the name of the of the directory which would be cd flash but that doesnt' work.

Any help would be great. thanks!

 

Cheers,

 

Ok I rebooted and everything is workign again wheww!

 

Now I just need to get this smb-extra.conf to work

 

From what I understand

 

1. Create the file

2. Copy to the config folder on the flash drive

3. Go to the unraid computer

4. Type in the command to turn the file into a unix file

 

"fromdos  <smb-extra.conf>tempfile

mv  tempfile  smb-extra.conf"

 

However here my problem.

 

1. I don't know how to get to the flash directory

2. Do i run each of those commands seperately?

 

Sorry for the ignorance, but I tried to google linux commands and it told me to cd then the name of the of the directory which would be cd flash but that doesnt' work.

Any help would be great. thanks!

 

Cheers,

 

The flash drive is mounted at /boot

Therefore, any file you copy to it via its share name of \\tower\flash will end up in /boot

The config folder is at

/boot/config

and the smb-extra.conf file is at

/boot/config/smb-extra.conf

 

When you log in you are at "root's" home directory of /root

To change directory to th flash drive type

cd /boot

or

cd /boot/config

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.