Solved

Samba(Solaris 10)

Posted on 2011-03-03
3
644 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

771 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

9 Experts available now in Live!

Get 1:1 Help Now