LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   samba and other share (https://www.linuxquestions.org/questions/linux-server-73/samba-and-other-share-628962/)

finsh 03-18-2008 12:04 PM

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

merize147 03-18-2008 07:58 PM

Sounds like you need to start here:

LinuxQuestions.org > Forums > Linux > Linux - Newbie > Please READ this before posting!

finsh 03-19-2008 04:42 AM

Samba for server.

Because of this i put the question here and not elsewhere

shahz 03-19-2008 05:50 AM

Well Dear

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


thanks

jschiwal 03-19-2008 06:08 AM

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?

finsh 03-19-2008 12:18 PM

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

nass 03-19-2008 01:58 PM

Quote:

Originally Posted by finsh (Post 3094002)
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?

jschiwal 03-20-2008 04:00 AM

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.

finsh 03-22-2008 12:56 PM

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


All times are GMT -5. The time now is 08:54 AM.