Enhancement #2573

Ibay contents inherit default owner

Added by Davide Principi over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:01/10/2014
Priority:NormalDue date:01/10/2014
Assignee:-% Done:

100%

Category:nethserver-ibays
Target version:v6.5-beta3
Resolution: NEEDINFO:No

Description

  • Samba maps the "complete control" permission to the user set as unix file owner.
  • To set ACLs properly on an ibay subfolder from a Windows client we need the directory ownership

With admin in LDAP (#2492) we can set admin as default ibay owner. Moreover, the "rest permissions" action must be changed to propagate the ibay owner to its contents: where admin owner is not wanted we can use chown from console.


Related issues

Related to NethServer 6 - Feature #2492: Move admin user in LDAP DB CLOSED 12/17/2013 12/19/2013

Associated revisions

Revision 03c3c7f2
Added by Davide Principi over 7 years ago

Preserve and propagate ibay owner to its contents. Refs #2573

Revision 1cc3e82f
Added by Davide Principi over 7 years ago

Change default ibay owner from root to admin. Refs #2573

History

#1 Updated by Davide Principi over 7 years ago

  • Due date set to 01/10/2014
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 01/10/2014
  • % Done changed from 20 to 30
  • Estimated time set to 2.00

#2 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

  • Create an ibay iba1, add some subdirs and files
  • Create a user account myuser
  • Change ibay user owner:
        # chown myuser /var/lib/nethserver/ibay/iba1
    
  • Reset ibay permissions from server-manager web UI

Subdirs and files owner must have changed to myuser.

#3 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-lib-1.4.0-3.0gitce8e11f1.ns6.noarch.rpm
nethserver-base-1.5.0-11.0git12b07501.ns6.noarch.rpm
nethserver-directory-1.3.0-12.0git01b2300a.ns6.noarch.rpm
nethserver-nethgui-1.3.0-5.0gitb985d576.ns6.noarch.rpm
nethserver-samba-1.4.0-3.0git4fc31495.ns6.noarch.rpm
nethserver-ibays-2.0.1-6.0git6a7d6544.ns6.noarch.rpm
nethserver-ibays-2.0.1-7.0git1d01b49f.ns6.noarch.rpm

#4 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#5 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Created shared folder "test".

[root@test ibay]# chown admin test/pippo 
[root@test ibay]# ll test/*
-rw-rw-r--+ 1 admin locals 0 Feb  4 16:08 test/pippo
[root@test ibay]# chown davidem test
[root@test ibay]# ll test/*
-rw-rw-r--+ 1 davidem locals 0 Feb  4 16:08 test/pippo

Marking as VERIFIED.

#6 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Released in nethserver/6.5/base repository.

Also available in: Atom PDF