You are not logged in.
Pages: 1
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
I ran into problems and solved them one by one....sound....scim....
I can't believe that samba is what's stopping me. 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
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
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
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
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
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
Glad that I can help others while helping myself
Offline
Pages: 1