SOLVED HAving issues with shared folders

Status
Not open for further replies.

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
I'm using FreeNAS 9.2.1.9 RELEASE-x64
I've setup my shares and now I cannot access those shares.
I'm using Windows 8.1 Pro as a desktop.
I can ping the NAS unit both from W8 DT to NAS and the reverse.
I cannot see the shares.
I use StorageCraft to do my backup and now this app cannot see the destination (NAS unit).

I would appreciate some insight into this issue.
Output of getfacl /mnt/Vol1:

[root@freenas ~]# getfacl /mnt/Vol1/
# file: /mnt/Vol1/
# owner: root
# group: wheel
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:rwxpDdaARWcCos:fd----:allow

Thanks in advance
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Hardware and freenas version?


Did the shares ever work?
What directories do you have shared?
How are those shares configured?
What user is accessing the share?
How is the dataset being shared configured?
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
Yes they did for a good while, then I had to shut down the network due to some electrical work being done of a period of time.
Name is FinData
/mnt/Vol1/Photoset
[root@freenas ~]# getfacl /mnt/Vol1/PhotoSet/
# file: /mnt/Vol1/PhotoSet/
# owner: Jon
# group: NasUsergrp
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:r-x---a-R-c---:fd----:allow

upload_2015-7-19_8-32-48.png


upload_2015-7-19_8-34-12.png



I use 2 names for the same location because in that location there are 2 types of images (finished .tiff and original images .cr2).
I use Shadow Protect to access these files from my desktop and stored them on the FreeNAS system.

The only user accessing the system at the moment is myself (Jon).
I'm not sure what you mean by the last question, however its a CIFS share with a file mask of 0660 and a Directory mask of 0770
Guest account is Jon
Home Directories is /mnt/Vol1
Unix Extensions is ticked
Zeroconf share discovery is ticked
server min protocol is SMB2
server max protocol is SMB3_00
Allow execute always is ticked
Bind ip address is ticked to the ip of the server

What I've just noticed on my screen is a notification that states:
Jul 19 08:41:15 freenas notifier: Traceback (most recent call last):
Jul 19 08:41:15 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 900, in <module>
Jul 19 08:41:15 freenas notifier: main()
Jul 19 08:41:15 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 860, in main
Jul 19 08:41:15 freenas notifier: smb4_setup()
Jul 19 08:41:15 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 666, in smb4_setup
Jul 19 08:41:15 freenas notifier: os.chmod("/var/db/samba4/private", 0700)
Jul 19 08:41:15 freenas notifier: OSError: [Errno 1] Operation not permitted: '/var/db/samba4/private'
Jul 19 08:41:15 freenas notifier: winbindd not running? (check /winbindd.pid).
Jul 19 08:41:15 freenas notifier: smbd not running? (check /smbd.pid).
Jul 19 08:41:15 freenas notifier: nmbd not running? (check /nmbd.pid).

So I'm not sure what is happening here. Also I'm not sure that smdb is running.
 

Attachments

  • FreeNAS-001.txt
    10.3 KB · Views: 243

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Start by setting max protocol version to smb2 and min to the default, I can't remember what it's called. You aren't using guest permissions so the guest account settings don't do anything.

It also looks like you modified the permissions of the .system dataset which you should never do. You probably did this by recursively modifying the root dataset. You need to figure out a way to fix your .system dataset permissions. Maybe deleting it and rebooting will fix it but I'm not sure and that could be very bad if it doesn't work.
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
Seems that the smb.conf file is missing. How is this possible, there was never a delete command issued. How do I recreate or obtain another one? this really sucks..
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Restarting the cifs service should make a new one.
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
Had to do the following as restarting CIFS would not work:
[root@freenas ~]# service samba_server onestart
/usr/local/etc/rc.d/samba_server: WARNING: /usr/local/etc/smb4.conf is not reada
ble.
[root@freenas ~]# zfs list | grep .samba4
Vol1/.system/samba4 680K 690G 680K /mnt/
Vol1/.system/samba4
[root@freenas ~]# zfs destroy Vol1/.system/samba4
[root@freenas ~]# rm /var/db/samba4
[root@freenas ~]#

Now CIFS is on, but I still cannot see the share via Windows
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
Doing a reboot at the moment
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
yahoo!! :smile: system is now bad online, all shares are showing up , now to do a major backup and relax whewwwww!!!
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
crap spoke too soon, the shares shows up, however access to them is still locked.
 

jonl711

Dabbler
Joined
Jan 31, 2015
Messages
10
ok, now I can see the data in the all the shares like before...
Thanks for your input and help. have a good weekend
 
Status
Not open for further replies.
Top