LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2005, 03:44 PM   #1
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Rep: Reputation: 15
SMB Sharing in RHEL 3.0


Hi,

What is the best way to enable SMB sharing of folders on a RHEL 3.0 box? How would it be integrated into an Win2K3 Active Directory domain?

Thanks for any suggestions...
 
Old 08-08-2005, 09:25 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
Hello,

This is not so hard. I use a set up like this on unix boxes at work. I would recomment server level security. in this way you can use a Windows box to verify passwords and unix to map windows users to unix users. Your users will not be prompted for a password, but will only have the unix rights they would have for their unix account. this one of my conf files if this helps:

[global]
security = server
password server = <name of PDC emulator>
workgroup = <work group name if you want>
netbios name = <name you want to give the unix box>
server string = Samba Server
invalid users = root bin daemon adm sync shutdown halt mail news uucp op
erator
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
preferred master = False
local master = No
domain master = False
wins server = <ip address of a wins server>
encrypt passwords = Yes
username map = /etc/opt/samba/usermap.txt <<< very important for server level
#[homes]
# browsable = No
# map archive = Yes
[Temp]
path = /tmp
read only = Yes
guest ok = Yes
browseable = Yes
[John]
path = /ops/john
read only = No
valid users = john
browseable = Yes
create mask = 0666
[Tom]
path = /home/tom
read only = No
valid users = tom
browseable = Yes
create mask = 0666
[Samba DIR]
path = /opt/samba
read only = No
valid users = tom
browseable = Yes
create mask = 0666
 
Old 08-08-2005, 11:27 AM   #3
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the info. I see there is a line for a WINS server. We are not using a WINS server on this network, just DNS. Would the IP of the DNS server work?
 
Old 08-09-2005, 04:43 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
#Hello,

I presume you are not using a multi-subnetted network if you are not using WINS. If this is the case you can leave this line out. It's function is to tell the nmbd daemon to register itself with a WINS server. I presume you will have to add a DNS entry for the samba server however.
 
Old 08-09-2005, 06:44 PM   #5
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Original Poster
Rep: Reputation: 15
You are correct, I am not using a multi-subnetted network..just one subnet with no WINS server. Just using NetBIOS over TCP/IP...
 
Old 08-10-2005, 02:51 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
well i would suggest you use a config similar to mine. If you use security = domain you will have to register the linux box as a nt4 bdc which won't be possible if you have set your domain function level to 2003 only...

YOu just need to point it to your PDC emulator (passwd server). I cannot comment on REHL specific parameters, and i believe some are needed.... maybe try to run 'samba setup'
 
Old 08-15-2005, 01:08 PM   #7
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the info

The samba server on the RHEL 3.0 host is on a Win2k3 domain running Active Directory. But if I dont need to have all the extra configuration to allow it to be a member server, etc....then I won't. I just want basic read/write file sharing between Windows machines and the Linux host.
 
Old 08-15-2005, 02:37 PM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
OK, then go with 'security=server'. Although it sounds dramatic it's not. that said user level security will also work fine. Depending on your specific requirements, maybe that would be simpler.

How is it going so far?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FiFo sharing over NFS/SMB mounts..?? JZMatrix Linux - General 3 12-12-2004 03:11 AM
Sharing smb:// drive to internet hellcat1 Linux - Newbie 3 07-27-2004 02:58 AM
SMB Sharing issues jgruss Linux - Networking 5 07-08-2004 08:45 AM
File Sharing: NFS or SMB? scorpatron Linux - Networking 6 11-10-2003 01:44 AM
Sharing an SMB printer in Win98 Thetargos Linux - Networking 4 05-14-2003 10:19 PM


All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration