New to FreeNAS

Status
Not open for further replies.

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
After I built my own file server using FreeNAS 8.04 I was able to got to My network and see my Freenas box on my Windows 7 computer and I was able to copy files from an external drive to it and access them. But when I was building my freenas box I had it setup on the kitchen table, so I had to shut it down and move it to its now permanent location. Now I can see freenas and the drive but am unable to access any of the drives. Saying I don't have permission. Help
 

ben

FreeNAS GUI Developer
Joined
May 24, 2011
Messages
373
From where can you not access the drives? How are you sharing the volume or dataset?
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
permissions

Cifs and I can see the freenas in network, but it ask for a password when I try and access the files. I created created a cifs share named home but some how there is a folder on there now and it is called homes and when I look at the security properties it says it is own by a unix user 1002 and unix group 2003. I am not a unix or linux user. I have always just dove in and usually I can eventually get things to work but I think I am over my head in this and I find the instructions a little hard to follow at times. Plus I started with the wrong instructions in the first place.
I can see the home share in explorer but it keeps saying I need a password. Really I just want to be able to reset everything I've done without losing my files and start over.

System Information

Hostname freenas.local
FreeNAS Build FreeNAS-8.0.4-RELEASE-p1-x86 (11059)
Platform AMD Athlon(tm) 64 Processor 3500+
Memory 1971MB
System Time Sun May 6 18:17:21 2012
Uptime 6:17PM up 1:56, 0 users
Load Average 9.61, 9.12, 7.12
OS Version FreeBSD 8.2-RELEASE-p6

Sanders /mnt/Sanders 640.1 GiB (46%) 730.2 GiB 1.3 TiB HEALTHY

I have 2 - WD 1.5 TB - ZFS mirrored drives

Any help would be appreiciated.

Thanks
Stan
 

Kimba

Dabbler
Joined
Feb 3, 2012
Messages
36
Just to recap what you said + what you need to do:
1. You created a Group named "Home."
2. You created a user with password and made that user part of the "Home."
3. You created a CIFS share /mnt/Sanders.
4. You Turned on the CIFS Services (eg you click Services in the top Toolbar and you turned on the service).
5. On Windows you mapped the drive //server/Sanders and you connect with the user (and password created in #2).
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
Yes I have done all that. I can see the share in windows explorer but when I go to access it - it will not except my user password.
 

sjieke

Contributor
Joined
Jun 7, 2011
Messages
125
If you client is a win7 machine:

1. right click on the share and choose "Map network drive".

2.a. Then make sure the checkbox "Connect using different credentials" is checked.
2.b. The "Reconnect at logon" checkbox you can check if you want it.

3.a. Then in the popup-box, fill in your credentials.
3.b. Verify the domain (even if you don't use a domein this is relevant).
3.c. One of my PC's fills in the computer name as domain resulting in a username of "<clientPCName>\<username>", which isn't known by the nas. To fix it add the (netbios) name of the nas (can be configured in the cifs settings) resulting in a username like: "myNas\sjieke"
3.c. If you want, check remember credentials.

Hope this helps.
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
What I have gotten done so far

I was able to access about 90% of my files and copy them off my FreeNAS box, I have 4 main folders & I have 6 folders in one main folder and I have one main folder that I can't get to at all.

I get this error:

Windows cannot access \\FREENAS\Stan\03-Stan's_Stuff\my_music
You do not have permissions to access \\FREENAS\Stan\03-Stan's_Stuff\my_music. Contact your network administrator to request access.

I have 11 files & folders in 03-Stan's_Stuff and I was able to copy 5 out 11. Six give me same access message. I was the person that copied to the FreeNAS box in the first place. I checked permissions in windows and it says that user 1002(Unix User\1002) has ownership and full control of these files. And when I go into FreeNAS I don't have a user 1002 - just a guest user 1001. And I have tried changing permissions and shares every which way. Plus when I was copying files and I shut down my windows 7 computer I would lose all access and I had to quit the cifs services, delete the cifs share and reboot the FreeNAS box and start all over with the shares and services. But I never was able to acces the files I had mentioned before.

Anymore ideas??

Thanks
Stan
 

sjieke

Contributor
Joined
Jun 7, 2011
Messages
125
I think some of your files have different credentials than others. I would just change the permissions on the NAS. You have 2 options for this.
1. Access your NAS through ssh and use the chown and chmod commands.
2. Go to the freenas admin pages. There you go to storage and change the permissions of your dataset/pool recursively. This will change the permissions for ALL files and folders to the ones you specify. Note that this could take a very long time depending on the size of your data. On one of my datasets it took about an hour.
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
I am a windows & gui person and not familiar with getting into chown or chmod commands I guess I wiil find someone in the company I work for to help. We have a guy that is big into open source and linux maybe he can help.

Thanks
Again
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
Thanks for all your help I was able to access all my files and now I can start over and and rebuild my freenas box. With your help I learned alot. See you next thread. Again thanks for all the help
Stan
 

sjieke

Contributor
Joined
Jun 7, 2011
Messages
125
Glad I could help.

Just for completeness in case someone has a similar problem, changing the permissions worked? And did you use the commandline or the web interface?
 

sandpa54

Cadet
Joined
May 3, 2012
Messages
7
I went in and deleted the CISF share & stopped CISF. I had two users - guest & stan - stan had a password & id of 1002 the same id as the one that showed it had all the permissions and ownership of the files on the FreeNAS. Next I went to the 8.0.3 manual and followed the instructions for setting up SSH. I download the WinSCP app and then it was just a matter of opening WinSCP and logging in with stan and password then it open an explorer like window and I was able to copy and paste the rest of my files over to my local harddrive.

Now from what I have learned, I can start over cause I want to do things a little different. Plus since all the computers I have, have gigabyte nic cards I ordered a new nic card for the FreeNAS box since it only has a 10/100 nic card.

Thanks Again for all the help.

Stan
 

JerKeife

Cadet
Joined
Aug 4, 2012
Messages
4
3.c. One of my PC's fills in the computer name as domain resulting in a username of "<clientPCName>\<username>", which isn't known by the nas. To fix it add the (netbios) name of the nas (can be configured in the cifs settings) resulting in a username like: "myNas\sjieke"

Would you please clarify how to add the netbios name. I have a windows 7 computer that is currently adding the domain name to my username and I have been unsuccessful in correcting this. I have even attempted to add my computer comain name to the user but was unsuccesful (I should have known "\" would not be allowed in the username)
 

sjieke

Contributor
Joined
Jun 7, 2011
Messages
125
To find the netbios name of your nas, go to the url where you configure you nas settings. Then under services->cifs, you can configure the netbios name. Sometimes you need to prefix this name to to login using a "\" as separation. So the netbios name of my nas is for example "databox" and the user I use to login on the nas is "sjieke". Then when I access a share from windows I use "databox\sjieke" as login
 

JerKeife

Cadet
Joined
Aug 4, 2012
Messages
4
Thanks sjieke. As soon as I have everything set up again (I'm in the process of moving) I will give it a try.
 
Status
Not open for further replies.
Top