LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2008, 02:15 PM   #1
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Rep: Reputation: 15
samba member of workgroup


Hello,

I want to setup a samba server as member of a workgroup, for example MYWORKGROUP. I want to share a folder, for example /share.
This share should be available to example.com domain clients only.

Can someone help me with that?
 
Old 10-11-2008, 08:10 AM   #2
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by Fernandoch View Post
Hello,

I want to setup a samba server as member of a workgroup, for example MYWORKGROUP. I want to share a folder, for example /share.
This share should be available to example.com domain clients only.

Can someone help me with that?
Go edit /etc/samba/smb.conf. It's very easy. Be sure to set workgroup = MYWORKGROUP in that file, and then go to the bottom: there should be a default example of how to share /tmp. Just edit that so it meets your requirements.

As for being available to domain clients only, using "hosts allow" and telling it what IP address range should work (like say your domain is on 10.1.1.1-10.1.1-255, set that to 10.1.1.0 which means everything 10.1.1.*).

There's a way to do it where they're authenticated using the domain controller but I have never worked with domains.
 
Old 10-12-2008, 04:20 AM   #3
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Original Poster
Rep: Reputation: 15
My main concern is the password. How to validate users?

Should it be security = share?
 
Old 10-12-2008, 05:25 AM   #4
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Original Poster
Rep: Reputation: 15
Is this correct?

[global]
workgroup = MYWORKGROUP
server string = Samba Server Version %v
security = domain
hosts allow = .example.com

[share]
comment = Public Stuff
path = /shared
public = no
writable = no
printable = no

Will that be fine?
 
Old 10-12-2008, 08:06 AM   #5
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by Fernandoch View Post
My main concern is the password. How to validate users?

Should it be security = share?
security = user

This means that the windows users need to be all lower case and that their password needs to be identical from windows to linux. They also need to have an identical user account on the linux box. Say, for example, joe has a windows account and needs to use the samba shares. You would do the following

(as root)

adduser joe

(and follow prompts)

smbpasswd -a joe

(and input his password)

Now if this windows user does not put in a password when they click their icon to log into windows, you would instead:

security = user
null passwords = yes

then as root:

adduser joe

(password is simply enter key)

smbpasswd -an joe

I do not recommend using null passwords (i.e. have them add a windows password so they actually have to use a password when they log in) but I'm including it since some people's significant others may not want to use a password (as I have found with my wife lol).

As for the configuration, if you wanted to share something, make sure that the directory /shared already exists on the server. Then public=yes so that they can see the share. writeable=no means they won't be able to copy files to the public store, but at least they can see and read files in it. Otherwise it looks fine to me. I'd add browseable = yes so that they can browse the share directories.
 
Old 10-12-2008, 09:14 AM   #6
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Original Poster
Rep: Reputation: 15
Can you you please give the smb.conf lines?
 
  


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
Samba workgroup madivad Solaris / OpenSolaris 10 03-23-2008 03:33 PM
Samba on a workgroup J_K9 Linux - Networking 7 07-08-2005 01:36 PM
how to make my linux box a member of a workgroup ako Linux - Networking 1 04-13-2004 05:35 AM
Samba with MS workgroup Ahuka Mandriva 2 09-20-2003 11:17 AM
help with samba workgroup Twistedpenguin Linux - Networking 1 03-04-2003 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration