With Samba 4.2.10 I wish to create one folder share so that Windows clients can access to it by typing only the IP address or netbios name of server, e.g. \\10.56.23.22 and the window will show immediately file list. I read Samba doc and it’s necessary to define every share by symbol "[ section ]” but if I defined [test] share I woull access to it by typing \\ 10.56.23.22\test and this one it’s not my scope. Suggestions please?
Hello, Am 23.10.2016 um 09:47 schrieb Sampei via samba:> With Samba 4.2.10 I wish to create one folder share so that > Windows clients can access to it by typing only the IP address > or netbios name of server, e.g. \\10.56.23.22 and the > window will show immediately file list. > > I read Samba doc and it’s necessary to define every share > by symbol "[ section ]” but if I defined [test] share I > woull access to it by typing \\ 10.56.23.22\test and > this one it’s not my scope. Suggestions please?This is not possible to set up. What's wrong with \\host_name\share or mapping the share for the user? Regards, Marc
Because I’m migrating Windows file server to new Linux one. In Windows environment I shared specific folder (c:\share) and everything, which is contained inside, is accessible directly typing \\10.56.23.22 <smb://10.56.23.22> (showing all subfolders and all files) e.g. \\10.56.23.22\test.exe <smb://10.56.23.22/test.exe> and it’s not necessary to introduce sharing name e.g. \\10.56.23.22\newshare\test.exe <smb://10.56.23.22/newshare/test.exe> I have website which reference file server path and I should to change every path, replacing \\10.56.23.22 <smb://10.56.23.22> with the new sharing resource, e.g. \\10.56.23.22\newshare <smb://10.56.23.22/newshare>, which I should create on Samba.> On 23 Oct 2016, at 12:19, Marc Muehlfeld via samba <samba at lists.samba.org> wrote: > > Hello, > > Am 23.10.2016 um 09:47 schrieb Sampei via samba: >> With Samba 4.2.10 I wish to create one folder share so that >> Windows clients can access to it by typing only the IP address >> or netbios name of server, e.g. \\10.56.23.22 and the >> window will show immediately file list. >> >> I read Samba doc and it’s necessary to define every share >> by symbol "[ section ]” but if I defined [test] share I >> woull access to it by typing \\ 10.56.23.22\test and >> this one it’s not my scope. Suggestions please? > > This is not possible to set up. > > What's wrong with \\host_name\share or mapping the share for the user? > > > Regards, > Marc > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On 15:52:26 wrote Sampei via samba:> With Samba 4.2.10 I wish to create one folder share so that Windows > clients can access to it by typing only the IP address or netbios > name of server, e.g. \\10.56.23.22 and the window will show > immediately file list. I read Samba doc and it’s necessary to define > every share by symbol "[ section ]” but if I defined [test] share I > woull access to it by typing \\ 10.56.23.22\test and this one it’s > not my scope. Suggestions please?may be RT(F)M helps: default service (G) This parameter specifies the name of a service which will be connected to if the service actually requested cannot be found. Note that the square brackets are NOT given in the parameter value (see example below). There is no default value for this parameter. If this parameter is not given, attempting to connect to a nonexistent service results in an error. Typically the default service would be a guest ok, read-only service. Also note that the apparent service name will be changed to equal that of the requested service, this is very useful as it allows you to use macros like %S to make a wildcard service. Note also that any "_" characters in the name of the service used in the default service will get mapped to a "/". This allows for interesting things. Default: default service i.e. # grep 'default service' /etc/samba/smb.conf default service = ftp $ smbclient -U % -c 'ls ' //192.168.231.254/ $ smbclient -U % -c 'ls ' //192.168.231.254/. Domain=[KRONPRINZ] OS=[Unix] Server=[Samba 3.5.6] . D 0 Tue Apr 26 18:10:21 2016 .. D 0 Tue Dec 10 10:56:46 2013 win7_fix.cmd 188 Tue Jan 20 13:42:24 2015 hjede.wab 214315 Wed Feb 3 13:49:51 2010 So smbclient requires the share name '.', may be windows clients don't -- Gruss Harry Jede