LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-24-2005, 06:16 PM   #1
hoagland
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Can't setup Samba - Suse 9.1


HI,

I am running a small home network consisting of a Windows xp desktop and an XP laptop. I have recently installed Suse 9.1 onto a second desktop. I wish to use this second machine as both a web server and a file server for for the network. I have sucessfully installed and tested Apache.

I have been fighting for a couple of days to get samba up and running. I have gotten nowhere. My windows xp machine can find the linux box (cleverly named "Linux") but when I double click on the icon I get an error suggesting a see the network administrator, which unfortunately is me.

If anyone can offer me any help I would appreciate it.

Thanks
 
Old 03-24-2005, 06:42 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
What is in your smb.conf file?
 
Old 03-24-2005, 06:54 PM   #3
hoagland
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Here is the smb.conf file. It is on a wireless network and I edited the the file so that it used wlan0 but that may not be the correct way to do that.


# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
workgroup = Hoagland_net
interfaces = 192.168.1.105 wlan0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = share
encrypt passwords = yes
server string =
add machine script =
domain master = false
domain logons = no
local master = no
preferred master = auto
ldap suffix = dc=example,dc=com
passdb backend = smbpasswd

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
guest ok = no
printable = no
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
browseable = yes
guest ok = no
[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = no
guest ok = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
browseable = yes
guest ok = no
printable = no


Thanks for the help
 
Old 03-24-2005, 07:54 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
Where are you getting your IP addresses from? You didn't specify how the wireless link is setup; do you have a wireless router? Does it have DHCP? Are you getting your addresses via DHCP?

Does this smb.conf pass testparm? Looks like some syntax errors to me, particularly in ldap suffix= line and in passdb backend lines. Why do you have those parameters set, anyway? Try commenting them out and insert the line

Code:
passwd program=/usr/bin/smbpasswd %u
as a replacement

The workgroup is correct, isn't it? Just asking, but a silly error that could really hose you up.

Why do you have "interfaces" set in smb.conf? I don't think you want to do that, since it will override the default interfaces list and that shouldn't be necessary. Try commenting that statement out.

You shouldn't need "bind interfaces only" try commenting it out.

For security, you definitely should set security=user.

Put in a name for server string. Probably that would be "Linux"

You probably need a password server; try this
Code:
passwd server=%m
You need a netbios name; try this
Code:
netbios name=Linux
Do you have a wins server on the network? Things will go easier if you do; your linux box could easily do it by enabling wins in samba. You also should consider making the linux box the master browser.

I find the syntax of your shares section to be quite puzzling. Why have you identified a share called users that has /home as its path, and why have you established a share called groups that has /home/groups as its path? Logically, the subdirectory "group" under "home" should belong to a user named "group". This architecture leads me to believe that you don't have a good grasp of the way Linux is supposed to be organized. Also, your homes section won't work right; it needs to be writeable and available.

FYI, here is much of my smb.conf, which works well - although the samba server is on a wired system.
Code:
[global]       
        ldap ssl = yes
        passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authenticatio
n*tokens*updated*successfully*
        passwd program = /usr/bin/smbpasswd %u
        user = jiml,monica,lali,julie,jimuser
        root preexec close = no
        allow hosts = 192.168.0.
        dns proxy = no
        printing = cups
        print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
        default = homes
        workgroup = HOMEGROUP
        debug level = 0
        os level = 65
        printcap name = cups
        security = user
        max log size = 50
        log file = /var/log/samba/log.%m
        load printers = yes
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        map to guest = never
        domain master = yes
        encrypt passwords = yes
        dead time = 0
        password level = 0
        printable = Yes
        server string = Dadsbox
        password server = %m
        only user = yes
        message command = csh -c 'xedit %s;rm %s' &
        unix password sync = yes
        domain logons = no
        pam password change = no
        netbios name = Dadsbox
        wins support = yes
        dns proxy = no

[C2]    browseable = yes
    writable = yes
    write list = jiml
    inherit permissions = yes
    preexec close = no
    printable = No
    path = /mnt/win_c
    hide dot files = no
    root preexec close = no
    available = yes


[homes]
        browseable = no
        printable = no
        inherit permissions = yes
        writable = yes
        preexec close = no
        write list = jiml,monica,lali,julie,jimuser
        comment = Home Directories
        valid users = jiml,monica,lali,julie,jimuser
        user = jiml,monica,lali,julie,jimuser
        root preexec close = no
        available = yes

[netlogon]
    root preexec close = no
    preexec close = no
    comment = netlogon
    available = yes
    path = /tmp/netlogon
#    domain logons = no

[Space]
    root preexec close = no
    preexec close = no
    writeable = yes
    inherit permissions = yes
    path = /mnt/sdb1
    admin users = jiml
    printable = no
    write list = jiml,monica,lali,julie,jimuser
    valid users = jiml,monica,lali,julie,jimuser
 
Old 03-27-2005, 06:30 PM   #5
hoagland
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks a lot for your help. I was able to get things up and working. I pretty sure that the problem stemmed from a firewall issue. I turned it off and got samba to work instantly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on setup of Samba on Suse 9.2 for access through Windows XP knirke Linux - Networking 2 01-27-2005 10:24 AM
[SUSE 9.1 PROF] How can I copy the setup files to my harddisk and start the setup? TheRealFalcon Linux - Distributions 1 08-07-2004 11:49 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
SuSE 9.1 Pro, Static IP setup and SAMBA issues enygma Linux - Networking 2 07-22-2004 06:58 PM
Samba Setup christer Linux - Networking 3 10-12-2003 05:43 PM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration