Go Back   Pro/Forums > ProCooling Technical Discussions > Snap Server / NAS / Storage Technical Goodies
Password
Register FAQ Members List Calendar Chat

Snap Server / NAS / Storage Technical Goodies The Home for Snap Server Hacking, Storage and NAS info. And NAS / Snap Classifides

Reply
Thread Tools
Unread 11-21-2006, 05:38 PM   #1
tconway
Cooling Neophyte
 
Join Date: Jun 2006
Location: USA
Posts: 4
Default M4100 FTP Share

I just picked up an m4100, os 3.4.805, bios 2.4.437

I added some ftp shares but I don't quite understand how the ftp server works with the shares.

I created folder/shares with access from different users
\www\webdata\ftphome1 share (ftphome1)
\www\webdata\ftphome2 share (ftphome2)

I can map drives to both the shares with no problem.

If I ftp to either share, the root is the webdata folder (no access) with one subfolder
that reflects the users rights (ftphome1 or ftphome2) depending on who I am logged in as. Is this normal for a snapserver?

thx
tconway is offline   Reply With Quote
Unread 11-21-2006, 05:52 PM   #2
Phoenix32
Thermophile
 
Phoenix32's Avatar
 
Join Date: May 2006
Location: Yakima, WA
Posts: 1,282
Default Re: M4100 FTP Share

I would be interested in someone posting up a good "SNAP Server FTP How To" as well (and added to the Wiki later).
Phoenix32 is offline   Reply With Quote
Unread 11-21-2006, 06:33 PM   #3
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

Why Did you use the www (web) port 80?

Make sure you have turned on FTP. If you want outside access setup your router to point to the snap.

Create the share at the root of the main share not under the web. (share1/ftp/User1, Share1/ftp/user2 .....) or If you prefer give each user their won folder at the root level.

You give all users "read access" to the root. Then you give each user full access to their own folder, and make them the owner. Remove (No Access) access from folders you do not want the user into. This is where most mess up.

The snap OS does not have a way to hide files, like the Guardian OS does.

This should get you started. The snap checks security and gives you a warning if there is a problem.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 11-21-2006, 06:33 PM   #4
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: M4100 FTP Share

What you are describing sounds normal for a snap server if I am understanding your correctly. What were you expecting it to do?

Honestly, the best way I found to set up an FTP server was to create a second share for FTP use, and then assign the FTP users to my FTP share while not giving them access to my normal share. When the FTP users logged in, they could see the FTP share and all of the folders in it, but they could only access the folders I gave them rights to. The other folders came up as access denied. They could not, however, see my normal share that I use for everyday access inside my network.

I'll work on a snap FTP guide, including the snaps limitaions as a FTP server.
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 11-21-2006, 07:46 PM   #5
tconway
Cooling Neophyte
 
Join Date: Jun 2006
Location: USA
Posts: 4
Default Re: M4100 FTP Share

FTP is enabled, I'm testing from within my Lan for the time being.
I'll try to be more clear

I created a user "user1"

as administrator I created folder at root level "webdata"
I created a webdata$ share and assigned RO access to "user1"
I then created "webdata\user1" share and assigned FULL access to "user1"
(the snap server created the "user1" subdirectory)

I ftp to snapserver as user1, enter password
pwd is "\" but I am not in the "user1" folder. I can't write anything.
"user1" is a subfolder which makes no sense, it should be root.
I have to cd "user1" to get full access

thx
tconway is offline   Reply With Quote
Unread 11-21-2006, 09:26 PM   #6
Phoenix32
Thermophile
 
Phoenix32's Avatar
 
Join Date: May 2006
Location: Yakima, WA
Posts: 1,282
Default Re: M4100 FTP Share

Quote:
Originally Posted by jontz

I'll work on a snap FTP guide, including the snaps limitaions as a FTP server.
If you would be so kind, send me a copy of that in e-mail when you complete it please.
Phoenix32 is offline   Reply With Quote
Unread 11-21-2006, 10:00 PM   #7
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

Are you using IE, FireFTP (FF) or other client FTP Program?

The $ makes it a hidden folder. And is treated as system files.

If you can connect via web interface, use windows finder to create a folder, then drop in some files.

Then go to security file/folder and look to see how it assign access. Then you will under stand what is going on. It took me some time to get it down. I suspect you are missing read access to the root.

Jontz, If you would please send me a copy and I will help proof it. As you know everyone looks a security differntly, more eyes the better. When I get the 4500 on line I will let you know what is different. I know it has a hidden file features. This allows you to send a link to someone, and that is the only file you will see. All other will be hidden, like there is only one file in the folder.

I have my new APC UPS with the Network Management card setup to auto shutdown my Snaps. So I'm getting closer.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820

Last edited by blue68f100; 11-21-2006 at 10:13 PM.
blue68f100 is offline   Reply With Quote
Unread 11-22-2006, 01:47 AM   #8
snap-tech
Cooling Neophyte
 
Join Date: Mar 2002
Location: Washington State
Posts: 54
Default Re: M4100 FTP Share

Snap-Tech stepping in.

I will keep this simple.

1. If you are making a web page place this and all graphic files under the www folder and keep as read only for all users.

2. I would create a root folder called ftp. Under the folder called ftp create your individual user folders -- as follows

ftp\user1
ftp\user2
ftp\user3

Then create a share that points to ftp\user1 anc call the share user1
then create a share that points to ftp\user2 and call the share user2

Now create your users -- lets say user1 user2 user3.

Give user1 full access to the share called user1
give user2 full access to the share called user2
give user3 full access to the share called user3

If you create a share that points to the folder called ftp then give users1 user2 and user3 read only to the share called ftp. this means that they will see the folders called user1 user2 and user3 but will not be able to access the folders other than the one that there share points to. If you don't want the users to know that there are other users folders then don't give any of them access to the share called ftp or just don't create the share called ftp.

I always found it easiest to name the shares the same as the folder they point to. This helps keep things inline and easier to remember what points to what.

If for example you give any user full access to the share called ftp they will have full access for all folders located under the share, even if you deny them access to the share called user1 or user2 or user3.

The snap security is a top-down security.

Also something that helps is when you are testing shares, open up another window and login into the admin page and check the active user tab and see what the ftp user is actually logged in as. They may be in a guest and not the user u think they are in as.

Also remember that share1 does not point to a folder, it points to the root so I would remove all users from share1 other than the snap administrator. Only admins should have any access to share1 which gives them full access to all data on snap no matter what share/folders have been created.

Douglas Snap-Tech
snap-tech is offline   Reply With Quote
Unread 11-22-2006, 04:52 AM   #9
snap-tech
Cooling Neophyte
 
Join Date: Mar 2002
Location: Washington State
Posts: 54
Default Re: M4100 FTP Share

sorry but some of my previous post is not correct. I was lying in bed trying to fall asleep, but something kept hunting me about my post. I finally figured it out and below are the corrections.


You want to grant full access to user1 user2 user3 to the share calld ftp. Then you would go into the file and folder security and deny user2 access to user1 folder and same for user3. User1 would have full acess to the share named user1as well as full file and folder security to the share user1. god i hope that makes sense.

You give full acess to shares and limit or deny access through file and folder security. If you do not want user to be able to do more than read data within a specific share then you can give read only access to the share. But if they are going to have write access to data within a share then give full access to the share and limit there access to specific folders/files that you don't want them to be able to change within the same share.

I hope this makes sense.

I have to get up in 2 hours to go to seattle. At least I will be able to get to sleep now I hope.

Douglas Snap-tech
snap-tech is offline   Reply With Quote
Unread 11-22-2006, 04:55 AM   #10
snap-tech
Cooling Neophyte
 
Join Date: Mar 2002
Location: Washington State
Posts: 54
Default Re: M4100 FTP Share

