[Samba] SAMBA - how to restrict read and write

fasil km fasilkaks at gmail.com
Sun Oct 16 03:30:14 MDT 2011


Hi Paul,
Thanks for the prompt reply :)

I have done the changes that you mentioned in your post. That doesn't help
either.

Let me put some more clarity to my scenario.

I have a centralized login using IPA. That means there won't be any local
system users.
Only we will have the home folders created for the respective users while
they login.

Now for example a user, testuser, wants to share a folder in his home folder
(/home/testuser/share) to another 4 users.
Out of the four users, one need to have write access. How could we setup
samba authentication using ldap?
If we could setup samba authentication using ldap, then we do not require
the creation of any samba users in the local system right?

Could you help me out to setup this share? Thanks in advance :)

Best Regards,
Fasil.

On Sun, Oct 16, 2011 at 8:23 AM, Paul Venzke <venzkep at srt.com> wrote:

>
>
> > -----Original Message-----
> > From: samba-bounces at lists.samba.org [mailto:samba-
> > bounces at lists.samba.org] On Behalf Of fasil km
> > Sent: Saturday, October 15, 2011 6:45 AM
> > To: samba at lists.samba.org
> > Subject: [Samba] SAMBA - how to restrict read and write
> >
> > Hi,
> > First of all let me thank you all for such a good support :)
> >
> > I am trying to create a share that can be accessed by few users. In
> > that, 2
> > users alone should have write permission.
> > please find below my smb.conf file
> >
> > [share]
> > comment = armand_share
> > path = /armand_share
> > writable = no
> > read only = no
> > browseable = yes
> > writelist = @sharewrite
> > valid users = carlo,isidro,philip,faisal,jojo,retish
> >
> <snip>
> >
> > --
> > Thanks & Regards,
> > Fasil
> > Mob: +966 55 8567449
> > --
>
> Fasil;
>
> The parameters "read only" and "writeable" are just inverses of one
> another.
> Thus "read only = no" means writeable = yes" and "writeable = no" means
> "read only = yes".  See: man smb.conf.  You can see the real parameters set
> on the share with "testparm".
>
> PV
>
>


-- 
Thanks & Regards,
Fasil
Mob: +966 55 8567449


More information about the samba mailing list