View previous topic :: View next topic |
Author |
Message |
mockingbird n00b

Joined: 19 Mar 2007 Posts: 15
|
Posted: Fri Mar 30, 2007 9:29 pm Post subject: Samba problem |
|
|
Hi, I tried for several days on samba setup without success. Here is my gentoo box setup:
Code: |
yukon samba # cat /etc/samba/smb.conf
# Samba config file created using SWAT
# from 192.168.15.101 (192.168.15.101)
# Date: 2007/03/30 16:41:38
[global]
netbios name =
server string = Samba Server %v
interfaces = eth0, lo
passwd program = /usr/bin/passwd %u
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
dns proxy = No
guest ok = Yes
hosts allow = 192.168.15.101, 127.0.0.1
load printers = No
[homes]
comment = Home Directories
path = /home/%U
valid users = %U
write list = heping
read only = No
yukon samba #
|
I simply want to setup samba on local network without security bothered. Used smbclient to add the user. But when I tried to map netwrok drive from my pc with path to \\192.168.15.12\homes and supplied the user name / paaswd, it failed. Anyone know what I did wrong.
Thanks!
--heping |
|
Back to top |
|
 |
sn4rf3r Tux's lil' helper


Joined: 01 Aug 2006 Posts: 77 Location: Jersey, US of F'n A
|
Posted: Fri Mar 30, 2007 9:59 pm Post subject: Re: Samba problem |
|
|
What did the samba logs say in /var/log/samba.log.* say?
Also, instead of using the valid user = %U why dont you just say guest ok = yes?
I didnt know you could use a variable in the path like you did your homes secion, is that valid?
I have done something like this before.
Code: |
[home]
path = /homes/username
guest ok = yes
public = yes
writable = yes
browsable = yes
|
Check out the wiki, there a great howto there. |
|
Back to top |
|
 |
HeissFuss Guru

Joined: 11 Jan 2005 Posts: 414
|
Posted: Fri Mar 30, 2007 10:01 pm Post subject: |
|
|
On mine I just share the home dir (as simple as it gets)
Code: |
[global]
workgroup = WORKGROUP
server string = Samba Server %v
printcap name = cups
load printers = no
log file = /var/log/samba3/log.%m
max log size = 50
map to guest = bad user
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain master = no
preferred master = no
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
guest ok = no
|
I'm pretty sure you need the security = user line in yours.
Are there any errors in your samba logs? |
|
Back to top |
|
 |
mockingbird n00b

Joined: 19 Mar 2007 Posts: 15
|
Posted: Fri Mar 30, 2007 11:59 pm Post subject: |
|
|
I modified the /etc/samba/smb.conf to:
Code: |
[global]
security = user
workgroup = WORKGROUP
server string = Samba Server %v
interfaces = eth0, lo
passwd program = /usr/bin/passwd %u
unix password sync = Yes
encrypt passwords = No
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
dns proxy = No
guest ok = Yes
hosts allow = 192.168.15.101, 127.0.0.1
load printers = No
[homes]
comment = Home Directories
path = /home/heping
valid users = heping
write list = heping
read only = No
browsable = Yes
writable = Yes
guest ok = Yes
public = Yes
|
Still it doesn't work. the log file /var/log/samba/log.smbd doesn't show any errors. |
|
Back to top |
|
 |
deface Apprentice


Joined: 17 Mar 2007 Posts: 205
|
|
Back to top |
|
 |
mockingbird n00b

Joined: 19 Mar 2007 Posts: 15
|
Posted: Sat Mar 31, 2007 1:41 am Post subject: |
|
|
I already did smbpasswd, to no avail. |
|
Back to top |
|
 |
sn4rf3r Tux's lil' helper


Joined: 01 Aug 2006 Posts: 77 Location: Jersey, US of F'n A
|
Posted: Sat Mar 31, 2007 1:00 pm Post subject: Re: Samba problem |
|
|
Is there anything in the log files? |
|
Back to top |
|
 |
mockingbird n00b

Joined: 19 Mar 2007 Posts: 15
|
Posted: Sat Mar 31, 2007 1:33 pm Post subject: |
|
|
Not much useful info there:
Code: |
yukon samba # tail /var/log/samba/log.smbd
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/30 21:22:14, 0] smbd/server.c:main(847)
smbd version 3.0.24 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/30 21:38:19, 0] smbd/server.c:main(847)
smbd version 3.0.24 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/30 21:41:49, 0] smbd/server.c:main(847)
smbd version 3.0.24 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
yukon samba # 01.01
|
|
|
Back to top |
|
 |
|