LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-18-2008, 11:52 PM   #1
madivad
Member
 
Registered: Jan 2007
Posts: 70

Rep: Reputation: 15
Samba workgroup


I have been having trouble getting my Samba server (on open solaris) to be seen on my local home network workgroup. Here are the lines of my smb.conf file:
Code:
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
   workgroup = INNER

# server string is the equivalent of the NT Description field
   server string = RAIDBox

# Security mode. Defines in which mode Samba will operate. Possible 
# values are share, user, server, domain and ads. Most people will want 
# user level security. See the Samba-HOWTO-Collection for details.
   security = user

# This one is useful for people to share files
[SolaRaidZ]
   comment = RAIDZ
   path = /solaraid
   writable = yes
   browsable = yes
My network is running on Smoothwall 3.0, the PC's are all on the green network, IP addresses are correct and the workgroups are all set to inner. My other PCs are Windows XP Pro, Windows 2003 Server, Xandros, and Ubuntu. The server is not running any DNS or active directory on the 2003 Server.

On the other PCs the Samba server does not appear in the workgroup. But I can access it if I type the IP address in directly.

Am I missing something in my Samba config, or is there another service that needs to be activated. Anyone have any ideas?
 
Old 03-19-2008, 01:01 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Since you can access a share by entering in the IP address, is sounds like the samba services (smbd & nmbd) are running. You might want to check your firewall settings. Do you have 139 & 445 open?

You also want to use smbpasswd to create a username/password entry in the smbpasswd file. This doesn't effect browsing much but will help by possibly retaining more properties such as user & group names instead of being mapped to nobody.

If this is a publicly accessible share, make sure it's directory's permissions were created with "chmod a=rwxt" so that the permissions allow everyone to read and write to it and to set the sticky bit which will prevent one user from deleting another users file. Ownership and permissions for the other Linux users will work out better as well if they mount this share using the cifs filesystem instead of smb. They could even use getfacl and setfacl to offer more granular control on who can read edit particular files.

Last edited by jschiwal; 03-20-2008 at 04:29 AM. Reason: fixed typo.
 
Old 03-19-2008, 01:53 AM   #3
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Nothing on the solaris box is being shared with the outside world. I don't think it's the firewall, I only mentioned it just in case someone knew of anything that may be conflicting. The firewall is between the network and the internet. The network itself has no restrictions other than OS based authentication.

Or did you mean any firewall within the solaris box? I have no idea on anything related in that way. I assumed that they would be open. How can I check?
 
Old 03-19-2008, 04:59 AM   #4
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
In recent OpenSolaris, CIFS server is included. I know nothing about it, but it is some Samba-esque thingy? Or?
 
Old 03-19-2008, 06:26 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I meant on the solaris box. I don't know how you would check. See if there is a security & firewall config program or something similar. In Linux, the kernel uses netfilter and you enter rules using the iptables command either directly in a script that runs when you boot up, or indirectly via a GUI setup program.

You can check the ports that are open on the solaris server by using nmap on another host in the network.
From that computer also run "smbclient -L <solaris-host-name>". That will display the services being offered.
Code:
Not shown: 1689 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
2049/tcp open  nfs
3306/tcp open  mysql
6000/tcp open  X11
Code:
smbclient -L hpmedia
Password:
Domain=[HPMEDIA] OS=[Unix] Server=[Samba 3.0.26a-3.5-1616-SUSE-SL10.3]

        Sharename       Type      Comment
        ---------       ----      -------
        profiles        Disk      Network Profiles Service
        users           Disk      All users
        print$          Disk      Printer Drivers
        public          Disk      Public Share test
        secret$         Disk      secret share
        IPC$            IPC       IPC Service (Samba 3.0.26a-3.5-1616-SUSE-SL10.3)
        hplaser         Printer   HP Color Laserjet 3550N
Domain=[HPMEDIA] OS=[Unix] Server=[Samba 3.0.26a-3.5-1616-SUSE-SL10.3]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        JESNET               HPAMD64
On the server, run "testparm" to test your smb.conf file for errors.
 
Old 03-19-2008, 07:39 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by kebabbert View Post
In recent OpenSolaris, CIFS server is included. I know nothing about it, but it is some Samba-esque thingy? Or?
It is an alternative to the samba server.
http://www.opensolaris.org/os/projec...Guide/toc.html
 
Old 03-19-2008, 03:44 PM   #7
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Quote:
Originally Posted by jlliagre View Post
It is an alternative to the samba server.
http://www.opensolaris.org/os/projec...Guide/toc.html
It is THE server, right? It uses Microsofts own protocol and it mimics Windows servers exactly, right? Much better than Samba, yes? Thanx for the link, I will read it. I would prefer a windows server (i.e. my OpenSolaris CIFS server) in my network, instead of Samba.



Holey Moley. I started to read but there was to much I didnt understand, AD, WINS, etc etc etc etc.

Does anyone know the basic steps for a homeuser with a 2-3 computers connecting to the ZFS raid? Can someone outline the steps, then I can read about the steps?

Last edited by kebabbert; 03-19-2008 at 04:03 PM.
 
Old 03-21-2008, 03:44 AM   #8
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Code:
Interesting ports on solaris.loc (10.0.0.21):
Not shown: 1690 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
111/tcp open  rpcbind
139/tcp open  netbios-ssn
445/tcp open  microsoft-ds
587/tcp open  submission
901/tcp open  samba-swat

Nmap finished: 1 IP address (1 host up) scanned in 343.766 seconds
So the required ports are open. I also but I still can't see it on the network as being part of the workgroup
 
Old 03-21-2008, 04:44 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
My smb.conf isn't that different than yours. I will select the "profile" service from my laptop and enter my password the first time to get to my home directory on my desktop and vice versa.

I also have a public service where a password isn't needed:
Code:
[global]
        workgroup = JESNET
        map to guest = Bad User
        printcap name = cups
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        wins server = eth1:192.168.1.105, eth2:192.168.1.105
        usershare allow guests = Yes
        printing = cups
        cups options = raw
        lpq command = %p
        include = /etc/samba/dhcp.conf

[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        create mask = 0600
        directory mask = 0700
        store dos attributes = Yes

[opensuse103]
        path = /suse
        guest ok = Yes

[wildswede]
        path = /srv/samba
        guest ok = Yes
The opensuse103 service is where I have an image of my install DVD on both services.
I just created the wildswede service to test an answer to another post. The public share on my desktop hasn't been toyed with (configuration wise) as much.
Code:
[public]
        comment = Public Share test
        path = /srv/samba/public
        read only = no
        guest ok = yes
        browseable = Yes
Code:
        map to guest = Bad User
If a user doesn't enter in the right password they are mapped to the guest user.

Code:
        wins server = eth1:192.168.1.105, eth2:192.168.1.105
I opted for "wins support = Yes" on the Desktop. One of the listed interfaces is for when I use wireless, the other is a NIC. I'm not using both at the same time.

If you use "wins support = yes" and then enter your server's IP address as the WINS server in your routers WINS entry, the other computers will pick it up during the DHCP configuration. This may help with browsing.
 
Old 03-22-2008, 09:10 PM   #10
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Ok, the problem is on a roadmap of recovery.

Apparently somewhere in the infinite wisdom of the community nmbd is not started with smbd. This is confirmed by ps -ef | grep nmbd which returns only the grep line.

This is solved one of two ways (and I have chosen the more difficult way :S)

1) start nmbd (just type it and it starts). You could create a legacy start up code for it (which I should have opted for), or
2) follow the instructions here which are relatively straight forward, but have issues.

1) I am getting a duplicate entry on the "samba_multi-user-server" dependency. Not wanting to remove it, I just renamed it. That has seemed to work
2) when doing a svcs samba I get a "maintenance state"

I am working on this. Should this not be successful, I am going to revert back to the old svccfg for samba, create a legacy start for it and upgrade it to the SMF format (for which I saw the walk-around for somewhere here)
edit: a reboot and all is online

Last edited by madivad; 03-22-2008 at 09:25 PM.
 
Old 03-23-2008, 03:33 PM   #11
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Ok, found good information on setting up CIFS with Solaris:
http://www.genunix.org/wiki/index.ph...s_CIFS_Service
 
  


Reply



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
Samba Workgroup Browsing srn32085 Linux - Networking 5 07-26-2006 08:31 PM
Samba on a workgroup J_K9 Linux - Networking 7 07-08-2005 01:36 PM
netsend to workgroup using samba Tinku Linux - Networking 0 08-11-2004 08:34 PM
Samba with MS workgroup Ahuka Mandriva 2 09-20-2003 11:17 AM
help with samba workgroup Twistedpenguin Linux - Networking 1 03-04-2003 04:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration