Re: [Samba] Clear Samba Process

2011-09-07 Thread Aldyth Maharsha
I have solution for prevent samba oplocks break failed, adding posix locking
= no but it is terrible because if one user open office file and another
user open same file it is not read only,,any another solution?

Best Regards,
Aldyth M

On Tue, Sep 6, 2011 at 1:44 PM, Aldyth Maharsha dem...@gmail.com wrote:

 I don't know what happening, but i have strange problem. My log show
 oplocks break failed it is only some user(not all user) and it is sometimes
 happening, sometimes good but sometimes close office file extremely
 slow..Any idea?

 Best regards,
 Aldyth M

 On Fri, Aug 26, 2011 at 7:43 PM, Bruno Martins bmomart...@gmail.comwrote:

 On 08/26/2011 01:12 PM, Aldyth Maharsha wrote:

 Hi list, i'm have problem with samba 3.5 in ubuntu 11.04 server. When my
 user open file like office file it is okey but when close file it is
 extremely slow, and i'm view at log it is show error message Oplocks
 break
 failed for xxx. I try to running smbstatus to view pid process and kill
 pid
 locked files it is works but my question is, what happening with my
 samba?,
 because if my user closing file extremely slow i must kill pid
 process(locked files), can i have another solution? because i'm copy file
 more than 5Gb it is fast and no problem with that...Thanks before

 It is my smb.conf :
 [global]
 workgroup = AAA
 netbios name = SUNKO08
 security = user
 enable privileges = yes
 server string = %h server
 encrypt passwords = Yes

 unix password sync = yes
 ldap passwd sync = yes
 passwd program = /usr/sbin/smbldap-passwd -u %u
 passwd chat = Changing *\nNew password* %n\n *Retype new
 password* %n\n

 log level = 0
 syslog = 0
 log file = /var/log/samba/log.%U
 max log size = 10
 time server = Yes
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 dns proxy = no
 mangling method = hash2
 Dos charset = CP932
 Unix charset = UTF-8
 logon script = logon.bat
 logon drive = H:
 logon home =
 logon path =
 domain logons = Yes
 domain master = Yes
 os level = 65
 preferred master = Yes
 wins support = yes
 passdb backend = ldapsam:ldap://sunko02.sunko.
 local/
 ldap admin dn = cn=admin,dc=sunko,dc=local
 ldap suffix = dc=sunko,dc=local
 ldap group suffix = ou=groups
 ldap user suffix = ou=people
 ldap machine suffix = ou=computer
add user script = /usr/sbin/smbldap-useradd -m %u
 delete user script = /usr/sbin/smbldap-userdel %u
 add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u
 add group script = /usr/sbin/smbldap-groupadd -p %g
 delete group script = /usr/sbin/smbldap-groupdel %g
 add user to group script = /usr/sbin/smbldap-groupmod -m %u
 %g
 delete user from group script = /usr/sbin/smbldap-groupmod -x
 %u
 %g
 set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
 admin users = domainadm
 ldap ssl = no
 load printers = Yes
 create mask = 0640
 directory mask = 0750
 nt acl support = No
 printing = cups
 printcap name = cups
 deadtime = 10
 guest account = nobody
 map to guest = Bad User
 dont descend = /proc,/dev,/etc,/lib,/lost+**found,/initrd
 show add printer wizard = yes
 preserve case = yes
 short preserve case = yes
 case sensitive = no


 best regards,
 Aldyth M

 Aldyth,

 Check this page:
 http://www.samba.org/samba/**docs/man/Samba-HOWTO-**
 Collection/locking.html#**id2617810http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html#id2617810

 You may have to turn off oplocks.

 Best regards,

 --
 Bruno Martins
 bmomart...@gmail.com
 (+351) 939668667

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



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


Re: [Samba] Clear Samba Process

2011-09-06 Thread Aldyth Maharsha
I don't know what happening, but i have strange problem. My log show oplocks
break failed it is only some user(not all user) and it is sometimes
happening, sometimes good but sometimes close office file extremely
slow..Any idea?

Best regards,
Aldyth M

