Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mockingbird
n00b
n00b


Joined: 19 Mar 2007
Posts: 15

PostPosted: Fri Mar 30, 2007 9:29 pm    Post subject: Samba problem Reply with quote

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
View user's profile Send private message
sn4rf3r
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2006
Posts: 77
Location: Jersey, US of F'n A

PostPosted: Fri Mar 30, 2007 9:59 pm    Post subject: Re: Samba problem Reply with quote

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
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Fri Mar 30, 2007 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
mockingbird
n00b
n00b


Joined: 19 Mar 2007
Posts: 15

PostPosted: Fri Mar 30, 2007 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
deface
Apprentice
Apprentice


Joined: 17 Mar 2007
Posts: 205

PostPosted: Sat Mar 31, 2007 12:33 am    Post subject: Reply with quote

smbpasswd -a <user>
_________________
--
Jeremy
http://www.gentoo-wiki.com - Gentoo How-To/Guide's
http://www.gentoo-portage.com - Where the portage meets the web
Back to top
View user's profile Send private message
mockingbird
n00b
n00b


Joined: 19 Mar 2007
Posts: 15

PostPosted: Sat Mar 31, 2007 1:41 am    Post subject: Reply with quote

I already did smbpasswd, to no avail.
Back to top
View user's profile Send private message
sn4rf3r
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2006
Posts: 77
Location: Jersey, US of F'n A

PostPosted: Sat Mar 31, 2007 1:00 pm    Post subject: Re: Samba problem Reply with quote

Is there anything in the log files?
Back to top
View user's profile Send private message
mockingbird
n00b
n00b


Joined: 19 Mar 2007
Posts: 15

PostPosted: Sat Mar 31, 2007 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum