Bluehost.com Web Hosting $6.95

[Samba] Adding users to dirs, acl

This is a discussion on [Samba] Adding users to dirs, acl within the Samba forums, part of the Networking and Network Related category; I have some users I was to allow access to a dir, I know I will need to setup ACL'...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-28-2008
Keith Sudbury
 
Posts: n/a
Default [Samba] Adding users to dirs, acl

I have some users I was to allow access to a dir, I know I will need to
setup ACL's however when this is done can I add users to dirs like I can
in windows?

Thanks

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 08-28-2008
John Drescher
 
Posts: n/a
Default Re: [Samba] Adding users to dirs, acl

On Thu, Aug 28, 2008 at 5:51 AM, Keith Sudbury
<keith-lists@netzensolutions.com> wrote:
> I have some users I was to allow access to a dir, I know I will need to
> setup ACL's however when this is done can I add users to dirs like I can in
> windows?
>

Yes, this works for me. Make sure your idmap is working.

Here is what works for me on a test domain called YOUR_DOMAIN

[global]
idmap domains = YOUR_DOMAIN TRUSTEDDOMAINS
idmap config YOUR_DOMAIN:backend = nss
idmap config YOUR_DOMAIN:readonly = yes
idmap config TRUSTEDDOMAINS:default = yes
idmap config TRUSTEDDOMAINS:backend = tdb
idmap config TRUSTEDDOMAINS:range = 10000 - 50000
idmap alloc backend = tdb
idmap alloc config:range = 10000 - 50000

BTW, I am using ldap with this PDC
[global]
add user script = /usr/sbin/smbldap-useradd -m "%u"
delete user script = /usr/sbin/userdel -r "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"

ldap admin dn = cn=Manager,dc=example,dc=net
ldap delete dn = Yes
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=example,dc=net
ldap ssl = no
ldap user suffix = ou=Users

ldapsam:trusted = yes
ldapsam:editposix = yes




John
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #3 (permalink)  
Old 08-28-2008
Keith Sudbury
 
Posts: n/a
Default Re: [Samba] Adding users to dirs, acl

John Drescher wrote:
> On Thu, Aug 28, 2008 at 5:51 AM, Keith Sudbury
> <keith-lists@netzensolutions.com> wrote:
>
>> I have some users I was to allow access to a dir, I know I will need to
>> setup ACL's however when this is done can I add users to dirs like I can in
>> windows?
>>
>>

> Yes, this works for me. Make sure your idmap is working.
>
> Here is what works for me on a test domain called YOUR_DOMAIN
>
> [global]
> idmap domains = YOUR_DOMAIN TRUSTEDDOMAINS
> idmap config YOUR_DOMAIN:backend = nss
> idmap config YOUR_DOMAIN:readonly = yes
> idmap config TRUSTEDDOMAINS:default = yes
> idmap config TRUSTEDDOMAINS:backend = tdb
> idmap config TRUSTEDDOMAINS:range = 10000 - 50000
> idmap alloc backend = tdb
> idmap alloc config:range = 10000 - 50000
>
> BTW, I am using ldap with this PDC
> [global]
> add user script = /usr/sbin/smbldap-useradd -m "%u"
> delete user script = /usr/sbin/userdel -r "%u"
> add group script = /usr/sbin/smbldap-groupadd -p "%g"
> delete group script = /usr/sbin/groupdel "%g"
> add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
> delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
> set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
> add machine script = /usr/sbin/smbldap-useradd -w "%u"
>
> ldap admin dn = cn=Manager,dc=example,dc=net
> ldap delete dn = Yes
> ldap group suffix = ou=Groups
> ldap idmap suffix = ou=Idmap
> ldap machine suffix = ou=Computers
> ldap suffix = dc=example,dc=net
> ldap ssl = no
> ldap user suffix = ou=Users
>
> ldapsam:trusted = yes
> ldapsam:editposix = yes
>
>
>
>
> John
>


Ah I am using winbind, I can chown dir's with domain users etc. I can
even set rwx etc with setfacl -m u: "DOMAIN\user":rwx file

However it does not seem to see the acls from windows... also i can't
edit them from the windows server via the security tab it gives me
access denied, any ideas why? do I need to map my AD administrator
account to root so it will have perms to edit file system perms?? Or am
I missing some thing... Would be great to be able to edit the perms from
Windows tbh.

Cheers
Keith

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #4 (permalink)  
Old 08-28-2008
John Drescher
 
Posts: n/a
Default Re: [Samba] Adding users to dirs, acl

> Ah I am using winbind,

You still need a working idmap.

>I can chown dir's with domain users etc. I can even
> set rwx etc with setfacl -m u: "DOMAIN\user":rwx file
>
> However it does not seem to see the acls from windows... also i can't edit
> them from the windows server via the security tab it gives me access denied,
> any ideas why?


Check your samba logs. You will probably see can not allocate gid

John
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0