mandriva

Ticket #96 (new defect)

Opened 2 years ago

Last modified 3 months ago

SAMBA shares edit

Reported by: cedric.delfosse@linbox.org Assigned to: cedric.delfosse@linbox.org
Priority: normal Milestone: 2.4.0
Component: python-mmc-samba Version:
Severity: normal Keywords:
Cc:

Description

When a share is modified, it is removed and then re-added with the modified values. This means:

  • any other share options added manually to smb.conf are lost
  • when adding a share, we can't go on error when creating an already existing share directory because maybe we are just re-adding it (just editing it).

A function called modShare (or editShare) should be written to fix this.

Attachments

Change History

01/09/08 17:21:41 changed by manuel.zach@gmail.com

I think it would be pretty ok, if you can create a share with an existing directory. To implement this we only need to catch the exception in addShare. try:

os.makedirs(path)

except OSError:

pass

An own modShare function would be also nice, which has the (optional) feature to modify the ACLs of the whole content.

01/17/08 11:23:41 changed by manuel.zach-oss@zach.st

modshare() should also address the following things:
- If the path of a share is changed, move share-directory to new location.
- Perhaps, modify the ACLs of the share content, if the ACLs of the share where changed.

03/13/08 09:21:09 changed by cdelfosse

  • milestone set to 2.4.0.

10/06/08 20:57:23 changed by anonymous

ml.mandriva.net/wws/arc/mds-users/2008-08/msg00009.html


Add/Change #96 (SAMBA shares edit)




Change Properties
Action