snap security can be a pain in the ass to get it down.
snap-tech is offline   Reply With Quote
Unread 11-22-2006, 04:56 AM   #11
snap-tech
Cooling Neophyte
 
Join Date: Mar 2002
Location: Washington State
Posts: 54
Default Re: M4100 FTP Share

one other thing

there is no difference between and ftp share and a network or lanmanager share. a share is a share on a snap.
snap-tech is offline   Reply With Quote
Unread 11-22-2006, 07:07 AM   #12
tconway
Cooling Neophyte
 
Join Date: Jun 2006
Location: USA
Posts: 4
Default Re: M4100 FTP Share

blue68f100
I'm using a client FTP Program. Actually to test, I'm using ftp from windows command line. I understand $ makes a hidden folder, just trying options

Snap-Tech
If I understand correctly, I create
ftp\user1
ftp\user2
ftp\user3

Then create "ftp" share and grant full access to all 3 users
Then through folder security, deny access on user1 to user2, user3... same for the ither users.

Following these steps, if I ftp from the command line as user1 will I be in the user1 folder or the ftp folder? If I end up in the ftp folder this is very problematic having to leave the changing of directory to the user.

-Tom
tconway is offline   Reply With Quote
Unread 11-22-2006, 07:56 AM   #13
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

Create the shares first then user. You have and option when you create a share users to config access rights.

Depending on your router (firewall) and ISP's some ftp client does not work. In most cases IE does.

Security will drive you nuts, when you you start testing it.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 11-22-2006, 06:00 PM   #14
snap-tech
Cooling Neophyte
 
Join Date: Mar 2002
Location: Washington State
Posts: 54
Default Re: M4100 FTP Share

In that case don't create the share ftp or don't give any users acess to it.

Just create the shares that point to user1 folder, user2 folder and user3 folder and give the correct user full access to the correct share.

Douglas Snap-Tech
snap-tech is offline   Reply With Quote
Unread 11-23-2006, 05:25 PM   #15
Phoenix32
Thermophile
 
Phoenix32's Avatar
 
Join Date: May 2006
Location: Yakima, WA
Posts: 1,282
Default Re: M4100 FTP Share

Ya know, there has been just enough good info here (and it was good info), spread out through enough messages, from enough people, and a few corrections, to muddy up the water and make it all confusing.

So let's try this...

We have a SNAP Server. We want to use it for FTP and for internal LAN use.

For the FTP we want two sections, one private and one not so private. Both require a username and password, but FTPuser1 only get's access to XX while FTPuser2 gets access to XX and YY. Either user can upload, but only to a specified upload directory within their accessable shares.

Lastly, there is also a share that is for normal file access (not FTP) for LAN use only, but any user on the LAN can access it.


This should be a common setup, so how does one set this up on a SNAP? Step by step? Thank you...
Phoenix32 is offline   Reply With Quote
Unread 11-24-2006, 09:20 AM   #16
tconway
Cooling Neophyte
 
Join Date: Jun 2006
Location: USA
Posts: 4
Default Re: M4100 FTP Share

Based upon my experimentation the ftp share is the same as the normal share.
The snaps ftp server however does not work like convention ftp servers. There seems to be an odd concept of root

Create share ftp\user1 and give access to user1
user1 ftp's and gets this
\
\user1
I would anticipate only \ bing the user1 folder

Create anther share for root ftp and user1 sees this
\
\ftp
\user1
I would anticipate \ with a subdirectory of user1

Strange and dangerous behavior. With the only option under the ftp server being "allow anonymous ftp".... I'm not using it.
tconway is offline   Reply With Quote
Unread 11-24-2006, 11:57 AM   #17
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

Not to through another twist in the works but firewall cause major havic with ftp servers. Phoenix32 and jonts will confirm. Even ISP handle the trafic differently. Only IE seam to get through Verizon with a Netgear router, Comcast is not near as picky. So if you are setting this up for outside access be warned.

