Technical article 127280

Configuring Samba 3.0.x on an SCO OpenServer 6.0.0 Server.

OpenServer 6.0.0

Written · Last revised

Problem

How can I configure and start to use Samba 3.0 on my SCO OpenServer 6.0.0 machine?

Solution

1.  SCO OpenServer 6.0.0 Maintenance Pack 4 contains Samba 3.0.30.

If you wish to use Samba then it is recommended to download and install this version.

Installation instructions are available from:
http://www.sco.com/support/update/download/release.php?rid=366
2.  Once installed, and rebooted, check that the Samba daemons,
    nmbd and smbd, are running with "ps -ef":
root  1561     1  0 08:24:02 ?            00:00:01 /usr/sbin/nmbd -D -s /etc/samba/smb.conf
root  1569     1  0 08:24:04 ?            00:00:01 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root  1580  1569  0 08:24:05 ?            00:00:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root  4562  1569  0 08:50:09 ?            00:00:01 /usr/sbin/smbd -D -s /etc/samba/smb.conf

If not, then they can be enabled with:

# /etc/init.d/nmbd enable
# /etc/init.d/smbd enable
then:
/etc/rc2.d/S99nmbd start
/etc/rc2.d/S99smbd start
3.  Before starting, take a backup copy of your smb.conf file with:
# cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
4.  The initial smb.conf file will contain example shares and useful
    configuration information and is a pre-configured running system.

To test it's running on the server, run:

# smbstatus
5.  To access it from a Windows PC, initially, you will need to have
    a Samba User configured.

To do this, check 'Swat' is accessible from a Web Browser and pointing it to:

http://<Samba IP Addr or Server Name>:901

Apache doesn't need to be running on the Samba server for this to be active.

Here you can login as root with the server's root password.

The root password cannot be blank.
You should then click on PASSWORD
and add a user to access the Samba Shares.  For example, root
and/or a sample user.

6. To gain access to the share from a Windows PC, use START -> RUN and enter:

\\<IP or Server name>

It should then ask you for a login and password.

This will be the Samba User you added above.

Once you've been authenticated you will see the user share available to you.

You should then be able to create files and folders to test.

To test as other users you need to create them in Samba and in Unix as:

# useradd -c "Name - Samba User" -m <username>
# passwd <username>

The password does not need to be the same as the Samba password but the Samba password must not be blank.

In addition, the share must be writable by the Unix users needing access.

TROUBLESHOOTING:
- If you do not see the files and folders being created in the
  Windows File Manager yet you can see them on the Unix Server
  yet the HOME directories work fine then it is recommended to
  set the following in the Share in /etc/samba/smb.conf.

path = comment = read only = No browseable = No

This is an issue seen with Samba 3.0.24.

- How do I list all the users in Samba because I can't see them in Swat?

# /usr/bin/pdbedit -L

See also

TA119726, "How do I configure Samba 2.2.x and get it started on my SCO Unix server? "

http://osr600doc.xinuos.com/en/INT_sambaDoc/
http://www.samba.org/
http://samba.org/samba/docs/
http://samba.org/samba/docs/using_samba/toc.html
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/

From the Xinuos technical article database, record 127280. Reproduced with permission. The original is at www.sco.com/ta/127280, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.