Bug 10385 - [homes] share don't work as documented/expected
Summary: [homes] share don't work as documented/expected
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.1.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL: http://www.samba.org/samba/docs/man/m...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 17:17 UTC by Marcio Merlone
Modified: 2019-05-16 00:43 UTC (History)
1 user (show)

See Also:


Attachments
Windows screenshot (72.22 KB, image/png)
2014-01-16 17:20 UTC, Marcio Merlone
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcio Merlone 2014-01-16 17:17:57 UTC
As stated in http://www.samba.org/samba/docs/man/manpages/smb.conf.5.html#HOMESECT:

"When the connection request is made, the existing sections are scanned. If a match is found, it is used. If no match is found, the requested section name is treated as a username and looked up in the local password file. If the name exists and the correct password has been given, a share is created by cloning the [homes] section."

If set a share like:
[homes]
    read only = No
    valid users = %S
    browseable = No

... when browsing the server from a windows machine there is no 'username' share, but a 'homes' share. If try to access the share the log shows:

[2014/01/16 15:15:44.812051,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.816750,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.829645,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.831100,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.832963,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.837756,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.840274,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.841920,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]
[2014/01/16 15:15:44.852534,  0] ../source4/ntvfs/posix/vfs_posix.c:236(pvfs_connect)
  pvfs_connect: '' is not a directory, when connecting to [HOMES]

... when try to access \\server\marcio.merlone:

[2014/01/16 15:16:29.254298,  0] ../source4/smb_server/smb/service.c:127(make_connection)
  make_connection: couldn't find service MARCIO.MERLONE: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2014/01/16 15:16:29.257436,  0] ../source4/smb_server/smb/service.c:127(make_connection)
  make_connection: couldn't find service MARCIO.MERLONE: NT_STATUS_OBJECT_NAME_NOT_FOUND

Tested on a Ubuntu 12.04 with Sernet packages.
Comment 1 Marcio Merlone 2014-01-16 17:20:12 UTC
Created attachment 9600 [details]
Windows screenshot

The share 'homes' should be 'marcio.merlone'.
Comment 2 Andrew Bartlett 2019-05-16 00:43:56 UTC
This is with the ntvfs file server, which is a developer-only feature and not expected to support all smbd features. 

Closing as WONTFIX, sorry.

Modern Samba versions do not include this unless you are a developer.  See https://wiki.samba.org/index.php/Migrating_the_ntvfs_File_Server_Back_End_to_s3fs