On Fri, Aug 26, 2011 at 7:43 PM, Bruno Martins bmomart...@gmail.com wrote:

 On 08/26/2011 01:12 PM, Aldyth Maharsha wrote:

 Hi list, i'm have problem with samba 3.5 in ubuntu 11.04 server. When my
 user open file like office file it is okey but when close file it is
 extremely slow, and i'm view at log it is show error message Oplocks
 break
 failed for xxx. I try to running smbstatus to view pid process and kill
 pid
 locked files it is works but my question is, what happening with my
 samba?,
 because if my user closing file extremely slow i must kill pid
 process(locked files), can i have another solution? because i'm copy file
 more than 5Gb it is fast and no problem with that...Thanks before

 It is my smb.conf :
 [global]
 workgroup = AAA
 netbios name = SUNKO08
 security = user
 enable privileges = yes
 server string = %h server
 encrypt passwords = Yes

 unix password sync = yes
 ldap passwd sync = yes
 passwd program = /usr/sbin/smbldap-passwd -u %u
 passwd chat = Changing *\nNew password* %n\n *Retype new
 password* %n\n

 log level = 0
 syslog = 0
 log file = /var/log/samba/log.%U
 max log size = 10
 time server = Yes
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 dns proxy = no
 mangling method = hash2
 Dos charset = CP932
 Unix charset = UTF-8
 logon script = logon.bat
 logon drive = H:
 logon home =
 logon path =
 domain logons = Yes
 domain master = Yes
 os level = 65
 preferred master = Yes
 wins support = yes
 passdb backend = ldapsam:ldap://sunko02.sunko.
 local/
 ldap admin dn = cn=admin,dc=sunko,dc=local
 ldap suffix = dc=sunko,dc=local
 ldap group suffix = ou=groups
 ldap user suffix = ou=people
 ldap machine suffix = ou=computer
add user script = /usr/sbin/smbldap-useradd -m %u
 delete user script = /usr/sbin/smbldap-userdel %u
 add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u
 add group script = /usr/sbin/smbldap-groupadd -p %g
 delete group script = /usr/sbin/smbldap-groupdel %g
 add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
 delete user from group script = /usr/sbin/smbldap-groupmod -x %u
 %g
 set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
 admin users = domainadm
 ldap ssl = no
 load printers = Yes
 create mask = 0640
 directory mask = 0750
 nt acl support = No
 printing = cups
 printcap name = cups
 deadtime = 10
 guest account = nobody
 map to guest = Bad User
 dont descend = /proc,/dev,/etc,/lib,/lost+**found,/initrd
 show add printer wizard = yes
 preserve case = yes
 short preserve case = yes
 case sensitive = no


 best regards,
 Aldyth M

 Aldyth,

 Check this page:
 http://www.samba.org/samba/**docs/man/Samba-HOWTO-**
 Collection/locking.html#**id2617810http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html#id2617810

 You may have to turn off oplocks.

 Best regards,

 --
 Bruno Martins
 bmomart...@gmail.com
 (+351) 939668667

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

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


[Samba] Clear Samba Process

2011-08-26 Thread Aldyth Maharsha
Hi list, i'm have problem with samba 3.5 in ubuntu 11.04 server. When my
user open file like office file it is okey but when close file it is
extremely slow, and i'm view at log it is show error message Oplocks break
failed for xxx. I try to running smbstatus to view pid process and kill pid
locked files it is works but my question is, what happening with my samba?,
because if my user closing file extremely slow i must kill pid
process(locked files), can i have another solution? because i'm copy file
more than 5Gb it is fast and no problem with that...Thanks before

It is my smb.conf :
[global]
workgroup = AAA
netbios name = SUNKO08
security = user
enable privileges = yes
server string = %h server
encrypt passwords = Yes

unix password sync = yes
ldap passwd sync = yes
passwd program = /usr/sbin/smbldap-passwd -u %u
passwd chat = Changing *\nNew password* %n\n *Retype new
password* %n\n

log level = 0
syslog = 0
log file = /var/log/samba/log.%U
max log size = 10
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
mangling method = hash2
Dos charset = CP932
Unix charset = UTF-8
logon script = logon.bat
logon drive = H:
logon home =
logon path =
domain logons = Yes
domain master = Yes
os level = 65
preferred master = Yes
wins support = yes
passdb backend = ldapsam:ldap://sunko02.sunko.
local/
ldap admin dn = cn=admin,dc=sunko,dc=local
ldap suffix = dc=sunko,dc=local
ldap group suffix = ou=groups
ldap user suffix = ou=people
ldap machine suffix = ou=computer
   add user script = /usr/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel %u
