mandriva

Ticket #96 (new defect)

Opened 3 years ago

Last modified 3 months ago

SAMBA shares edit

Reported by: cedric.delfosse@… Owned by: cedric.delfosse@…
Priority: normal Milestone: To be done
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

Changed 3 years ago by manuel.zach@…

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.

Changed 3 years ago by manuel.zach-oss@…

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.

Changed 2 years ago by cdelfosse

  • milestone set to 2.4.0

Changed 22 months ago by anonymous

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

Changed 3 months ago by cdelfosse

  • milestone changed from 2.4.0 to To be done

Add/Change #96 (SAMBA shares edit)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.