Modify

Ticket #2260 (closed defect: worksforme)

Opened 3 years ago

Last modified 2 months ago

Samba

Reported by: jpb Owned by: jacalvo@…
Milestone: 2.0.X Component: base
Severity: normal Keywords: ozndKuAUGBYucKn
Cc:

Description

I am unsure how to re-produce, but I did this and unless I can edit the postgress table with the samba share data in I dont hink the issue will self resolve.

I did make a share to my own filesystem directory /data/sharename

afterwards I saw that I could not access it due to lack of ownership and permissions therefore I deleted the share.

This delete was not complete for some reason and now if I change anything in filesharing the /etc/samba/smb.conf include some malformed entries. I can't get rid of these malformed entries because it is still debris in the database. I will need to remove it by hand from the tables, Please supply information for manual removal. I know SQL pretty well.

Malformed Share:

[/data/sharename]
 comment = "sharename share directory"
 path = /home/samba/groups/sharegroup
 valid users = @"sharegroup"
 force group = "sharegroup"
 force create mode = 0660
 force directory mode = 0660
 printable = No
 read only = No
 browseable = Yes
 vfs objects = full_audit vscan-clamav recycle
 vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
 recycle: versions = Yes
 recycle: repository = RecycleBin
 recycle: keeptree = Yes
 recycle: excludedir = /tmp|/var/tmp
 recycle: directory_mode = 0700


Correct share

[sharename]
 comment = share Data
 path = /data/sharename
 valid users = @"sharegroup", "jpb"
 read list =
 write list = @"sharegroup"
 admin users = "jpb"
 read only = No
 browseable = Yes
 force create mode = 0660
 force directory mode = 0660
 vfs objects = full_audit vscan-clamav recycle
 vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
 recycle: versions = Yes
 recycle: repository = RecycleBin
 recycle: keeptree = Yes
 recycle: excludedir = /tmp|/var/tmp
 recycle: directory_mode = 0700

Attachments

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by jacalvo@…

Samba has nothing to do with PostgreSQL, the Zentyal configuration is stored using redis...

As you can see here:

 http://code.google.com/p/redis/wiki/ProtocolSpecification

It's very different from SQL...

The shares information is stored under the /ebox/modules/samba keys.

comment:2 in reply to: ↑ 1 Changed 3 years ago by anonymous

Replying to jacalvo@ebox-platform.com:

Samba has nothing to do with PostgreSQL, the Zentyal configuration is stored using redis...

As you can see here:

 http://code.google.com/p/redis/wiki/ProtocolSpecification

It's very different from SQL...

The shares information is stored under the /ebox/modules/samba keys.

Looks like I'll need to google some bit, Just make sure the code dont leave briken share info after delted operations

Thanx

comment:3 Changed 3 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to worksforme

Reopen if you can provide info on how to reproduce it.

comment:4 Changed 2 months ago by Open

  • Keywords ozndKuAUGBYucKn added
  • Milestone set to 2.0.X
  1. 戒指 K:我不明白為何一塊小小的炭可以對女性有這麼大的魔力...L:醉翁之意不在酒 戒指我可以自己買 但愛人送的不一樣 MO:對男人和女人 戒指都是一種炫耀 戴哪個如是 買哪個也如是 5. 寵物 K:我已經是你的寵物了 還要多一個嗎?L:嘩 看來卡夫卡哄女孩很有一手 我認為永不 永不 永不將寵物當作禮物 請尊重生命 MO:我已經是我女友的巴庫 Kuromi的隨身座駕 9. 化妝品 K:如果你的男人送你化妝品 那麼只說明了: (1)你很難看 或者 (2)他愛男人 L:這方面男人最好不要插手 除非你本身是Lancome的senior make-up artist MO:我同意L所講 但我最愛女孩子不化粧的13. 巧克力 K:她吃了後會很...L:工作很累的時候 我會買巧克力犒賞自己 是 我只愛Godiva 若這會把我吃胖 那我一定很有錢 MO: Godiva的熱Cocoa 高度推薦 19. 情詩 K:不想提 L:在web2.0世界 同一首情詩 可以reuse & rcycele 這是你不想提它的原因嗎 MO: 大鑊 我是寫情詩的老土怪20. 筆記型電腦(E時代的秘密武器) K: WTF?L:最好不要送科技的東西給對方 因為更新太快 很容易過氣 哪像鑽石 不過 MacBook例外 我愛MacBook MO: 我和我女友是Macbook愛用者 24. 車 K:對不起 女人和靚車只能分開駕.......存在 L:很明顯 與原作者相反 寫到這裏 卡夫卡的靈感仍然相當澎湃 MO: 我不愛車 我女友愛跑車 25. 皮草 K:愛你愛到殺死它!L: 亦舒說 皮草要穿得像牛仔褲那樣隨意才有韻味 示範人物 張曼玉 MO: 我是保護動物分子 請不要穿皮草
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.