Bug 10385 - [homes] share don't work as documented/expected
[homes] share don't work as documented/expected
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
4.1.4
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
http://www.samba.org/samba/docs/man/m...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-16 17:17 UTC by Marcio Merlone
Modified: 2014-01-16 17:21 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'.