If on your other folder and share at the same level, Add NO Access for unwanted snoops. It will prevent them from browsing. Have you private share nested under 1 folder/dir.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 11-25-2006, 06:29 AM   #18
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: M4100 FTP Share

Quote:
Originally Posted by tconway
blue68f100
I'm using a client FTP Program. Actually to test, I'm using ftp from windows command line. I understand $ makes a hidden folder, just trying options

Snap-Tech
If I understand correctly, I create
ftp\user1
ftp\user2
ftp\user3

Then create "ftp" share and grant full access to all 3 users
Then through folder security, deny access on user1 to user2, user3... same for the ither users.

Following these steps, if I ftp from the command line as user1 will I be in the user1 folder or the ftp folder? If I end up in the ftp folder this is very problematic having to leave the changing of directory to the user.

-Tom
So, pretty much what I said originally...

Blue and Phoenix, I will be sending you my brief "essay" on my snap FTP experience sometime this weekend now that Thanksgiving is over with...
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 11-25-2006, 10:28 AM   #19
Phoenix32
Thermophile
 
Phoenix32's Avatar
 
Join Date: May 2006
Location: Yakima, WA
Posts: 1,282
Default Re: M4100 FTP Share

Thank you.
Phoenix32 is offline   Reply With Quote
Unread 11-25-2006, 02:48 PM   #20
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: M4100 FTP Share

...or I could boil it down for you right now....the snap SUCKS as a FTP server

I'll be more in depth than that though...
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 11-26-2006, 02:06 AM   #21
Morpheus256
Cooling Neophyte
 
Join Date: Nov 2006
Location: canada
Posts: 21
Default Re: M4100 FTP Share

I'm very interested in reading the ftp book for the snap mine should be here next week so i'll finally be able to play with it.
Morpheus256 is offline   Reply With Quote
Unread 11-26-2006, 06:10 AM   #22
re3dyb0y
Cooling Savant
 
re3dyb0y's Avatar
 
Join Date: Aug 2004
Location: UK
Posts: 909
Default Re: M4100 FTP Share

A book with 1 sentence

"Don't use the snap as a FTP server"


Or Maybe 2

"A work around, is to map shares to a desktop pc, or some other better NAS device, and FTP from there"
__________________
Snap Server Help Wiki - http://wiki.procooling.com/index.php/Snap_Server

Snap Server 2200 v3.4.807
2x 250GB Seagate Barracuda 7200.9
w/ UNIDFC601512M Replacement Fan

"Did you really think it would be that easy??"


Other NAS's
1x NSLU2 w/ 512mb Corsair Flash Voyager
Running Unslung 6.8b

1x NSLU2 w/ 8Gb LaCie Carte Orange
Running Debian/NSLU2 Stable 4.0r0


250GB LaCie Ethernet Disk
Running Windows XP Embedded
re3dyb0y is offline   Reply With Quote
Unread 11-26-2006, 07:08 AM   #23
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

Maybe, but I'm not convenced it's not mfg interpentation of ftp through firewalls. My brother was trying to access mine and had no luck. He moved to a different location, NOT Behind a FIREWALL and it worked fine. Then another case is when I moved from Comcast Cable to Verizon FIOS. The only thing that's works now is IE. All internal testing works fine, even with FTP clinet software.

The solution may be a DMZ, but I don't like that solution.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 11-26-2006, 09:42 AM   #24
Morpheus256
Cooling Neophyte
 
Join Date: Nov 2006
Location: canada
Posts: 21
Default Re: M4100 FTP Share

it sounds like it could be a problem with the ftp daemon and PASV connections then if nat devices mess with it.
Morpheus256 is offline   Reply With Quote
Unread 11-26-2006, 12:25 PM   #25
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: M4100 FTP Share

NAT & Firewalls play havic on FTP. The only clean way is in a DMZ.

WarFTP even had problems working through NAT & Firewalls.

All worked flawlessly behind the firewall with FTP clinet software.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...