add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u
add group script = /usr/sbin/smbldap-groupadd -p %g
delete group script = /usr/sbin/smbldap-groupdel %g
add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
delete user from group script = /usr/sbin/smbldap-groupmod -x %u
%g
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
admin users = domainadm
ldap ssl = no
load printers = Yes
create mask = 0640
directory mask = 0750
nt acl support = No
printing = cups
printcap name = cups
deadtime = 10
guest account = nobody
map to guest = Bad User
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
show add printer wizard = yes
preserve case = yes
short preserve case = yes
case sensitive = no


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


[Samba] [HELP] Problem with oplocks break failed

2011-08-21 Thread Aldyth Maharsha
Hi list, i'm have trouble with oplocks break failed for file xxx

I'm using samba running in ubuntu natty 11.04  with separate ldap server :

:~# dpkg -l | grep samba
ii  libcrypt-smbhash-perl   0.12-3
generate LM/NT hash of a password for samba
ii  samba   2:3.5.8~dfsg-1ubuntu2.2
SMB/CIFS file, print, and login server for Unix
ii  samba-common2:3.5.8~dfsg-1ubuntu2.2
common files used by both the Samba server and client
ii  samba-common-bin2:3.5.8~dfsg-1ubuntu2.2
common files used by both the Samba server and client
ii  samba-doc   2:3.5.8~dfsg-1ubuntu2.2Samba
documentation

My problems is strange, when user open file(office file like excel, word)
directly from server it is normal but whe user close that file it is
extremely slow. But copy files from and to samba server is normal, just
stream office file from server. Only some user have trouble like that, not
all of user and some file like that not all of office file. It is very
strange for me because just some user(2 user exactly from 100++ user) and
some file office if i'm close that it is extremely slow not all office file.

Samba log :

  smbd/oplock.c:322(oplock_timeout_handler)
  Oplock break failed for file Copy of DOORPRIZE.xls -- replying anyway


smb.conf :
[global]
workgroup = AAA
netbios name = SUNKO08
security = user
enable privileges = yes
server string = %h server
encrypt passwords = Yes

unix password sync = yes
ldap passwd sync = yes
passwd program = /usr/sbin/smbldap-passwd -u %u
passwd chat = Changing *\nNew password* %n\n *Retype new
password* %n\n

log level = 0
syslog = 0
log file = /var/log/samba/log.%U
max log size = 10
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
mangling method = hash2
Dos charset = CP932
Unix charset = UTF-8
logon script = logon.bat
logon drive = H:
logon home =
logon path =
domain logons = Yes
domain master = Yes
os level = 65
preferred master = Yes
wins support = yes
passdb backend = ldapsam:ldap://sunko02.sunko.local/
ldap admin dn = cn=admin,dc=sunko,dc=local
ldap suffix = dc=sunko,dc=local
ldap group suffix = ou=groups
ldap user suffix = ou=people
ldap machine suffix = ou=computer
   add user script = /usr/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel %u
add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u
add group script = /usr/sbin/smbldap-groupadd -p %g
delete group script = /usr/sbin/smbldap-groupdel %g
add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
delete user from group script = /usr/sbin/smbldap-groupmod -x %u
%g
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
admin users = domainadm
ldap ssl = no
load printers = Yes
create mask = 0640
directory mask = 0750
nt acl support = No
printing = cups
printcap name = cups
deadtime = 10
guest account = nobody
map to guest = Bad User
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
show add printer wizard = yes
preserve case = yes
short preserve case = yes
case sensitive = no

Any idea from my case?..thanks before :-)

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


Re: [Samba] Problem with IDMAP+LDAP+WINBIND

2011-06-09 Thread Aldyth Maharsha
What kind of your security parameter using?..try to set security = ADS at
smb.conf
Or you can just configure idmap uid and gid like this :
idmap uid =1-50


idmap gid = 1-50

not specify your idmap backend, correct me if i'm wrong :-)

Best Regards,
Aldyth M

