Solved

Samba configuration

Posted on 2003-11-05
2
610 Views
Last Modified: 2013-12-23
Hi.

I have installed on a Sun host with Solaris 5.8 Samba 2.2.8a.
I want to have a restricted access from Win2k in one of this 2 possible ways:
- (preferred) providing the same username / password (unix credentials) I use to access the host;
- a predefined username / password.

I need a working smb.conf file and if any step must be done (such as using commands like smbpasswd or so on.)

Thanks
0
Comment
Question by:claud_io
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 50 total points
ID: 9691243
The minimum smb.conf that will allow access from a windows box would look like:

[global]
   workgroup = WORKGROUP
   security = user
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

You'd need to create an SMB auth pair with smbpasswd using the same username/password that you use to log in to the Solais system. The Samba config will allow you access to only your home directory.

0
 
LVL 24

Accepted Solution

by:
shivsa earned 200 total points
ID: 9691314
Here is a smb.conf that works for samba 2.2.7a on solaris 8, compiled with gcc 3.2.0:

        workgroup = TSTDOM
        netbios name = TSTSRVR
        server string = Samba Server
        interfaces = 192.168.0.1/24 127.0.0.1/8
        encrypt passwords = Yes
        update encrypted = Yes
        log level = 2
        load printers = No
        disable spoolss = Yes
        domain admin group = root
        logon path = \\TSTSRVR\%$(username)\profile
        logon drive = h:
        logon home = \\TSTSRVR\%$(username)
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        template homedir = /export/home/%U
        printer admin = root
        use client driver = Yes

[netlogon]
        path = /usr/local/samba/lib/netlogon
        write list = ntadmin root admin

[homes]
        path = /home/%u
        read only = No
        create mask = 0700
        directory mask = 0700
        force directory mode = 0700
        browseable = No

[Temp]
        comment = Temporay directory
        path = /tmp
        read only = No

please check out the discussion on
http://www.experts-exchange.com/Networking/Unix_Networking/Q_20490140.html?query=smbpasswd&searchType=topic
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question