LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-20-2009, 01:28 AM   #1
Tenno
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Question Samba and Windows workgroup


Hi,

First, sorry for my bad English. I'm a beginner in Linux, and already search in the forum but couldnt find the exact answer. I just setup new server using Centos 5.3. I plan to configure it as a file sharing server (samba) as below:

I got 5 department (that mean 5 workgroup too) in my organization, so I want to create a sharing folder for each department (workgroup) in that server. I want each folder to have their own size limit (quota), and can only be written by their corresponding department (user), while other department (user) can just read it, not write. Client PC that will connect to this server is all running Win XP Pro. No domain or AD etc.. I already created a seperate "sharing" partition to enable disk quotas later. Now my problem is I'm getting a little bit confius on how to setup samba.

1) Is Linux "user" is the same with Samba "user"? Do I need to create Linux "user" for 5 department, or just I need to create it in Samba? Or do I need to create in both?

2) When user do \\server_name, they can see 5 sharing folder listed. They can read all folder, but can only write/delete on their corresponding department/workgroup folder. How do I setup this on Samba? Or it just a normal file/folder permission setting in Linux?

3)When Win XP client PC try to access Linux server, how do Samba authenticate them? By workgroup name, or by Windows account name?

4)Let say I want to create a special protected folder, where anyone can access/write it, provided they gave the correct password. How do i set Samba to ask for password each time user want to read/write this folder? Is it possible?

I hope all the expert out there can help me. For sure I will ask for help again later. Thanks a million for all who help.
 
Old 05-20-2009, 10:56 AM   #2
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
Hi;
I hope some one else can answer your questions because I am new myself, but I have access to our company's server , we get on the windows server via remote desktop and the windows 2000 server is a client for our samba server, and I can see that
1-You have to make/create users on the Samba server and create their home directories.
2- the rights to files and folders are set in linux (on samba server) and no matter how much rights you give the user in Windows they will not be able to access more that they have in Linux.
3- I guess by each user on samba?
4- usually you have full rights to your own home folder but you can read everything else (you cannot write/execute other files in other folders).
we also map users to their own home directory which is located on the linux server but shows up as Z: drive in windows.
sorry could not help you much, but those are good questions.
 
Old 05-21-2009, 12:21 AM   #3
Tenno
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks a lot Matey for shed some light on this question. Anyone else please?
 
Old 05-21-2009, 01:19 AM   #4
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Rep: Reputation: 34
I've had samba nightmares, so maybe I can try to help some.

When the XP client accesses the share, it does it just with the user name and password. The workgroup name just tells it where the share is.

The best way I have found to get samba going is to start off with no security whatsoever, make everything public, writeable, and browseable, and once you have all of the shares going, work on your permissions from there.

For the folders you want accessed by different users, you simply adjust the type of authentication.
 
Old 05-21-2009, 02:19 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Go to http://www.samba.org/, choose nearest mirror, then look at left hand menu for the HOWTO & 'By Example' sections.
 
Old 05-25-2009, 01:40 AM   #6
Tenno
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Quads and Chrism01. I will try all your suggestion and post back later.
 
  


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 on a windows xp home workgroup eladla Linux - Networking 1 07-03-2004 04:09 PM
Can't browse Windows Workgroup due to Samba? CanadianSlacker Linux - General 4 05-07-2004 07:49 PM
Samba with MS workgroup Ahuka Mandriva 2 09-20-2003 12:17 PM
help with samba workgroup Twistedpenguin Linux - Networking 1 03-04-2003 05:36 AM
connecting to windows workgroup using samba? linoob Linux - Newbie 7 10-23-2002 09:17 PM


All times are GMT -5. The time now is 05:24 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