<netAPI> [Guenther-sir] NetShareAdd not working samba 3.5.8
TAKAHASHI Motonobu
monyo at monyo.com
Tue May 3 03:42:44 MDT 2011
From: okmanoj at indiatimes.com
Date: Tue, 3 May 2011 11:50:01 +0530 (IST)
> I am trying to create test application in linux which will dynamically add samba file share to local Linux.
(snip)
> My reg conf looks like
(snip)
> add share command = /home/manoj/project/installed/samba-3.5.8/bin/net conf addshare
>
> When I ran samba test binary share_add "127.0.0.1" "FS3" "/home"
>
> It returned "WERR_ACCESS_DENIED"
>
> While debugging i found in logs
(snip)
> means "/home/manoj/project/installed/samba-3.5.8/bin/net conf addshare "/home/manoj/project/config/smb.conf" "fs3" "/home" "Test share created via NetApi" 0"
>
> however correct format for "net conf addshare" is /home/manoj/project/installed/samba-3.5.8/bin/net conf addshare "fs5" "/home" "writeable=n" "guest_ok=y" "Test share created via NetApi"
(snip)
> I believe samba source will NOT have this basic problem, May be I am doing something wrong.
"add share command" parameter is not intended to work with "net conf
addshare" nor "net usershare". You need to create a custom script
suitable for "add share command". See smb.conf(5).
* smb.conf(5) included in Samba 3.5.8 is broken, look at another
version's.
---
TAKAHASHI Motonobu <monyo at samba.gr.jp>
More information about the samba-technical
mailing list