You are not logged in.

#1 2013-09-04 18:47:23

stuckinmemphis
Member
From: Hobart, Tasmania, Australia
Registered: 2013-09-04
Posts: 6

*SOLVED* Samba Arch Host Access Failed Permission denied

I am new to Arch.  The last hurdle I am trying to clear is sharing folders to be accessible to all the other computers in the house.  I have been experimenting and reading forum posts for days.  I can't seem to get it working so now I have come here to ask for help. 

So this is a new install running Gnome Shell.
I have installed all the necessary programs and files.
I followed the Arch Samba Wiki.
I have also tried several of the suggestions I have found on various forum posts.

So I have gotten to the point that my Arch host shares shows up and I can see the folders I have shared.  Whenever I try to open a shared folder I get   Access Failed to mount share: Permission denied.  My Android phone and Windows boxes get asked to login to shares.  If I put in my Arch box username and password, I have access to shares.  My other computers (Linux not Arch) I simply get the permission denied message. I am actually trying to allow guest access with no password.

So below is my smb.conf at the moment.  One of the many that I have tried.  This seems to work if I could just get past this permissions issue.

Thanks for any help.

[global]

workgroup = WORKGROUP
   server string = Samba Server
   security = user
   hosts allow = 192.168.1.  127.
   load printers = yes
   log file = /var/log/samba/%m.log
   max log size = 50
#============================ Share Definitions ==============================

[DATA1]
   path = /home/samcompton/DATA1
   available = yes
   browsable = yes
   public = yes
   writable = no
   
[DATA2]
   path = /home/samcompton/DATA2
   available = yes
   browsable = yes
   public = yes
   writable = no

Last edited by stuckinmemphis (2013-09-05 04:05:10)

Offline

#2 2013-09-05 01:00:34

stuckinmemphis
Member
From: Hobart, Tasmania, Australia
Registered: 2013-09-04
Posts: 6

Re: *SOLVED* Samba Arch Host Access Failed Permission denied

After more experimenting I have learned I can use the program Gigolo from my other Linux boxes to mount samba shares on the Arch server logging into shares as my Arch user.  So I guess my issue is changing the way these shares authorize a connection.  I know I am spoiled as I have only used the GUI to do this in the past but, I have spent a couple of days trying different things.  I just can't seem to find anything that will give me guest access.

Offline

#3 2013-09-05 03:57:36

stuckinmemphis
Member
From: Hobart, Tasmania, Australia
Registered: 2013-09-04
Posts: 6

Re: *SOLVED* Samba Arch Host Access Failed Permission denied

Okay it looks like I have found the answer before anyone could reply to this thread.  I basically just kept trying anything that I could find on forums that has worked for other people.  So I have guest access available now just as I have had on other Linux machines.  I am curious if someone can tell me which of the changes I made to my smb.conf made the difference.  What I did does not seem to follow the Arch Samba Wiki but, it is working now.

So below is my current smb.conf.

[global]

workgroup = WORKGROUP
   server string = Samba Server
   security = user
   passdb backend = tdbsam
   guest account = samcompton
   map to guest = samcompton
   hosts allow = 192.168.1.  127.
   load printers = yes
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy=no
#============================ Share Definitions ==============================

[DATA1]
   path = /home/samcompton/DATA1
   public = yes
   writable = no
   printable = no
   read only = yes
   guest ok = yes
   write list = @users
 
[DATA2]
   path = /home/samcompton/DATA2
   public = yes
   writable = no
   printable = no
   read only = yes
   guest ok = yes
   write list = @users

Offline

#4 2013-09-05 04:39:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: *SOLVED* Samba Arch Host Access Failed Permission denied

Neat, glad to see you were able to get this working for yourself here.  Just FYI, when you post things like your smb.conf, you should need to use code blocks.  Hit the quote button of this post to see how these can be made (and to make the arrows in my code block below make sense).

←These are code blocks→

Offline

Board footer

Powered by FluxBB