Re: [Samba] Unable to access share on Encrypted Partition

2011-09-26 Thread Phil Grass
snip

Just to give a quick/partial answer on thi*s o*ne. I downgraded my server to
opensuse 11.3 and samba 3.5.4 and it worked. Just to check that I hadn't
done anything wrong in the samba set-up I copied smb.conf to the 11.4
install and it did not work. I assume that something has changed/gone wrong
in the later version of samba, but since I'm no expert I'll leave that to
someone else to figure out.

rgds,
Phil
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Unable to access share on Encrypted Partition

2011-09-13 Thread Phil Grass
Hi,

I would like some help. I am trying to set-up a share on an Encrypted
Partition of my Home Server.

I'm using opensuse 11.4 with samba version
3.5.7-3.5.1-2573-SUSE-SL11.4-i386.

This is something that I know has worked with earlier versions of openSuSE
and samba.

My smb.conf looks like this:

==START==
[global]
workgroup = buffalonet
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
hosts allow = 192.168.127.0/24
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s
/bin/false %m$
domain logons = No
domain master = No
netbios name = Babar
security = user
wins support = No
snip

[narnia]
comment = Test of Narnia
inherit acls = No
path = /ncrypt/narnia/
read only = No
==END==
Access Rights to the directory /ncrypt/narnia are:

drwxrwx--- 2 philg users  4096 Sep  9 13:52 narnia

Enclosed is what I think is the relevant section of /var/log/samba/log.smbd

==START==
[2011/09/13 11:35:59,  0] smbd/server.c:1134(main)
  smbd version 3.5.7-3.5.1-2573-SUSE-SL11.4-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/09/13 11:35:59.623714,  0] smbd/server.c:1180(main)
  standard input is not a socket, assuming -D option
[2011/09/13 11:35:59.671738,  0] smbd/server.c:501(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2011/09/13 11:35:59.672583,  0] smbd/server.c:501(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2011/09/13 11:36:07.091956,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
[2011/09/13 11:36:07.107550,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
[2011/09/13 11:36:07.108381,  0] lib/access.c:410(check_access)
[2011/09/13 11:36:07.108570,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from  (0.0.0.0)
[2011/09/13 11:36:07.109033,  1] smbd/process.c:2295(smbd_process)
[2011/09/13 11:36:07.110236,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2011/09/13 11:36:07.110934,  0] lib/util_sock.c:680(write_data)
[2011/09/13 11:36:07.35,  0]
lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Connection
reset by peer
[2011/09/13 11:36:07.111609,  0] smbd/process.c:79(srv_send_smb)
  Error writing 5 bytes to client. -1. (Transport endpoint is not connected)
[2011/09/13 11:36:16.453388,  1] smbd/service.c:678(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
snip
[2011/09/13 11:38:13.546842,  1] smbd/service.c:678(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
[2011/09/13 11:38:59.731201,  1] smbd/server.c:282(remove_child_pid)
  Could not find child 8687 -- ignoring
[2011/09/13 11:39:34.551421,  1] smbd/service.c:1070(make_connection_snum)
  nataliexp (:::192.168.127.113) connect to service samba-pg initially
as user philg (uid=1000, gid=100) (pid 8728)
[2011/09/13 11:39:58.220923,  1] smbd/service.c:1070(make_connection_snum)
  nataliexp (:::192.168.127.113) connect to service narnia initially as
user philg (uid=1000, gid=100) (pid 8728)
==END==

samba-pg is another share on the same server. Access to this, and other
shares on the same server work as expected i.e. full RW access for account
philg.

The account philg was created with the commant

pdbedit -a -u philg

The error message on a Windows XP client is \\Babar\narnia is not
accessible. You might not have permission to use this network resource.
Contact the administrator of this server to find out if you have access
permissions. Access is denied

Accessing the share via an opensuse client also fails.

I hope I've given all the relevant information. Any help on this problem
would be much appreciated.

Rgds,
Phil
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba