You are not logged in.

#1 2013-04-20 16:13:06

KingOfFreeMen
Member
Registered: 2013-02-10
Posts: 15

Some trouble setting up my Samba Shares

Hi everyone.


I'm having some trouble setting up my Samba Server. I seem to be unable to get write access to my shares that are on partition I created myself (/mypart). Everything works fine when I try to share a folder in the /home directory. Is there something I'm missing ?


Here is the part of my fstab file where I mount this partition :

# /dev/sda1
UUID=7c4649d0-67cb-4984-a71e-6060d8618654 	/mypart		ext4		defaults			0 2

And here is my smb.conf file :

[global]
    workgroup = WORKGROUP
    server string = Samba
    netbios name = servername
    name resolve order = bcast host
    dns proxy = no

    log file = /var/log/samba/%m.log

    create mask = 0777
    directory mask = 0777

    force create mode = 0777
    force directory mode = 0777


[myshare]
    path = /mypart/myshare
    read only = no


[testshare]
    path = /home/vince/testshare
    read only = no

With this configuration, I'm able to write in "testshare" but not in "myshare".


It's like what I configure in the "myshare" section in not applied by Samba.


I hope this is clear enough for someone to help me.



Thanks in advance to those who take the time.

Offline

#2 2013-04-20 23:42:46

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Some trouble setting up my Samba Shares

check permissions for /mypart/myshare

Offline

#3 2013-04-21 09:43:08

KingOfFreeMen
Member
Registered: 2013-02-10
Posts: 15

Re: Some trouble setting up my Samba Shares

Checked the permissions, still doesn't work.

Offline

#4 2013-04-21 10:16:38

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Some trouble setting up my Samba Shares

That answer doesn't help at all. What are the permissions? Have you tried chmod 777 -R /mypart/share ? And also the same for /mypart? Your config for the two shares are virtually identical. If one has a write problem but not the other, it has to be permissions, assuming that you have enough space to write something there.

Offline

#5 2013-04-21 10:40:50

KingOfFreeMen
Member
Registered: 2013-02-10
Posts: 15

Re: Some trouble setting up my Samba Shares

Sorry for being unclear. Yes, that's what I meant, Chmod 777 -R does not change anything. Having enough space in not a problem.

Offline

#6 2013-04-21 23:31:04

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Some trouble setting up my Samba Shares

In that case check permissions on the client side. Can you write with root? How about mounting to the folder that allowed writing? Beyond that I'm out of ideas. If you suspect your config just use the testshare config to share mypart. Or mount mypart to testshare. Basically get it to work then you can figure out why it didn't in the first place. Sorry I can't be of further help.

Offline

Board footer

Powered by FluxBB