[Samba] samba 3 - getting rid of some logfile errors

2012-08-01 Thread Jürgen Echter

Hi,

i have a lot of entries in my logs which i can't solve, but everything 
works as expected.


my setup:

samba pdc - bacula
samba bdc - mule
Ubuntu 10.04-LTS Server
samba 3.4.7

log file entries:

Aug  1 08:25:40 bacula smbd[23854]:   canonicalize_connect_path failed for 
service alex, path /\\mule\alex
Aug  1 08:25:41 bacula smbd[23854]: [2012/08/01 08:25:41,  0] 
smbd/service.c:988(make_connection_snum)
Aug  1 08:25:41 bacula smbd[23854]:   canonicalize_connect_path failed for 
service alex, path /\\mule\alex
Aug  1 08:25:44 bacula smbd[24003]: [2012/08/01 08:25:44,  0] 
lib/util_sock.c:1498(get_peer_addr_internal)
Aug  1 08:25:44 bacula smbd[24003]:   getpeername failed. Error was Transport 
endpoint is not connected
Aug  1 08:25:44 bacula smbd[24003]: [2012/08/01 08:25:44,  0] 
lib/util_sock.c:743(write_data)
Aug  1 08:25:44 bacula smbd[24003]: [2012/08/01 08:25:44,  0] 
lib/util_sock.c:1498(get_peer_addr_internal)
Aug  1 08:25:44 bacula smbd[24003]:   getpeername failed. Error was Transport 
endpoint is not connected
Aug  1 08:25:44 bacula smbd[24003]:   write_data: write failure in writing to 
client 0.0.0.0. Error Connection reset by peer
Aug  1 08:25:44 bacula smbd[24003]: [2012/08/01 08:25:44,  0] 
smbd/process.c:62(srv_send_smb)
Aug  1 08:25:44 bacula smbd[24003]:   Error writing 4 bytes to client. -1. 
(Transport endpoint is not connected)
Aug  1 08:26:07 bacula smbd[24002]: [2012/08/01 08:26:07,  0] 
lib/util_sock.c:539(read_fd_with_timeout)
Aug  1 08:26:07 bacula smbd[24002]: [2012/08/01 08:26:07,  0] 
lib/util_sock.c:1498(get_peer_addr_internal)
Aug  1 08:26:07 bacula smbd[24002]:   getpeername failed. Error was Transport 
endpoint is not connected
Aug  1 08:26:07 bacula smbd[24002]:   read_fd_with_timeout: client 0.0.0.0 read 
error = Connection reset by peer.

any hints how to resolve this?

thanks

juergen


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


Re: [Samba] samba 3.5.6 as PDC & LDAP - roaming profile problem

2012-02-24 Thread Jürgen Echter

Am 23.02.2012 14:06, schrieb Adam Sienkiewicz:

Hi;

It didn't help. Now for /profiles I have permissions:

drwxrwxrwt 13 root root  4096 Feb 17 20:05 profiles

and if user login to domain firth time its profile dir is created but
nothing else ...

Now /profiles looks lie:

/profiles
├── [drwx-- czarus   Domain U]  czarus
├── [drwx-- domainad domainad]  domainadm
├── [drwxrwxrwx jas  Domain A]  jas
├── [drwx-- root root]  root
├── [drwx-- sambaroo Domain U]  sambaroot2
├── [drwx-- sambaroo Domain U]  sambaroot2.V2
├── [drwx-- sambaroo Domain U]  sambaroot3
├── [drwx-- sambaroo Domain U]  sambaroot3.V2
├── [drwx-- test2Domain U]  test2
│   └── [drwx-- test2Domain U]  dfd
├── [drwx-- test5domainad]  test5



2012/2/23 steve


I googled few days I tryed all what I can find but with no luck. It will
be great if somebody could help me with this because I have no idea what is
a root cause of my issue.
Hi
The cause is usually because of wrong permissions on the profiles folder.
Try the big hammer first:
Backup /profiles
chmod -R 0777 /profiles
comment out:

create mask = 0600
directory mask = 0700
create a new user
login as the new user. That user should have his profile OK.

Then put the security back one stage at a time until it doesn't work again.
HTH
Steve
--
To unsubscribe from this list go to the following URL and read the
instructions:  
https://lists.samba.org/**mailman/options/samba


Hi,

i got this in my smb.conf (local smb server)

[profile]
   comment = Profildateien
   path = /DATEN/samba/profile
   guest ok = yes
   browseable = no
   create mask = 0600
   directory mask = 0700
   writeable = yes
   profile acls = yes
   valid users = %U @"Domain Admins"
   force user = %U
   csc policy = disable

