[Samba] One account can access samba, another can't.

tms3 at tms3.com tms3 at tms3.com
Thu Jul 8 20:25:45 MDT 2010



SNIP
>
> michael at carter ~ $ smbclient //carter/homes/michael

Yep.  You need to use the home path stuff.

Alternatively you could, just to make it very easy

#Share for michael
[MICHEAL]

path = /samba/michael (etc.)

#Share for amy
[AMY]

path = /samba/amy (etc.)

Then the mount from cifs, or windoze is

\\server-name\michael or \\sever-name\amy
>
>
> Enter michael's password:
> Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6]
> tree connect failed: NT_STATUS_BAD_NETWORK_NAME
> michael at carter ~ $ exit
> logout
>
> carter ~ # su - amy
> amy at carter ~ $ smbclient //carter/homes/amy
> Enter amy's password:
> Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6]
> tree connect failed: NT_STATUS_BAD_NETWORK_NAME
> amy at carter ~ $ exit
> logout
>
> and here's the log:
> carter ~ # cat /var/log/samba/log.smbd
> [2010/07/08 14:24:52,  0] smbd/server.c:1073(main)
>    smbd version 3.4.6 started.
>    Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/07/08 14:24:52,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:24:52,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:24:52,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 14:24:52,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 14:32:44,  0] smbd/server.c:1073(main)
>    smbd version 3.4.6 started.
>    Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/07/08 14:32:45,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:32:45,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:32:45,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 14:32:45,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 14:33:32,  0] lib/util_sock.c:1564(matchname)
>    matchname: host name/address mismatch: ::ffff:192.168.1.2 !=
> carter.espersunited.com
> [2010/07/08 14:33:32,  0] lib/util_sock.c:1685(get_peer_name)
>    Matchname failed on carter.espersunited.com ::ffff:192.168.1.2
> [2010/07/08 14:33:32,  1] smbd/service.c:1063(make_connection_snum)
>    carter (::ffff:192.168.1.2) connect to service amy initially as 
> user
> amy (uid=1001, gid=100) (pid 21335)
> [2010/07/08 14:34:13,  1] smbd/service.c:1240(close_cnum)
>    carter (::ffff:192.168.1.2) closed connection to service amy
> [2010/07/08 14:34:26,  0] lib/util_sock.c:1564(matchname)
>    matchname: host name/address mismatch: ::ffff:192.168.1.2 !=
> carter.espersunited.com
> [2010/07/08 14:34:26,  0] lib/util_sock.c:1685(get_peer_name)
>    Matchname failed on carter.espersunited.com ::ffff:192.168.1.2
> [2010/07/08 14:34:26,  1] smbd/service.c:676(make_connection_snum)
>    create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
> [2010/07/08 14:43:10,  0] smbd/server.c:1073(main)
>    smbd version 3.4.6 started.
>    Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/07/08 14:43:10,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:43:10,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 14:43:10,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 14:43:10,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 20:35:51,  0] smbd/server.c:1073(main)
>    smbd version 3.4.6 started.
>    Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/07/08 20:35:51,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 20:35:51,  0] printing/print_cups.c:103(cups_connect)
>    Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No 
> such
> file or directory
> [2010/07/08 20:35:51,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 20:35:51,  0] smbd/server.c:457(smbd_open_one_socket)
>    smbd_open_once_socket: open_socket_in: Address already in use
> [2010/07/08 20:36:09,  0] lib/util_sock.c:1564(matchname)
>    matchname: host name/address mismatch: ::ffff:192.168.1.2 !=
> carter.espersunited.com
> [2010/07/08 20:36:09,  0] lib/util_sock.c:1685(get_peer_name)
>    Matchname failed on carter.espersunited.com ::ffff:192.168.1.2
> [2010/07/08 20:36:09,  0] smbd/service.c:1202(make_connection)
>    carter (::ffff:192.168.1.2) couldn't find service homes/michael
> [2010/07/08 20:36:34,  0] lib/util_sock.c:1564(matchname)
>    matchname: host name/address mismatch: ::ffff:192.168.1.2 !=
> carter.espersunited.com
> [2010/07/08 20:36:34,  0] lib/util_sock.c:1685(get_peer_name)
>    Matchname failed on carter.espersunited.com ::ffff:192.168.1.2
> [2010/07/08 20:36:34,  0] smbd/service.c:1202(make_connection)
>    carter (::ffff:192.168.1.2) couldn't find service homes/amy
>
> I do however appreciate your response.  Thank you for trying to help 
> me.
> -Michael Sullivan-
>
>
>



More information about the samba mailing list