Samba and Group permission
E K
ekgab-PkbjNfxxIARBDgjK7y7TUQ at public.gmane.org
Fri Oct 22 23:40:00 UTC 2004
well, be careful about usermod, it will remove the user from its current
group membership if the current groups that the user is member of are not
listed on the -G group list.
I created a small script to add a user to a group in addition to the current
ones at my work. If you think you will find the script helpful, I will post
it for you on Monday.
cheers,
EK
----Original Message Follows----
From: Arpad Toth <arpadtoth-FFYn/CNdgSA at public.gmane.org>
Reply-To: tlug-lxSQFCZeNF4 at public.gmane.org
To: tlug-lxSQFCZeNF4 at public.gmane.org
Subject: Re: [TLUG]: Samba and Group permission
Date: Fri, 22 Oct 2004 19:25:29 -0400 (EDT)
Hi,
I would create a group first,
i.e
groupadd share
add this grp to users you want to be under samba
share..
usermod -G share <user1>
usermod -G share <user2>
check if they have their own grp and the "share"
i.e
id <user1>, it should show all grps the uid has.
create /home/share or whatever u want...
now, change permission on /home/share
to 2770, chgrp share on it, so it might be
root:share /home/share
actually we did the biggest part :)
then create the share dir in smb.conf
bring up samba, enjoy...
regards,
RP
--- Martin Duclos <tchitow-PkbjNfxxIARBDgjK7y7TUQ at public.gmane.org> wrote:
> Martin Duclos wrote:
>
> >Hi All,
> >
> >I am running a samba 3.0.4-1 server. I want to
> create groups so that I can
> >control which user has access to which file. SO, I
> create a new group by
> >editing the /etc/group file. I add the users which
> are to belong to that
> >group. I modify the group permission on the files I
> want the users of said
> >group to have access to. One of the client machines
> is a linux machine (but
> >I suspect the same problem will show up on a win
> machine). What I'm seeing
> >is that the owner of the share only has it's
> deafult group associated with
> >it. I've been reading through the samba docs and
> man pages but I haven't
> >found a solution yet. There must be some way to
> have a user be part of
> >multiple groups and have samba respect those - or
> is it just wishful
> >thinking? Any ideas?
> >
> >Thanks
> >
> >Martin Duclos
> >
> >
> >--
> >The Toronto Linux Users Group. Meetings:
> http://tlug.ss.org
> >TLUG requests: Linux topics, No HTML, wrap text
> below 80 columns
> >How to UNSUBSCRIBE:
> http://tlug.ss.org/subscribe.shtml
>
> Try using ACL
>
> http://www.bluelightning.org/linux/samba_acl_howto/
>
> I fail to see how this how to would help. I've read
> all of it and I haven't
> seen anything that directly relates to this problem
> with an explanation and
> how to fix it. Any ideas as to how I can solve my
> problem?
>
> Martin
>
>
> --
> The Toronto Linux Users Group. Meetings:
> http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text
> below 80 columns
> How to UNSUBSCRIBE:
> http://tlug.ss.org/subscribe.shtml
>
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.com/
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list