and this on bdc (backup domain controller)

[profile]
   comment = Profildateien
   path = \\mule\profile
   guest ok = yes
   browseable = no
   create mask = 0600
   directory mask = 0700
   writeable = yes
   profile acls = yes
   valid users = %U @"Domain Admins"
   force user = %U
   csc policy = disable


pdbedit -L -v says (for one user here)

---
Unix username:stefan
NT username:  stefan
Account Flags:[UX ]
User SID: S-1-5-21-3842863818-2180709222-141296495-3436
Primary Group SID:S-1-5-21-3842863818-2180709222-141296495-513
Full Name:Stefan
Home Directory:   \\mule\stefan
HomeDir Drive:H:
Logon Script: stefan.bat
Profile Path: \\mule\profile\stefan
Domain:   WORKGROUP
Account desc:
Workstations:
Munged dial:
Logon time:   0
Logoff time:  never
Kickoff time: 0
Password last set:Do, 20 Okt 2011 18:18:19 CEST
Password can change:  Do, 20 Okt 2011 18:18:19 CEST
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours : FF
---

maybe you can see anything related to you. :)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Remote Desktop Users Group

2012-02-07 Thread Jürgen Echter

   Hi,

could somebody tell me how to add the group 'Remote Desktop Users' to my 
domain?


So i can add users there to login into machines remotely.

thanks

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


Re: [Samba] LDAP issues

2012-01-26 Thread Jürgen Echter

Am 26.01.2012 17:51, schrieb Alex Moen:
Forgot to add... If I create a Unix account, and add it to the local 
smbpasswd subsystem, it works fine.  I can log in using the 
credentials that I create.  So, samba is working, and linux/ldap is 
working, but samba/ldap has issues...



Alex Moen
Network Services Technician II
North Dakota Telephone Company
701-662-6481

On Jan 26, 2012, at 9:54 AM, Alex Moen wrote:


Centos 6
Samba 3
smbldap-tools installed.

LDAP directory not on local host.

Example user LDIF:

dn: uid=testu...@mydomain.com,ou=mydomain,o=ndtc
mailHost: mailserver.mydomain.com
loginShell: /bin/bash
gidNumber: 500
uidNumber: 53112
uid: testu...@mydomain.com
sn: user
cn: test user
mail: testu...@mydomain.com
homeDirectory: /cust/mydomain/users/testuser
gecos: test user,,662-6123
objectClass: mirapointmailuser
objectClass: inetorgperson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSAMAccount
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaSID: S-1-5-21-3311107553-3899660464-2674327009-107224
sambaAcctFlags: [UX]
sambaHomeDrive: F:
sambaHomePath: \\ndtc-fs\cust\mydomain\users
sambaPwdLastSet: 1327615956
sambaPwdMustChange: 2147483647

getent passwd shows:

testu...@mydomain.com:x:53112:500:test 
user,,662-6123:/cust/mydomain/users/testuser:/bin/bash


I can ssh to the server with this account.  So, the linux/ldap stuff 
seems to work properly.


However, I cannot connect with the smb proto.  Continue to get a 
username/password prompt.


My suspicion is the "@" in the uid, which as I understand it, in the 
windoze world signifies a group... I think I am confusing something 
in the process.


My question is: can Samba be configured to append the "@mydomain.com" 
to the username, then authenticate the user?  So the user could use 
the testuser login via the windoze login and drive mapping processes, 
but Samba would actually use testu...@mydomain.com to actually 
authenticate?


All these accounts are already in use in the LDAP directory, and so 
the uid cannot be changed.


lmk if there's anything else needed here... I'm willing to share 
configs, command outputs, etc. to get this solved.


TIA!


Alex Moen
Network Services Technician II
North Dakota Telephone Company
701-662-6481

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



sounds if samba isn't using LDAP properly.

would you mind to show us your config?

greets

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


Re: [Samba] samba-server, windows7-clients, server-hostname

2011-12-30 Thread Jürgen Echter

Am 30.12.2011 17:15, schrieb luxInteg:

Greetings,

I have setup a computer to act as a  'samba-server'.  The machine has these:-
--cpu: amd64
--OS: cblfs linux
--samba-3.6.0  compiled from sources in /usr/local/samba

The clients are windows 7 clients.  They can  only see the server as its IP-
address not a name/hostname.


QUESTION:

Are there entries to be made in smb.conf to enable the smbserver to be seen as
its hostname/or-any-other-name rather than by its IPaddress?

suggestions welcomed

suincerely
lux-Integ
30-12-2011

Hi,

for example

server string = Samba %v on %L

greets

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