Solved

Samba(Solaris 10)

Posted on 2011-03-03
3
645 Views
Last Modified: 2013-12-04
Solaris 10

I've samba setup for couple of users and its working fine but I need to add about 30 more users on two different subnets. Currently I added the two users pc to the host allow line and its working but I'll like to share the dir to the entire subnet and have user use samba password to gain access to the share: When I change security to "user", add the user's PC IP, and create a smbpasswd it work fine but when I change these two lines to point it to the subnet it doesn't work
1. security = user
2. hosts allow = localhost,10.145.244.0/255.255.254.0
Samba does not work with above configuration but works fine with below configuration

# 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 = SHARE

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow = localhost,10.40.145.103,10.40.146.77,10.40.145.83

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
 How can I setup samba share for a bunch of users on two subnet to map the dir?

Any help is highly appreciated.
0
Comment
Question by:binadmin
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
ID: 35038701
I am not sure about this, but I suspect that samba may not accept the old style subnet mask. Instead of putting "10.145.244.0/255.255.254.0",
try using "10.145.244.0/23".
0
 

Author Comment

by:binadmin
ID: 35063235
Resolved..Thanks blu..instead of 10.145.244.0/23 I used 10.145.244.0/24...I appreciate your help. Thanks again.
0
 

Author Closing Comment

by:binadmin
ID: 35063244
Resolved..Thanks blu..instead of 10.145.244.0/23 I used 10.145.244.0/24...I appreciate your help. Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
OfficeMate Freezes on login or does not load after login credentials are input.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

948 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now