On Wed, Jun 8, 2011 at 10:02 PM, Adrian Berlin g...@rock.com wrote:

 Hello,

 I have problem with idmap configuration. I would like to use LDAP as
 backend for idmap in Samba+ADS environment, but i have following errors
 in log.winbindd-idmap:

 [2011/06/08 16:57:54.805575,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module ldap already

 registered!
 [2011/06/08 16:57:54.805618,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module tdb already

 registered!
 [2011/06/08 16:57:54.805645,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module passdb already

 registered!
 [2011/06/08 16:57:54.805671,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module nss already

 registered!
 [2011/06/08 16:57:54.806552,  1]

 winbindd/idmap_ldap.c:193(verify_idpool)
   Unable to verify the idpool, cannot continue

 initialization!
 [2011/06/08 16:57:54.806642,  0]

 winbindd/idmap.c:589(idmap_alloc_init)
   ERROR: Initialization failed for alloc backend,

 deferred!
 [2011/06/08 16:57:54.844163,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module ldap already

 registered!
 [2011/06/08 16:57:54.844226,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module tdb already

 registered!
 [2011/06/08 16:57:54.844254,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module passdb already

 registered!
 [2011/06/08 16:57:54.844280,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module nss already

 registered!
 [2011/06/08 16:57:54.845341,  1]

 winbindd/idmap_ldap.c:193(verify_idpool)
   Unable to verify the idpool, cannot continue

 initialization!
 [2011/06/08 16:57:54.845380,  0]

 winbindd/idmap.c:589(idmap_alloc_init)
   ERROR: Initialization failed for alloc backend,

 deferred!
 [2011/06/08 16:57:54.846287,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module ldap already

 registered!
 [2011/06/08 16:57:54.846326,  0]

 winbindd/idmap.c:201(smb_register_idmap_alloc)
   idmap_alloc module tdb already

 registered!
 [2011/06/08 16:57:54.846353,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module passdb already

 registered!
 [2011/06/08 16:57:54.846380,  0]

 winbindd/idmap.c:149(smb_register_idmap)
   Idmap module nss already

 registered!
 [2011/06/08 16:57:54.847374,  1]

 winbindd/idmap_ldap.c:193(verify_idpool)
   Unable to verify the idpool, cannot continue

 initialization!
 [2011/06/08 16:57:54.847409,  0]

 winbindd/idmap.c:589(idmap_alloc_init)
   ERROR: Initialization failed for alloc backend, deferred!

 LDAP database is up and running.

 slapcat:

 dn: dc=server,dc=nas
 objectClass: dcObject
 objectClass: organization
 dc: server
 o: server
 structuralObjectClass: organization
 entryUUID: 6401d0ac-262b-1030-84d2-1370b5f1fe61
 creatorsName: cn=admin,dc=server,dc=nas
 createTimestamp: 20110608145736Z
 entryCSN: 20110608145736Z#00#00#00
 modifiersName: cn=admin,dc=server,dc=nas
 modifyTimestamp: 20110608145736Z

 dn: cn=admin,dc=server,dc=nas
 objectClass: organizationalRole
 objectClass: simpleSecurityObject
 cn: admin
 userPassword:: c2VjcmV0
 description: LDAP administrator
 structuralObjectClass: organizationalRole
 entryUUID: 64127830-262b-1030-84d3-1370b5f1fe61
 creatorsName: cn=admin,dc=server,dc=nas
 createTimestamp: 20110608145736Z
 entryCSN: 20110608145736Z#01#00#00
 modifiersName: cn=admin,dc=server,dc=nas
 modifyTimestamp: 20110608145736Z

 dn: ou=People,dc=server,dc=nas
 ou: People
 objectClass: top
 objectClass: organizationalUnit
 structuralObjectClass: organizationalUnit
 entryUUID: 642ad5ec-262b-1030-84d4-1370b5f1fe61
 creatorsName: cn=admin,dc=server,dc=nas
 createTimestamp: 20110608145736Z
 entryCSN: 20110608145736Z#02#00#00
 modifiersName: cn=admin,dc=server,dc=nas
 modifyTimestamp: 20110608145736Z

 dn: ou=ChapPeople,dc=server,dc=nas
 ou: ChapPeople
 objectClass: top
 objectClass: organizationalUnit
 structuralObjectClass: organizationalUnit
 entryUUID: 642f6b7a-262b-1030-84d5-1370b5f1fe61
 creatorsName: cn=admin,dc=server,dc=nas
 createTimestamp: 20110608145736Z
 entryCSN: 20110608145736Z#03#00#00
 modifiersName: cn=admin,dc=server,dc=nas
 modifyTimestamp: 20110608145736Z

 dn: ou=Groups,dc=server,dc=nas
 ou: Groups
 objectClass: top
 objectClass: organizationalUnit
 structuralObjectClass: organizationalUnit
 entryUUID: 64357e34-262b-1030-84d6-1370b5f1fe61
 creatorsName: cn=admin,dc=server,dc=nas
 createTimestamp: 20110608145736Z
 entryCSN: 20110608145736Z#04#00#00
 modifiersName: cn=admin,dc=server,dc=nas
 modifyTimestamp: 20110608145736Z

 dn: ou=Computers,dc=server,dc=nas
 ou: Computers
 objectClass: top
 objectClass: 

[Samba] This is bug at samba?

2011-04-08 Thread Aldyth Maharsha
Hi list, i'm have samba installed at debian squeeze 2.6.32-5-686

:~# dpkg -l | grep samba
ii  samba  2:3.5.6~dfsg-3squeeze2   SMB/CIFS
file, print, and login server for Unix
ii  samba-common   2:3.5.6~dfsg-3squeeze2   common
files used by both the Samba server and client
ii  samba-common-bin   2:3.5.6~dfsg-3squeeze2   common
files used by both the Samba server and client
ii  samba-doc  2:3.5.6~dfsg-3squeeze2   Samba
documentation
ii  samba-tools2:3.5.6~dfsg-3squeeze2   Samba
testing utilities

and if i'm type dmesg, output like that:

[154590.284201] BUG: Bad page state in process smbd  pfn:15a54
[154590.284225] page:c1786a80 flags:4000 count:0 mapcount:-8
mapping:(null) index:9682
[154590.284251] Pid: 638, comm: smbd Tainted: GB  2.6.32-5-686 #1
[154590.284254] Call Trace:
[154590.284269]  [c108a666] ? bad_page+0xd7/0xeb
[154590.284276]  [c108b94c] ? get_page_from_freelist+0x2e7/0x3c7
[154590.284291]  [c10ac6e1] ? add_partial+0xe/0x40
[154590.284297]  [c11d2317] ? __kfree_skb+0xf/0x6e
[154590.284302]  [c108bced] ? __alloc_pages_nodemask+0xf3/0x4d9
[154590.284308]  [c126dd00] ? _spin_lock_bh+0x8/0x1e
[154590.284314]  [c11cebae] ? release_sock+0xf/0x89
[154590.284319]  [c108d3c5] ? __do_page_cache_readahead+0x98/0x16b
[154590.284323]  [c108d4ac] ? ra_submit+0x14/0x18
[154590.284327]  [c108d78d] ? page_cache_sync_readahead+0x3e/0x44
[154590.284332]  [c10887c3] ? generic_file_aio_read+0x21f/0x57f
[154590.284351]  [c10b2e19] ? do_sync_read+0xc0/0x107
[154590.284359]  [c1043cc6] ? autoremove_wake_function+0x0/0x2d
[154590.284366]  [c10b5fdb] ? sys_fstat64+0x1e/0x23
[154590.284374]  [c11021b4] ? security_file_permission+0xc/0xd
[154590.284378]  [c10b2d59] ? do_sync_read+0x0/0x107
[154590.284382]  [c10b37d0] ? vfs_read+0x7b/0xd3
[154590.284386]  [c10b386e] ? sys_pread64+0x46/0x5c
[154590.284392]  [c10030fb] ? sysenter_do_call+0x12/0x28
[173198.678338] ip_tables: (C) 2000-2006 Netfilter Core Team
[173200.210462] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[173200.211521] CONFIG_NF_CT_ACCT is deprecated and will be removed soon.
Please use
[173200.211526] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack
module option or
[173200.211529] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.


This is bug?

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


[Samba] [HELP] Samba with myob trouble

2011-04-04 Thread Aldyth Maharsha
Hi list, i'm have trouble with MYOB. I'm running samba at debian squeeze
and share myob file. If one user access file, it is ok but rouble when multi
user access file, myob suddenly terminate and having error like this : *Unable
to open lock file ; access privileges may be incorrect or disk may be full *
It is my smb.conf :

[global]
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
encrypt passwords = true
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam
dns proxy = no
server string = %h server
unix password sync = yes
workgroup = HUTANKITA
syslog = 0
security = user
panic action = /usr/share/samba/panic-action %d
max log size = 1000
directory mode = 660
pam password change = yes

[hfs_acc]
write list = kristina,mini,yudi.prasetyo,meilani.sutanto,@hfs_acc
force directory mode = 770
force group = hfs_acc
sync always = yes
share modes = no
oplocks = no
delete readonly = yes
locking = no
writeable = yes
path = /opt/share/hfs_acc/files
force create mode = 770
revalidate = yes
valid users = kristina,mini,yudi.prasetyo,meilani.sutanto,@hfs_acc
create mode = 775
directory mode = 775
level2 oplocks = no

Any Idea?, thanks before

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


[Samba] Multiple Domain and multiple subnet

2011-03-25 Thread Aldyth Maharsha
Hi list, i'm have a problem..i'm setup two domain controller with different
subnet..my client login into domain with network mapping drive
Subnet #1 : 10.1.0.0/16
Subnet #2 : 192.168.21.0/24

PDC 1 : 10.1.1.7/16
PDC 2 : 192.168.21.3/24

If i'm ping, traceroute or ssh from each client it's successfull but i can't
see the network neigborhood at each domain, if i'm login from client at
domain 1, i can't see domain 2 and if i'm login from domain 2, i can't see
domain 1.

Any idea?, thanks before (i'm attach my smb.conf from each pdc)

best regards,
[global]



add machine script = /sbin/e-smith/signal-event machine-account-create '%u'

bind interfaces only = yes

case sensitive = no
deadtime = 10080

display charset = ISO8859-1

dns proxy = no 

domain logons = yes
domain master = yes
dos charset = 850

encrypt passwords = yes

guest account = public

guest ok = no
hosts allow = 127.0.0.1 10.1.0.0/255.255.0.0 192.168.0.0/255.255.255.0


interfaces = 127.0.0.1 10.1.1.7/255.255.0.0

log file = /var/log/samba/log.%m
logon drive = Z:

logon path = 
logon script = netlogon.bat

map to guest = never

max log size = 50

name resolve order = wins lmhosts bcast

netbios name = sun07
oplocks = true
kernel oplocks = true
level2 oplocks = true
os level = 65

passdb backend = smbpasswd:/etc/samba/smbpasswd


pid directory = /var/run
preferred master = yes

preserve case = yes



security = user
server string = SME Server
short preserve case = yes
smb passwd file = /etc/samba/smbpasswd
smb ports = 139

socket options = TCP_NODELAY 

strict locking = no
unix charset = UTF8

unix password sync = Yes
pam password change = Yes

passwd program = /usr/bin/passwd %u 
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password
unix extensions = no


wins support = yes

workgroup = Hutankita
printcap name = /etc/printcap
load printers = yes
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s

[homes]
comment = Home directory
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
path = /home/e-smith/files/users/%S/home

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
guest ok = yes
writable = yes
browseable = no

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
writable = no
[Primary]
comment = Primary i-bay


path = /home/e-smith/files/ibays/Primary
read only = no
writable = yes
read list = @shared-ro
printable = no
inherit permissions = yes
create mode = 0640

[global]

add machine script = /sbin/e-smith/signal-event machine-account-create '%u'
admin users = admin

bind interfaces only = no

case sensitive = no
deadtime = 10080

display charset = ISO8859-1

dns proxy = no 

domain logons = yes
domain master = yes
dos charset = 850

encrypt passwords = yes

guest account = public

guest ok = no
hosts allow = 127.0.0.1 10.1.0.0/255.255.0.0 192.168.21.0/255.255.255.0 
192.168.22.0/255.255.255.0


interfaces = 127.0.0.1 192.168.21.3/255.255.255.0

log file = /var/log/samba/log.%m

logon path = 
logon script = netlogon.bat

map to guest = never

max log size = 50

name resolve order = wins lmhosts bcast

netbios name = basirih02
oplocks = true
kernel oplocks = true
level2 oplocks = true

os level = 65

passdb backend = smbpasswd:/etc/samba/smbpasswd


pid directory = /var/run
preserve case = yes

printer admin = admin



security = user
server string = SME Server
short preserve case = yes
smb passwd file = /etc/samba/smbpasswd

socket options = TCP_NODELAY 

strict locking = no
unix charset = UTF8

unix password sync = Yes
pam password change = Yes

passwd program = /usr/bin/passwd %u 
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password


wins support = yes

workgroup = bic_jkt
printcap name = /etc/printcap
load printers = yes
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s

[homes]
comment = Home directory
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
path = /home/e-smith/files/users/%S/home

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
guest ok = yes
writable = yes
browseable = no

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
use client