You are not logged in.

#1 2008-04-18 07:22:33

hsjc
Member
Registered: 2008-04-18
Posts: 12

Little help with samba?

Hi everyone!

First I'd like to say that Arch is the best linux distro I have used. Better than ubuntu!! I just switched from ubuntu tongue
I ran into problems and solved them one by one....sound....scim....

I can't believe that samba is what's stopping me. mad I can't get any other computers on my network to access my shared folder, only one folder inside /home. Windows complains about cannot access blahblah; another Slax live cd machine opens the folder then says the folder doesn't exist.

my smb.conf is very simple:

[share]
path = /home/hsjc/share
available = yes
browsable = yes
public = yes
guest ok = yes
writable = yes

[global]
workgroup = WORKGROUP
netbios name = hsjc-arch
security = share
include = /etc/samba/usershare.conf

I can access other computers on the network alright.... Any help will be appreciated.

EDIT: Some update. I've been working on this all night. By adding the log I found that

[2008/04/18 01:43:52, 2] auth/auth.c:check_ntlm_password(319)
  check_ntlm_password:  Authentication for user [nobody] -> [nobody] FAILED with error NT_STATUS_NO_SUCH_USER

This is what i dont understand. I set public = yes and why am I getting this authentication error?

Last edited by hsjc (2008-04-18 08:57:55)

Offline

#2 2008-04-18 10:03:07

imrehg
Member
From: London, UK
Registered: 2008-04-10
Posts: 108
Website

Re: Little help with samba?

hsjc wrote:

my smb.conf is very simple:

[share]
path = /home/hsjc/share
available = yes
browsable = yes
public = yes
guest ok = yes
writable = yes

[global]
workgroup = WORKGROUP
netbios name = hsjc-arch
security = share
include = /etc/samba/usershare.conf

I think your problem is because the way samba operates, it seems to always need a user - in case of publicly writeable folders it would be "nobody".


I think these settings should work for you:

[global]
workgroup = WORKGROUP
netbios name = hsjc-arch
security = share
include = /etc/samba/usershare.conf

[share]
path = /home/hsjc/share
writeable = yes
force user = nobody
force group = nogroup
public = yes

And if you're going to be asked for a password when accessing "share", than just give empty password (just hit enter).

Offline

#3 2008-04-18 15:00:49

hsjc
Member
Registered: 2008-04-18
Posts: 12

Re: Little help with samba?

Thx! I will try that when I come back from school.

EDIT: Just tried your opinion. Now the log says

authentication for user [nobody] -> [nobody] -> [nobody] succeeded

But windows still gives the cannot access error. I checked my permission and also edited my hosts.allow to be ALL:LOCAL

Did I miss anything?

Last edited by hsjc (2008-04-18 22:31:37)

Offline

#4 2008-04-18 23:33:26

paul_au
Member
Registered: 2006-04-13
Posts: 38

Re: Little help with samba?

samba doesn't overwrite local file permissions so make sure your folder /home/hsjc/share has read/write permissions for everyone,

as root:

chmod 777 /home/hsjc/share

Offline

#5 2008-04-19 02:35:53

hsjc
Member
Registered: 2008-04-18
Posts: 12

Re: Little help with samba?

Thanks everyone! Really appreciate all your help. Arch owns!

Problem solved. I need to chmod both "share" folder and my home "hsjc" folder. Besides, I also added "null passwords = yes" to my smb.conf. Dunno how that works. But I just set up another machine very fast with same settings here.

My smb.conf:

[share]
path = /home/hsjc/share
available = yes
browsable = yes
public = yes
writable = yes

[global]
security = share
include = /etc/samba/usershare.conf
wins support = yes
log level = 2
log file = /var/log/samba.log.%m
null passwords = yes

Offline

#6 2008-04-19 03:10:38

DeeCodeUh
Member
From: Michigan, USA
Registered: 2007-11-27
Posts: 176

Re: Little help with samba?

Wow, I was looking around seeing if I could help out anyone on their questions, but this actually ended up helping me.
Thanks for asking this question, and thanks for answering it! My Samba works great now.

Offline

#7 2008-04-19 03:22:27

hsjc
Member
Registered: 2008-04-18
Posts: 12

Re: Little help with samba?

Glad that I can help others while helping myself tongue

Offline

Board footer

Powered by FluxBB