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 03-18-2008, 12:04 PM   #1
finsh
Member
 
Registered: Jan 2006
Posts: 162

Rep: Reputation: 16
samba and other share


Hi all


I want to create files on Samba so that users can see files.

I mean that each user have a special files on the Samba could not see one other.


Greetings to all
 
Old 03-18-2008, 07:58 PM   #2
merize147
Member
 
Registered: Oct 2004
Location: Where ever I put down Lappie
Distribution: Dragged kicking and screaming to RHEL
Posts: 132

Rep: Reputation: 15
Sounds like you need to start here:

LinuxQuestions.org > Forums > Linux > Linux - Newbie > Please READ this before posting!
 
Old 03-19-2008, 04:42 AM   #3
finsh
Member
 
Registered: Jan 2006
Posts: 162

Original Poster
Rep: Reputation: 16
Samba for server.

Because of this i put the question here and not elsewhere
 
Old 03-19-2008, 05:50 AM   #4
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
Well Dear

I think you would need a PDC (Primary Domain Controller) try to find documentation on www.tldp.org for SAMBA PDC


thanks
 
Old 03-19-2008, 06:08 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Each user can have their own home directory and you could use "security = user". Their files inside their directories will then be protected from being read by other users unless the permissions allow it. You could set up a their shares like either of these:
Code:
[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        create mask = 0600
        directory mask = 0700
        store dos attributes = Yes

[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
If a user enters the [profiles] share, they will enter there own home directory. That is what the (%H) stands for. The user won't be able to enter a parent directory (/home) and even notice that there are other users.

A user opening the [users] share will see the home directories of all of the users. The user can only enter the his or her own directory, unless you create permissions that will allow it, or the user changes the permissions on their own home directory by changing the "other" permissions bits or uses setfacl.

Look for a samba-doc package or check if the samba package installed some books in either /usr/share/doc/samba-<version> or in /usr/share/doc/packages/samba/ depending on your distribution. There are three pdf or ps documents there: Samba 3 by Example, Samba 3 HOWTO & Reference and Samba 3 Developers Guide. The Samba package also installs the 2nd edition of Using Samba (in html form).

Also, please put the distribution you use in your user profile. Sometimes knowing which distro you have is important. ( I didn't know the location of the samba documentation because I didn't know your distro. )

---

Many particulars such as whether you need to set it up as a pdc member or how users authenticate depend on information you haven't supplied on how you have your network setup, how many users, whether they are Windows Users, Linux/Unix users, or a mixture. Does your network already have an NT style PDC or do you use Active Directory?

Last edited by jschiwal; 03-19-2008 at 06:17 AM.
 
Old 03-19-2008, 12:18 PM   #6
finsh
Member
 
Registered: Jan 2006
Posts: 162

Original Poster
Rep: Reputation: 16
First let me tell you what I have. Then I will tell you what I am trying to do.

I am currently running Suse 10.3
I also have LDAP working, and I can use that to authenticate users on my network
I only have a couple users now, but I expect that to grow over the next couple of months

I want to do the following:

1. I want to use my LDAP server, which is sitting on the same machine, as the user database.
2. I want to create a common share that all my users have read/write access too.
3. I want to create a number of shares that only specific users have read/write too.
4. I want to create a number of shares that only specific group have read/write too.
5. I want my to give each user an individual home directory that they can use to store their personal files too.

I am currently using the yast tools in suse to configure both LDAP and SAMBA. I am familiar though with some of the config files and i am not shy to edit them whenever the need arise.

I would also appreciate any reading material that can give more power over my Linux box.

Thanks

Last edited by finsh; 03-19-2008 at 01:38 PM.
 
Old 03-19-2008, 01:58 PM   #7
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
Quote:
Originally Posted by finsh View Post
First let me tell you what I have. Then I will tell you what I am trying to do.

I am currently running Suse 10.3
I also have LDAP working, and I can use that to authenticate users on my network
I only have a couple users now, but I expect that to grow over the next couple of months

I want to do the following:

1. I want to use my LDAP server, which is sitting on the same machine, as the user database.
2. I want to create a common share that all my users have read/write access too.
3. I want to create a number of shares that only specific users have read/write too.
4. I want to create a number of shares that only specific group have read/write too.
5. I want my to give each user an individual home directory that they can use to store their personal files too.

I am currently using the yast tools in suse to configure both LDAP and SAMBA. I am familiar though with some of the config files and i am not shy to edit them whenever the need arise.

I would also appreciate any reading material that can give more power over my Linux box.

Thanks
i am actually interested in soing exactly the same - only its for my home network so , not much need to go wildly complex so i havent added ldap at all...
have u found any solution as to how to go about configuring ur samba?
 
Old 03-20-2008, 04:00 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The Samba 3 by Example has a LDAP based configuration you can use as a model. Also, look at the 3rd Edition of "Using Samba" in the book store. They will walk you through the configurations. Don't be shy of using the YaST configuration wizards. On a previous thread I pointed out the Authentication type wizard to a user wanting to join the AD network at work. There is also an option for LDAP as well as AD. Perhaps also putting SuSE 10.3 on a laptop and running the wizard will generate the config files on the client you can use to model other Linux clients on.

Using ldap for authentication complicates things a lot more than what your original question indicates. A member of the Network Admin group can control which groups can access a share using the Windows Security dailog. Samba uses "setfacl" to set the acl's of the directories being shared.

Also install the samba-doc package for the smbldap-tools & idealx documentation and sample configurations.
Code:
/usr/share/doc/packages/samba/examples/LDAP/smbldap-tools-0.9.2> ls
CONTRIBUTORS  INFRA     TODO          smbldap-groupadd   smbldap-passwd      smbldap-userdel   smbldap.conf
COPYING       INSTALL   configure.pl  smbldap-groupdel   smbldap-populate    smbldap-userinfo  smbldap_bind.conf
ChangeLog     Makefile  doc           smbldap-groupmod   smbldap-tools.spec  smbldap-usermod   smbldap_tools.pm
FILES         README    smb.conf      smbldap-groupshow  smbldap-useradd     smbldap-usershow
Code:
 ls doc
html                             smbldap-migrate-pwdump-groups  smbldap-migrate-unix-groups
smbldap-migrate-pwdump-accounts  smbldap-migrate-unix-accounts  smbldap-tools.pdf
Sorry I couldn't be of more help but using ldap is beyond what I have done before at home.

One thing to consider is that if you use a domain, you are eliminating clients with XP Home computers.
Microsoft removed domain login support for XP. You need XP pro instead.
 
Old 03-22-2008, 12:56 PM   #9
finsh
Member
 
Registered: Jan 2006
Posts: 162

Original Poster
Rep: Reputation: 16
Mr. jschiwal i will read more about it and thank you for name book.

Mr. nass i will tell you if there is a new development.



Regards for all
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
show the samba share but can't mount the share badall Linux - Server 3 05-30-2007 04:24 AM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 12:28 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

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

All times are GMT -5. The time now is 01:16 PM.

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