Solved

Samba configuration

Posted on 2003-11-05
2
607 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

740 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