Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-20-2009, 12:28 AM   #1
LQ Newbie
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Question Samba and Windows workgroup


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, 09:56 AM   #2
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
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-20-2009, 11:21 PM   #3
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, 12:19 AM   #4
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, 01:19 AM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,802

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Go to, choose nearest mirror, then look at left hand menu for the HOWTO & 'By Example' sections.
Old 05-25-2009, 12:40 AM   #6
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.


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 03:09 PM
Can't browse Windows Workgroup due to Samba? CanadianSlacker Linux - General 4 05-07-2004 06:49 PM
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
connecting to windows workgroup using samba? linoob Linux - Newbie 7 10-23-2002 08:17 PM > Forums > Linux Forums > Linux - Newbie

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

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