1

I can't get access from the lan to a shared folder which is located on a second hard drive on an Ubuntu server.

I have installed Ubuntu server 15.04, Ubuntu is freshly installed on first hard drive sda, and second hard drive is sdb which I have formatted with ext4 and I have mounted and set it to automount everytime I reboot computer.

I have read numerous forums and for days I've been looking for a solution to share a folder or to share a whole drive so anyone can access it from lan without permissions, no luck.

I followed this solution http://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/

Which works when I share folder from Hdd where is Ubuntu installed, but when I do the same steps and change a path to another folder which is located in my second hard drive "/mnt/backup/share" I cant get access to it. I created user and specific group of users with full permissions to specific folder, and when I try to get access to from local network (pc with win7, win 8 and winxp) to access it on a prompt with username and password which I type in; I got also denied. What am I missing?

My smb.config

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[test2]
path = /mnt/backup/test2
browsable = yes
writable = yes
guest ok = yes
read only = yes

[tiki]
path = /mnt/backup/tiki
browsable = yes
writable = yes
guest ok = yes
read only = no

[tiki2]
path = /mnt/backup/tiki2
valid users = ocat
guest ok = no
writable = yes
browsable = yes

1 Answers1

1

As user283885 suggested there was an issue with HDD permissions.

Now I have changed it from none to read and write, and voila it works.

andrew.46
  • 39,359