Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: thy.ly on November 14, 2015, 08:30:59 am

Title: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 14, 2015, 08:30:59 am
Dear All,

We are having problem with unknown user account, and when we try to create new account the messages appeared like this

There are some software packages which are not correctly installed: linux-image-3.16.0-52-generic, linux-image-extra-3.16.0-51-generic.
You should reinstall them and retry your operation.

We try to follow up all of these operations below:
apt-get -f install
the messages appear like this

Unpacking linux-image-3.16.0-53-generic (3.16.0-53.72~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-53-generic_3.16.0-53.72~14.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/abi-3.16.0-53-generic' to '/boot/abi-3.16.0-53-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-53-generic /boot/vmlinuz-3.16.0-53-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-53-generic /boot/vmlinuz-3.16.0-53-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.16.0-53-generic_3.16.0-53.72~14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please kindly see attachment files for your reference!
We are using the license one.

Thank you!
Thy Ly

Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on November 14, 2015, 02:03:13 pm
please post the results of:
Code: [Select]
uname -a
dpkg -l linux-image* |grep ii
ls -lah /boot
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: BerT666 on November 14, 2015, 03:58:09 pm
Howdy,

sorry for the intervention, but in the Error Message, your System tells, that you do not have any space on your drive left...
Try to check with:

df -h

This will also tell you which partition is involved... (I would think it is your /boot Partition)...

Regards

Thomas
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 16, 2015, 01:38:21 am
Dear Julio and Thomas,

Yes you both right, here are the messages:

root@phnhnpdczty:~# df -h
Filesystem                                   Size  Used Avail Use% Mounted on
/dev/mapper/phn--hn--dc--v--zty--4--vg-root   98G  5.9G   87G   7% /
none                                         4.0K     0  4.0K   0% /sys/fs/cgroup
udev                                         4.9G  4.0K  4.9G   1% /dev
tmpfs                                       1001M  4.1M  997M   1% /run
none                                          50M     0   50M   0% /run/lock
none                                         4.9G  4.0K  4.9G   1% /run/shm
none                                         100M  4.0K  100M   1% /run/user
/dev/vda1                                    236M  230M     0 100% /boot
/dev/vdb1                                    3.9T  3.2T  548G  86% /data
root@phnhnpdczty:~# uname -a
Linux phnhnpdczty 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@phnhnpdczty:~# dpkg -l linux-image* |grep ii
ii  linux-image-3.16.0-30-generic         3.16.0-30.40~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-45-generic         3.16.0-45.60~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-46-generic         3.16.0-46.62~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-48-generic         3.16.0-48.64~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-49-generic         3.16.0-49.65~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-50-generic         3.16.0-50.67~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-3.16.0-51-generic         3.16.0-51.69~14.04.1             amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-30-generic   3.16.0-30.40~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-45-generic   3.16.0-45.60~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-46-generic   3.16.0-46.62~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-48-generic   3.16.0-48.64~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-49-generic   3.16.0-49.65~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
ii  linux-image-extra-3.16.0-50-generic   3.16.0-50.67~14.04.1             amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
root@phnhnpdczty:~# ls -lah /boot
total 221M
drwxr-xr-x  4 root root 3.0K Nov 14 14:08 .
drwxrwxrwx 24 root root 4.0K Nov 13 14:39 ..
-rw-r--r--  1 root root 1.2M Jan 16  2015 abi-3.16.0-30-generic
-rw-r--r--  1 root root 1.2M Jul 25 06:24 abi-3.16.0-45-generic
-rw-r--r--  1 root root 1.2M Aug 12 01:17 abi-3.16.0-46-generic
-rw-r--r--  1 root root 1.2M Aug 21 07:35 abi-3.16.0-48-generic
-rw-r--r--  1 root root 1.2M Sep  9 18:13 abi-3.16.0-49-generic
-rw-r--r--  1 root root 1.2M Oct  3 08:04 abi-3.16.0-50-generic
-rw-r--r--  1 root root 1.2M Oct  8 03:18 abi-3.16.0-51-generic
-rw-r--r--  1 root root 1.2M Oct 24 03:04 abi-3.16.0-52-generic
-rw-r--r--  1 root root 168K Jan 16  2015 config-3.16.0-30-generic
-rw-r--r--  1 root root 168K Jul 25 06:24 config-3.16.0-45-generic
-rw-r--r--  1 root root 168K Aug 12 01:17 config-3.16.0-46-generic
-rw-r--r--  1 root root 168K Aug 21 07:35 config-3.16.0-48-generic
-rw-r--r--  1 root root 168K Sep  9 18:13 config-3.16.0-49-generic
-rw-r--r--  1 root root 168K Oct  3 08:04 config-3.16.0-50-generic
-rw-r--r--  1 root root 168K Oct  8 03:18 config-3.16.0-51-generic
-rw-r--r--  1 root root 168K Oct 24 03:04 config-3.16.0-52-generic
drwxr-xr-x  5 root root 1.0K Oct 20 05:09 grub
-rw-r--r--  1 root root  20M Aug  4 05:10 initrd.img-3.16.0-30-generic
-rw-r--r--  1 root root  20M Aug  4 05:13 initrd.img-3.16.0-45-generic
-rw-r--r--  1 root root  20M Aug 18 05:06 initrd.img-3.16.0-46-generic
-rw-r--r--  1 root root  20M Sep  4 05:09 initrd.img-3.16.0-48-generic
-rw-r--r--  1 root root  20M Sep 24 05:06 initrd.img-3.16.0-49-generic
-rw-r--r--  1 root root  20M Oct 15 05:06 initrd.img-3.16.0-50-generic
-rw-r--r--  1 root root  20M Oct 20 05:09 initrd.img-3.16.0-51-generic
drwx------  2 root root  12K Jul  5 21:44 lost+found
-rw-------  1 root root 3.4M Jan 16  2015 System.map-3.16.0-30-generic
-rw-------  1 root root 3.4M Jul 25 06:24 System.map-3.16.0-45-generic
-rw-------  1 root root 3.4M Aug 12 01:17 System.map-3.16.0-46-generic
-rw-------  1 root root 3.4M Aug 21 07:35 System.map-3.16.0-48-generic
-rw-------  1 root root 3.4M Sep  9 18:13 System.map-3.16.0-49-generic
-rw-------  1 root root 3.4M Oct  3 08:04 System.map-3.16.0-50-generic
-rw-------  1 root root 3.4M Oct  8 03:18 System.map-3.16.0-51-generic
-rw-------  1 root root 3.4M Oct 24 03:04 System.map-3.16.0-52-generic
-rw-------  1 root root 6.1M Jan 16  2015 vmlinuz-3.16.0-30-generic
-rw-------  1 root root 6.1M Jul 25 06:24 vmlinuz-3.16.0-45-generic
-rw-------  1 root root 6.1M Aug 12 01:17 vmlinuz-3.16.0-46-generic
-rw-------  1 root root 6.1M Aug 21 07:35 vmlinuz-3.16.0-48-generic
-rw-------  1 root root 6.1M Sep  9 18:13 vmlinuz-3.16.0-49-generic
-rw-------  1 root root 6.1M Oct  3 08:04 vmlinuz-3.16.0-50-generic
-rw-------  1 root root 6.1M Oct  8 03:18 vmlinuz-3.16.0-51-generic
-rw-------  1 root root 6.1M Oct 24 03:04 vmlinuz-3.16.0-52-generic
root@phnhnpdczty:~#
                                                                                                                                   

How to solve when it becomes full, how to extend?. I am still new Linux but I am eager to be aware about this, especially Linux system infrastructure.

Thank you!

Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: Sand_man on November 16, 2015, 06:14:47 am
Remove old kernels, except for the current and previous version:

Code: [Select]
sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1) --assume-yes
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on November 16, 2015, 10:36:26 am
first repair your broken update, after repair remove the unused kernels:
Code: [Select]
sudo rm /boot/vmlinuz-3.16.0-45-generic vmlinuz-3.16.0-46-generic
sudo apt-get -f install
sudo reboot
sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1) --assume-yes
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 17, 2015, 04:41:48 am
Dear All,

I tried with those command and I got the error messages like below:

Purging configuration files for linux-image-3.16.0-50-generic (3.16.0-50.67~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
Errors were encountered while processing:
 linux-image-extra-3.16.0-30-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

thank you!
God Bless,
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: jbahillo on November 20, 2015, 01:44:25 pm
When there are broken packages, it may be preferrable to use dpkg -r instead of apt
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: BerT666 on November 20, 2015, 02:08:00 pm
I think you have "somehow" a bit of space on /boot
Since there is a Kernel package pending for install, all tries to fix "broken packages" will fail if you do not have "a bit of space"...

In the worst case, try deleteing one or two" initrd" that you do not! use when booting normal.
Afterwards try purging not needed kernels...
If you are on a VM, just make a snapshot to be save ;-)

Regards

Thomas
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: jbahillo on November 20, 2015, 05:58:41 pm
Letme insist on using dpkg -r "package name" instead of using apt, as if any package is broken and needs space on the full system (another kernel) it will not allow to complete the operation
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on November 20, 2015, 06:38:09 pm
Letme insist on using dpkg -r "package name" instead of using apt, as if any package is broken and needs space on the full system (another kernel) it will not allow to complete the operation

@jbahillo: yes, you are right!

@thy.ly: try with:
Code: [Select]
sudo dpkg --purge --force-all linux-image-extra-3.16.0-30-generic
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 30, 2015, 01:35:45 am
Dear All,

I am back now, apology for long time to reply you. Yes after process all these command lines, I found the result as below:
sudo df -h                                                                                                                                                                 
Filesystem                                   Size  Used Avail Use% Mounted on
/dev/mapper/phn--hn--dc--v--zty--4--vg-root   98G  3.9G   89G   5% /
none                                         4.0K     0  4.0K   0% /sys/fs/cgroup
udev                                         4.9G  4.0K  4.9G   1% /dev
tmpfs                                       1001M  872K 1000M   1% /run
none                                          50M     0   50M   0% /run/lock
none                                         4.9G     0  4.9G   0% /run/shm
none                                         100M  4.0K  100M   1% /run/user
/dev/vdb1                                    3.9T  3.2T  523G  87% /data
/dev/vda1                                    236M   42M  182M  19% /boot

the reason is we could not access by browser now.

Thank you!
God Bless,
Thy Ly 
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 30, 2015, 06:54:55 am
Dear All,

We still could not access to account mangement when we try we get like this
FATAL: Could not connect to samba LDAP server: connect: Connection refused
Please check the attachment for us.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on November 30, 2015, 08:12:52 am
Dear All,

We found the problem like this

root@phnhnpdczty:~# sudo /etc/init.d/zentyal restart
 * Stopping Zentyal module: samba                                        [ OK ]
 * Stopping Zentyal module: ntp                                          [ OK ]
 * Stopping Zentyal module: logs                                         [ OK ]
 * Stopping Zentyal module: dns                                          [ OK ]
 * Stopping Zentyal module: audit                                        [ OK ]
 * Stopping Zentyal module: firewall                                     [ OK ]
 * Stopping Zentyal module: network                                      [fail]
Could not get lock for service: network
 * Stopping Zentyal module: webadmin                                     [ OK ]
 * Starting Zentyal module: network                                      [fail]
 * Starting Zentyal module: firewall                                     [ OK ]
 * Starting Zentyal module: audit                                        [ OK ]
 * Starting Zentyal module: dns                                          [ OK ]
 * Starting Zentyal module: logs                                         [ OK ]
 * Starting Zentyal module: ntp                                          [ OK ]
 * Starting Zentyal module: samba                                        [fail]
 * Starting Zentyal module: webadmin                                     [ OK ]

How to solve?
Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: jbahillo on November 30, 2015, 02:13:25 pm
Check running a kernel from 3.13 branch
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 02, 2015, 06:43:29 am
Hello,

I am still getting the messages the same before.

When I try to check the services status it display like this

root@phnhnpdczty:~# sudo service samba status
 * samba is not running
here are all the services status inside
root@phnhnpdczty:~# sudo service --status-all
 [ + ]  acpid                                                                                                                                                                                   
 [ - ]  anacron                                                                                                                                                                                 
 [ ? ]  apport                                                                                                                                                                                 
 [ + ]  atd                                                                                                                                                                                     
 [ + ]  bind9
 [ ? ]  console-setup
 [ + ]  cron
 [ - ]  dbus
 [ - ]  grub-common
 [ ? ]  killprocs
 [ ? ]  kmod
 [ + ]  lxdm
 [ ? ]  mysql
 [ ? ]  networking
 [ - ]  nginx
 [ - ]  nmbd
 [ + ]  ntp
 [ ? ]  ondemand
 [ - ]  procps
 [ + ]  quota
 [ - ]  quotarpc
 [ ? ]  rc.local
 [ + ]  redis-server
 [ + ]  resolvconf
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  samba
 [ - ]  samba-ad-dc
 [ ? ]  screen-cleanup
 [ ? ]  sendsigs
 [ + ]  smbd
 [ - ]  ssh
 [ - ]  sudo
 [ + ]  udev
 [ ? ]  umountfs
 [ ? ]  umountnfs.sh
 [ ? ]  umountroot
 [ - ]  urandom
 [ - ]  winbind
 [ - ]  x11-common
 [ ? ]  zentyal


Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 03, 2015, 07:23:21 am
Dear All,

Finally, I got it work by following the link bellow:

https://tracker.zentyal.org/issues/1090

I would like to thank so much for all of you who have fully supported.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 16, 2015, 09:20:23 am
Dear All,

The Zentyal Server getting the error as bellow:
root@phnhnpdczty:~# cat /etc/krb5.conf
[libdefaults]
    default_realm = HOPE.EDU.KH
    dns_lookup_kdc = true
   dns_lookup_realm = false
    rdns = no
root@phnhnpdczty:~# cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

We now unable to create the new user please give advices as soon as possible.

Thank you!
Appreciated for all your help.
 
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: jbahillo on December 18, 2015, 11:45:52 am
Where's the error?

I can't see any
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 19, 2015, 06:43:49 am
Hello jbahillo,

Thank you so much for your active, the problem is here

root command set -e chown -R 3154:2513 '/home/samba/profiles/jonathan.sor' chmod 0700 '/home/samba/profiles/jonathan.sor' setfacl -b '/home/samba/profiles/jonathan.sor' setfacl -R -m u:root:rwx,g::---,g:2513:---,u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor' setfacl -R -m d:u:root:rwx,d:g::---,d:g:2513:---,d:u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor' failed. Error output: setfacl: Option -m: Invalid argument near character 32 Command output: . Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240

How to solve?
The new user account could not be created
The old user could not their profile folder: Example if I access file server my user account thy.ly it does't appear folders profile thy.ly.

XP client join domain with Zentyal, could not login by using account as well.

I am a baby Linux that is the reason why I always disturb you all. Apology for disturbing you :-)

Right now the school has 1 week holiday so this is the best chance for me to search and practice more and more and Learning from you all as well.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 19, 2015, 12:28:05 pm
try without dot (.) in username...
for example: jonathans
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 20, 2015, 08:35:30 am
Hello julio!

Yes already tried, it still get the error like this.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 20, 2015, 12:39:00 pm
please try with the same commands in terminal, if failure occurs, post the failure text.
Code: [Select]
sudo chown -R 3154:2513 '/home/samba/profiles/jonathan.sor'
sudo chmod 0700 '/home/samba/profiles/jonathan.sor'
sudo setfacl -b '/home/samba/profiles/jonathan.sor'
sudo setfacl -R -m u:root:rwx,g::---,g:2513:---,u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor'
sudo setfacl -R -m d:u:root:rwx,d:g::---,d:g:2513:---,d:u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor'
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 20, 2015, 02:34:23 pm
Hello Julio

Here are some error messages:

login as: root
root@10.10.10.10's password:
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.16.0-55-generic x86_64)

 * Documentation:  https://help.ubuntu.com/



You can access the Zentyal Web Interface at:

 * https://10.10.10.10:8443



0 packages can be updated.
0 updates are security updates.

*** System restart required ***
Last login: Mon Dec 21 08:13:24 2015 from 10.10.3.106
root@phnhnpdczty:~# sudo chown -R 3154:2513 '/home/samba/profiles/jonathan.sor
> '
chown: cannot access ā€˜/home/samba/profiles/jonathan.sor\nā€™: No such file or directory
root@phnhnpdczty:~# sudo chmod 0700 '/home/samba/profiles/jonathan.sor'
root@phnhnpdczty:~# sudo setfacl -b '/home/samba/profiles/jonathan.sor'
root@phnhnpdczty:~# sudo setfacl -R -m u:root:rwx,g::---,g:2513:---,u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor'
setfacl: Option -m: Invalid argument near character 32
root@phnhnpdczty:~# sudo setfacl -R -m d:u:root:rwx,d:g::---,d:g:2513:---,d:u:'jonathan.sor':rwx '/home/samba/profiles/jonathan.sor'
setfacl: Option -m: Invalid argument near character 40

root@phnhnpdczty:~#

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 21, 2015, 10:48:44 am
please run the folowing command and post the results:
Code: [Select]
sudo samba-tool user list | grep 'jonathan.sor'
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 21, 2015, 11:06:38 am
Hello Julio,

Here is the result messages:


*** System restart required ***
Last login: Mon Dec 21 10:07:22 2015 from 10.10.4.54
root@phnhnpdczty:~# sudo samba-tool user list | grep 'jonathan.sor'
ldb_wrap open of secrets.ldb
root@phnhnpdczty:~#

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 21, 2015, 11:57:29 am
that means, "jonathan.sor" as domain user doesn't exist!
network, samba server is already running??
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: engrmahe on December 21, 2015, 01:21:05 pm
1.You should check the location of Log. /var/log/zentyal.

2. LDAP. Make the local backup. If any issue of LDAP restore that old good conf file.

3. Samba status /etc/init.d/smbd status . if you get any error tell and also after check /etc/init.d/zentyal samba status

We get soon

 
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 22, 2015, 10:50:00 am
Hello  Julio and Engrmahe,

Here are the result
root@phnhnpdczty:~# /etc/init.d/smbd status
 * smbd is running
root@phnhnpdczty:~# /etc/init.d/zentyal samba status
Zentyal: status module samba:                   [ STOPPED ]
root@phnhnpdczty:~# /etc/init.d/zentyal samba start
 * Restarting Zentyal module: samba                                      [fail]
I have attached 3 log files for Log, zentyal and zentyal.log apology I could not post with attachment file so now I have to copy all directly.
I didn't know have to do with LDAP please advise me in detail.

Thankyou so much!
From the youngest linux,
Thy Ly

root@phnhnpdczty:/var/log/zentyal# ls -l
total 42048
-rw-r--r-- 1 root root  5508802 Dec 22 16:13 access.log
-rw-r--r-- 1 root root 10618376 Dec  4 15:53 access.log.1
-rw-r--r-- 1 root root   301332 Nov  6 16:57 access.log.2.gz
-rw-r--r-- 1 root root   281358 Oct 20 07:49 access.log.3.gz
-rw-r--r-- 1 root root   324217 Sep 24 10:45 access.log.4.gz
-rw-r--r-- 1 root root   342023 Aug 26 16:49 access.log.5.gz
-rw-r--r-- 1 root root   295230 Aug  7 18:04 access.log.6.gz
-rw-r--r-- 1 root root  6395713 Dec 16 14:51 error.log
-rw-r--r-- 1 ebox ebox   877358 Dec 22 15:53 redis-server.log
-rw-r--r-- 1 root root   323345 Dec 21 05:11 software.log
-rw-rw-rw- 1 ebox ebox    37753 Nov  5 11:37 upgrade.log
-rw-r--r-- 1 ebox ebox  2316509 Dec 22 15:48 zentyal.log
-rw-r--r-- 1 ebox ebox 14560134 Aug 15 17:01 zentyal.log.1
-rw-r--r-- 1 ebox ebox   812780 Aug  7 07:45 zentyal.log.2.gz

root@phnhnpdczty:/var/log# ls -l
total 120276
-rw-r--r-- 1 root     root       242 Dec 16 05:12 alternatives.log
-rw-r--r-- 1 root     root       747 Nov  5 11:36 alternatives.log.1
-rw-r--r-- 1 root     root       265 Oct 17 05:06 alternatives.log.2.gz
-rw-r--r-- 1 root     root       192 Sep 23 05:10 alternatives.log.3.gz
-rw-r--r-- 1 root     root       402 Aug 28 05:11 alternatives.log.4.gz
-rw-r--r-- 1 root     root      2674 Jul 19 20:10 alternatives.log.5.gz
-rw-r----- 1 root     adm        555 Dec 22 11:46 apport.log
-rw-r----- 1 root     adm       1104 Dec 19 21:17 apport.log.1
-rw-r----- 1 root     adm        492 Dec 18 14:44 apport.log.2.gz
-rw-r----- 1 root     adm        499 Dec 18 07:46 apport.log.3.gz
-rw-r----- 1 root     adm        460 Dec 16 17:27 apport.log.4.gz
-rw-r----- 1 root     adm        469 Dec 15 20:43 apport.log.5.gz
-rw-r----- 1 root     adm        586 Dec 14 17:44 apport.log.6.gz
-rw-r----- 1 root     adm        315 Dec 12 09:51 apport.log.7.gz
drwxr-xr-x 2 root     root      4096 Dec  1 07:51 apt
-rw-r----- 1 syslog   adm     693995 Dec 22 15:50 auth.log
-rw-r----- 1 syslog   adm    4411534 Dec 20 07:30 auth.log.1
-rw-r----- 1 syslog   adm      84788 Dec 14 07:30 auth.log.2.gz
-rw-r----- 1 syslog   adm     207314 Dec  6 07:30 auth.log.3.gz
-rw-r----- 1 syslog   adm      22396 Nov 29 07:30 auth.log.4.gz
-rw-r--r-- 1 root     root       168 Dec 12 14:49 boot.log
-rw-r--r-- 1 root     root     61499 Feb 19  2015 bootstrap.log
-rw-rw---- 1 root     utmp      1152 Dec 13 14:11 btmp
-rw-rw---- 1 root     utmp      8448 Nov 30 15:04 btmp.1
drwxr-xr-x 2 root     root      4096 Dec  1 07:51 ConsoleKit
-rw-r----- 1 root     adm      38572 Dec 12 14:49 dmesg
-rw-r----- 1 root     adm      37819 Nov 28 11:43 dmesg.0
-rw-r----- 1 root     adm      11327 Nov 28 11:00 dmesg.1.gz
-rw-r----- 1 root     adm      11330 Nov 20 15:43 dmesg.2.gz
-rw-r----- 1 root     adm      11403 Nov 11 16:06 dmesg.3.gz
-rw-r----- 1 root     adm      10930 Nov 11 14:56 dmesg.4.gz
-rw-r--r-- 1 root     root     46744 Dec 21 05:11 dpkg.log
-rw-r--r-- 1 root     root    120879 Dec  1 05:05 dpkg.log.1
-rw-r--r-- 1 root     root      4173 Oct 29 05:07 dpkg.log.2.gz
-rw-r--r-- 1 root     root      4237 Oct  1 05:05 dpkg.log.3.gz
-rw-r--r-- 1 root     root      9252 Sep  1 05:05 dpkg.log.4.gz
-rw-r--r-- 1 root     root     47841 Jul 29 17:05 dpkg.log.5.gz
-rw-r--r-- 1 root     root     32224 Dec 16 10:12 faillog
-rw-r--r-- 1 root     root      1705 Jul  5 21:52 fontconfig.log
drwxr-xr-x 2 root     root      4096 Jul  5 21:44 fsck
drwxr-xr-x 3 root     root      4096 Jul  5 21:53 installer
-rw-r----- 1 syslog   adm    1267290 Dec 22 15:50 kern.log
-rw-r----- 1 syslog   adm    3574863 Dec 20 07:35 kern.log.1
-rw-r----- 1 syslog   adm     417023 Dec 14 07:54 kern.log.2.gz
-rw-r----- 1 syslog   adm      94341 Dec  6 07:58 kern.log.3.gz
-rw-r----- 1 syslog   adm      22965 Nov 28 11:43 kern.log.4.gz
-rw-rw-r-- 1 root     utmp    730292 Dec 22 15:35 lastlog
-rw-r----- 1 root     root         0 Dec 13 07:50 lxdm.log
-rw-r----- 1 root     root      2414 Dec 13 07:50 lxdm.log.1
-rw-r----- 1 root     root      2400 Nov 29 07:58 lxdm.log.2
-rw-r----- 1 root     root      2413 Nov 22 07:58 lxdm.log.3
-rw-r----- 1 root     root      2413 Nov 16 07:35 lxdm.log.4
-rw-r----- 1 root     root         0 Nov 29 07:58 lxdm.log.old
drwxr-s--- 2 mysql    adm       4096 Dec 22 07:56 mysql
-rw-r----- 1 mysql    adm          0 Oct 27 05:06 mysql.err
-rw-r----- 1 mysql    adm          0 Dec 22 07:56 mysql.log
-rw-r----- 1 mysql    adm         20 Dec 21 07:42 mysql.log.1.gz
-rw-r----- 1 mysql    adm         20 Dec 20 07:36 mysql.log.2.gz
-rw-r----- 1 mysql    adm         20 Dec 19 07:41 mysql.log.3.gz
-rw-r----- 1 mysql    adm         20 Dec 18 08:01 mysql.log.4.gz
-rw-r----- 1 mysql    adm         20 Dec 17 07:56 mysql.log.5.gz
-rw-r----- 1 mysql    adm         20 Dec 16 07:45 mysql.log.6.gz
-rw-r----- 1 mysql    adm         20 Dec 15 07:46 mysql.log.7.gz
drwxr-x--- 2 www-data adm       4096 Jul 13 07:41 nginx
drwxr-xr-x 2 ntp      ntp       4096 Apr 13  2015 ntpstats
drwxr-xr-x 2 redis    redis     4096 Dec 13 07:50 redis
drwxr-xr-x 3 root     root      4096 Dec 22 13:35 samba
drwxr-xr-x 2 root     root      4096 Nov  9 07:49 sssd
-rw-r----- 1 syslog   adm   20606406 Dec 22 15:50 syslog
-rw-r----- 1 syslog   adm   68302288 Dec 22 07:56 syslog.1
-rw-r----- 1 syslog   adm    5149584 Dec 21 07:42 syslog.2.gz
-rw-r----- 1 syslog   adm    1083527 Dec 20 07:36 syslog.3.gz
-rw-r----- 1 syslog   adm    1351815 Dec 19 07:41 syslog.4.gz
-rw-r----- 1 syslog   adm    2686926 Dec 18 08:01 syslog.5.gz
-rw-r----- 1 syslog   adm    7627554 Dec 17 07:56 syslog.6.gz
-rw-r----- 1 syslog   adm    4422156 Dec 16 07:45 syslog.7.gz
-rw-r--r-- 1 root     root    207340 Dec 12 14:19 udev
drwxr-xr-x 2 root     root     12288 Dec 22 15:34 upstart
-rw-rw-r-- 1 root     utmp     32256 Dec 22 15:35 wtmp
-rw-rw-r-- 1 root     utmp     94080 Dec  1 07:46 wtmp.1
-rw-r--r-- 1 root     root     19097 Dec 12 14:49 Xorg.0.log
-rw-r--r-- 1 root     root     19083 Nov 28 11:43 Xorg.0.log.old
drwxr-x--- 2 ebox     adm       4096 Dec  5 07:39 zentyal
root@phnhnpdczty:/var/log/zentyal#
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 22, 2015, 11:01:52 am
Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/kEP7x1FLZM.cmd 2> /var/lib/zentyal/tmp/stderr', 'auth-client-config -a -p zentyal-krb', 256, 'ARRAY(0x5bedfa8)', 'ARRAY(0x299a848)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'auth-client-config -a -p zentyal-krb') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('auth-client-config -a -p zentyal-krb') called at /usr/share/perl5/EBox/Samba.pm line 1105
EBox::Samba::_setupNSSPAM('EBox::Samba=HASH(0x42efe90)') called at /usr/share/perl5/EBox/Samba.pm line 743
EBox::Samba::_setConf('EBox::Samba=HASH(0x42efe90)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::Samba=HASH(0x42efe90)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 972
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x42efe90)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Samba.pm line 703
EBox::Samba::_regenConfig('EBox::Samba=HASH(0x42efe90)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 999
eval {...} at /usr/share/perl5/EBox/Module/Service.pm line 998
EBox::Module::Service::restartService('EBox::Samba=HASH(0x42efe90)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 127
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 125
EBox::Util::Init::moduleAction('samba', 'restartService', 'restart') called at /usr/share/perl5/EBox/Util/Init.pm line 253
EBox::Util::Init::moduleRestart('samba') called at /etc/init.d/zentyal line 59
main::main at /etc/init.d/zentyal line 80
2015/12/22 15:48:51 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: root command auth-client-config -a -p zentyal-krb failed.
Error output: ERROR: / is world writable!
 Aborting.

Command output: .
Exit value: 1
2015/12/22 15:48:51 ERROR> Service.pm:1003 EBox::Module::Service::restartService - root command auth-client-config -a -p zentyal-krb failed.
Error output: ERROR: / is world writable!
 Aborting.

Command output: .
Exit value: 1 at root command auth-client-config -a -p zentyal-krb failed.
Error output: ERROR: / is world writable!
 Aborting.

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Module/Service.pm line 1003
EBox::Module::Service::restartService('EBox::Samba=HASH(0x42efe90)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 127
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 125
EBox::Util::Init::moduleAction('samba', 'restartService', 'restart') called at /usr/share/perl5/EBox/Util/Init.pm line 253
EBox::Util::Init::moduleRestart('samba') called at /etc/init.d/zentyal line 59
main::main at /etc/init.d/zentyal line 80
root@phnhnpdczty:/var/log/zentyal# root@phnhnpdczty:/var/log/zentyal#
-bash: root@phnhnpdczty:/var/log/zentyal#: No such file or directory
root@phnhnpdczty:/var/log/zentyal#
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 22, 2015, 05:09:27 pm
your server root path '/' writable for all users!!
repair the permissions with:
Code: [Select]
sudo chmod 0755 /
after repair try one more time the  samba restart.
Code: [Select]
sudo service zentyal samba restart
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 23, 2015, 08:59:40 am
Hello Julio,

It works fine now  :) but it look like the new user has a special permission
drwx------   2 jonathan.sor         domain users   4096 Dec 23 14:49 jonathan.sor
while the others, the old users
drwxrwxrwx   2 joshua.bluck         domain users   4096 Sep  8 14:18 joshua.bluck
What is the different?.

Thankyou so much!

Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 23, 2015, 10:49:34 am
the 'drwxrwxrwx' 0777 permission mean, everyone can read write and open this directory!! do you need this really??
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 25, 2015, 03:54:17 am
Hello  Julio,

Apology for late to reply you I was unable to access the forum page yesterday.

Thank you for your detailed explanation, actually we need read only from all users but for the owner have to be full permission read, write and execute, what should I do?.

How could I create domain user in command line and also assign to right Role and Folder Sharing?.

I want to be good at command line please advise me.

Thankyou so much for this helpful!

With Respect,
Thy Ly 
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 25, 2015, 01:23:03 pm
you can reset all user permissions to default with "apply acls recursively":
https://wiki.zentyal.org/images/4/47/En-3.5-images-filesharing-08-shares.png (https://wiki.zentyal.org/images/4/47/En-3.5-images-filesharing-08-shares.png)
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 26, 2015, 03:18:33 am
Hello Julio,

Thank you so much for your link, it is helpful but how to do with the command line?.

Are there any good link to study with command line?.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 26, 2015, 02:17:13 pm
used commands: chown, chmod, getfacl, setfacl, samba-tools (after 10s googling):
http://users.telenet.be/mydotcom/howto/linuxsbs/samba4.htm (http://users.telenet.be/mydotcom/howto/linuxsbs/samba4.htm)

don't forget:
https://wiki.zentyal.org/wiki/En/4.0/Appendix_B:_Development_and_advanced_configuration#Stubs (https://wiki.zentyal.org/wiki/En/4.0/Appendix_B:_Development_and_advanced_configuration#Stubs)
https://wiki.zentyal.org/wiki/En/4.0/Appendix_B:_Development_and_advanced_configuration#Hooks (https://wiki.zentyal.org/wiki/En/4.0/Appendix_B:_Development_and_advanced_configuration#Hooks)

if everything is working, please mark this thread as solved!
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 27, 2015, 01:59:37 pm
Hello Julio,

Thank you so much for the useful link, some user become like this:

drwx------   2 jonathan.sor         domain users   4096 Nov 30 14:43 print.admin
drwx------   2 jonathan.sor         domain users   4096 Nov 30 14:42 print.manager
drwx------   2 jonathan.sor         domain users   4096 Dec  1 09:16 print.server
drwx------   2 jonathan.sor         domain users   4096 Dec 11 10:36 pupil

What is the problem?. How to solve?. Normal when we create new user it display
drwx------   2 print.admin       domain users   4096 Nov 30 14:43 print.admin

Another thing is: we have 24 XP and 24 Linux Mint PC Client after join to the domain, it perform login very slow, why?

Thank you so much for the useful solution.

Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on December 27, 2015, 05:08:24 pm
permission: 'drwx------' 0755 is ok!
slow login: dns, wins settings ok???

more help:
https://wiki.zentyal.org/wiki/En/4.1/Domain_Name_System_(DNS) (https://wiki.zentyal.org/wiki/En/4.1/Domain_Name_System_(DNS))
https://wiki.zentyal.org/wiki/En/4.1/Network_configuration_service_(DHCP) (https://wiki.zentyal.org/wiki/En/4.1/Network_configuration_service_(DHCP))
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 28, 2015, 09:27:46 am
Hello Julio,

Thank you so much for your useful link, the DHCP we design on mikrotik cloud router.

Another thing is when computer join to domain, it could not access to any application on the local machine as well, even we tried with local administrator.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: engrmahe on December 28, 2015, 03:08:16 pm

Take a regular pack up. Just Restore and update 1. LDAP 2.php5, 3.apt-get install lamp-server^,


Dear All,

We still could not access to account mangement when we try we get like this
FATAL: Could not connect to samba LDAP server: connect: Connection refused
Please check the attachment for us.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on December 30, 2015, 03:22:50 am
Dear Engrmahe,

Thank you so much for your advices, are there any more easier guide than this?. I am the youngest Linux System.

Thank you!

Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: trysomething on January 06, 2016, 12:35:58 am
Your network module isn't working - likely you've got a couple of NIC cards and you're trying to force them all onto the same schema for some reason.
OR you've created network objects that are causing a conflict inside your LAN for whatever reason.
I'll bet that if you go into your Admin GUI and patiently, thoroughly go through each setting one by one you'll find something REALLY stupid.  I can almost guarantee you because something REALLY stupid just left me scratching my head a bit back LoL.
As for the kernel issue and not being able to install it's likely something to do with the messed up Network Module too - I'd try going through the Interfaces, Gateways, Objects and everything else to find whatever goofy thing is screwing it up, then I'd kill all of my Zentyal services BUT leave the box running and go through the following a few times:

sudo apt-get update
sudo apt-get update
sudo apt-get -f install
sudo apt-get autoclean

Those commands in some seemingly random order will get that all cleared up for you.  The cool thing about Zentyal is there's usually a pretty simple solution to almost any problem.  It's really a different animal from a regular Linux server LoL.
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on January 06, 2016, 09:21:42 am
Hello Zen Monk,

Thank for your help, well this Server was installed in the Proxmox Virtual machine.
Please have a look in the Interface.

As I mentioned, I am the youngest in Linux.

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on January 08, 2016, 06:43:23 am
Hello Everyone!

How are you today?.

Happy New Year!!!

Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 05, 2016, 04:18:38 am
Dear all,

We are getting stuck in this sudo status when do something.

root@phnhnpdczty:~# sudo dpkg --configure -a
Setting up zentyal-core (4.2.2) ...
sudo:
Another thing is we try to restore backup but we got the error message like this
Could not extract the requested backup files: date description type
So please!!!!!!!!!!!!
Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 05, 2016, 07:48:47 am
Dear All,

Another thing more we could start anything due to sudoers
root@phnhnpdczty:~# sudo service zentyal start
>>> /etc/sudoers: syntax error near line 42 <<<
sudo: parse error in /etc/sudoers near line 42
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on February 05, 2016, 03:05:51 pm
Dear All,

Another thing more we could start anything due to sudoers
root@phnhnpdczty:~# sudo service zentyal start
>>> /etc/sudoers: syntax error near line 42 <<<
sudo: parse error in /etc/sudoers near line 42
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

thank you!
Thy Ly

Please post the output of the following command:
Code: [Select]
cat /etc/sudoers
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 06, 2016, 09:02:29 am
Hello! Thank you so much for your help, the Server now back only but not proper yet.
Here is the result.
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Defaults timestamp_timeout=-1

Defaults timestamp_timeout=10

Defaults timestamp_timeout=10

Defaults timestamp_timeout=10

Defaults timestamp_timeout=-1

root@phnhnpdczty:~#

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: julio on February 06, 2016, 12:04:02 pm
open the sudoers file with visudo and delete all junk line after the "#includedir /etc/sudoers.d" line:
Code: [Select]
EDITOR=nano sudo -E visudo
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 07, 2016, 11:55:26 am
Hello!

Thank you for your advices
Here are the result after editing

# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


root@phnhnpdczty:~#

The samba in now OK, smdb ok, but still get error with element not found for some alias page.

The result with the last boot below:
root@phnhnpdczty:~# /etc/init.d/smbd status
 * smbd is running
root@phnhnpdczty:~# ls -lah /boot
total 33M
drwxr-xr-x  4 root root 3.0K Feb  5 12:31 .
drwxr-xr-x 24 root root 4.0K Feb  5 12:31 ..
-rw-r--r--  1 root root 1.2M Jan 20 21:53 abi-3.16.0-60-generic
-rw-r--r--  1 root root 168K Jan 20 21:53 config-3.16.0-60-generic
drwxr-xr-x  5 root root 1.0K Feb  5 12:31 grub
-rw-r--r--  1 root root 3.0M Nov 20 15:36 initrd.img-3.16.0-30-generic
-rw-r--r--  1 root hope  20M Feb  2 05:08 initrd.img-3.16.0-60-generic
drwx------  2 root root  12K Jul  5  2015 lost+found
-rw-------  1 root root 3.4M Jan 20 21:53 System.map-3.16.0-60-generic
-rw-------  1 root root 6.1M Jan 20 21:53 vmlinuz-3.16.0-60-generic

Thank you!
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 09, 2016, 05:04:31 am
Hello!

We got error again now  :'(
FATAL: Could not connect to samba LDAP server: connect: No such file or directory

root@phnhnpdczty:~# dpkg -l zentyal*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-=============================================================================
ii  zentyal                              4.2                     all                     Zentyal - Core metapackage
ii  zentyal-common                       4.2                     all                     Zentyal - Common Library
iF  zentyal-core                         4.2.2                   all                     Zentyal - Core
iU  zentyal-dns                          4.2.1                   all                     Zentyal - DNS Server
ii  zentyal-firewall                     4.2                     all                     Zentyal - Firewall
iU  zentyal-network                      4.2.2                   all                     Zentyal - Network Configuration
ii  zentyal-ntp                          4.2                     all                     Zentyal - NTP Service
ii  zentyal-objects                      4.2                     all                     Zentyal - Network Objects
iU  zentyal-samba                        4.2.2                   all                     Zentyal - Domain Controller and File Sharing
ii  zentyal-services                     4.2                     all                     Zentyal - Network Services
ii  zentyal-software                     4.2                     all                     Zentyal - Software Management

root@phnhnpdczty:~# sudo /etc/init.d/zentyal samba restart
 * Restarting Zentyal module: samba                                      [fail]

How to disable automatically update?.
Thy Ly
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: jbahillo on February 23, 2016, 11:29:11 am
Based on your output, you have zentyal-samba uninstallled
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on February 26, 2016, 07:01:38 am
So, how to close this ticket?.
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on March 18, 2016, 09:40:55 am
Dear Our Zentyal Server keep crashing every day after upgrading to 4.2 and we checking on the smbstatus found as below:
root@phnhnpdczty:~# smbstatus

Samba version 4.3.1-UNKNOWN-Zentyal
PID     Username      Group         Machine            Protocol Version
------------------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           Share                                                                                        Path   Name   Time

and also the it take too long to be rebooted.

Please give advices for these issue, we are using the license one.
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on March 18, 2016, 12:01:54 pm
here all our system process, any suggestion?..
PID TTY          TIME CMD
    1 ?        00:00:02 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 ksoftirqd/0
    5 ?        00:00:00 kworker/0:0H
    7 ?        00:00:07 rcu_sched
    8 ?        00:00:02 rcuos/0
    9 ?        00:00:02 rcuos/1
   10 ?        00:00:01 rcuos/2
   11 ?        00:00:00 rcuos/3
   12 ?        00:00:00 rcu_bh
   13 ?        00:00:00 rcuob/0
   14 ?        00:00:00 rcuob/1
   15 ?        00:00:00 rcuob/2
   16 ?        00:00:00 rcuob/3
   17 ?        00:00:00 migration/0
   18 ?        00:00:00 watchdog/0
   19 ?        00:00:00 watchdog/1
   20 ?        00:00:00 migration/1
   21 ?        00:00:00 ksoftirqd/1
   23 ?        00:00:00 kworker/1:0H
   24 ?        00:00:00 watchdog/2
   25 ?        00:00:00 migration/2
   26 ?        00:00:00 ksoftirqd/2
   28 ?        00:00:00 kworker/2:0H
   29 ?        00:00:00 watchdog/3
   30 ?        00:00:00 migration/3
   31 ?        00:00:00 ksoftirqd/3
   32 ?        00:00:00 kworker/3:0
   33 ?        00:00:00 kworker/3:0H
   34 ?        00:00:00 khelper
   35 ?        00:00:00 kdevtmpfs
   36 ?        00:00:00 netns
   37 ?        00:00:00 khungtaskd
   38 ?        00:00:00 writeback
   39 ?        00:00:00 ksmd
   40 ?        00:00:00 khugepaged
   41 ?        00:00:00 crypto
   42 ?        00:00:00 kintegrityd
   43 ?        00:00:00 bioset
   44 ?        00:00:00 kblockd
   45 ?        00:00:00 ata_sff
   46 ?        00:00:00 khubd
   47 ?        00:00:00 md
   48 ?        00:00:00 devfreq_wq
   50 ?        00:00:00 kworker/1:1
   51 ?        00:00:00 kworker/2:1
   52 ?        00:00:00 kworker/3:1
   53 ?        00:00:00 kworker/u8:1
   54 ?        00:00:02 kswapd0
   55 ?        00:00:00 fsnotify_mark
   56 ?        00:00:00 ecryptfs-kthrea
   68 ?        00:00:00 kthrotld
   69 ?        00:00:00 acpi_thermal_pm
   70 ?        00:00:02 vballoon
   71 ?        00:00:00 scsi_eh_0
   72 ?        00:00:00 scsi_tmf_0
   73 ?        00:00:00 scsi_eh_1
   74 ?        00:00:00 scsi_tmf_1
   76 ?        00:00:00 ipv6_addrconf
   77 ?        00:00:00 kworker/u8:3
   96 ?        00:00:00 deferwq
   97 ?        00:00:00 charger_manager
  149 ?        00:00:00 kpsmoused
  160 ?        00:00:00 kdmflush
  161 ?        00:00:00 bioset
  163 ?        00:00:00 kdmflush
  164 ?        00:00:00 bioset
  178 ?        00:00:00 kworker/0:1H
  179 ?        00:00:00 jbd2/dm-0-8
  180 ?        00:00:00 ext4-rsv-conver
  323 ?        00:00:00 kworker/2:1H
  344 ?        00:00:00 ext4-rsv-conver
  351 ?        00:00:00 jbd2/vdb1-8
  352 ?        00:00:00 ext4-rsv-conver
  458 ?        00:00:00 upstart-udev-br
  464 ?        00:00:00 systemd-udevd
  505 ?        00:00:00 ttm_swap
  644 ?        00:00:00 upstart-socket-
  691 ?        00:00:00 upstart-file-br
  694 ?        00:00:01 rsyslogd
  703 ?        00:00:00 dbus-daemon
  713 ?        00:00:00 systemd-logind
  777 ?        00:00:00 winbindd
  780 ?        00:00:00 vsftpd
  820 ?        00:00:00 winbindd
  821 ?        00:00:00 kworker/1:1H
  822 ?        00:00:00 kworker/3:1H
  888 tty4     00:00:00 getty
  890 tty5     00:00:00 getty
  896 tty2     00:00:00 getty
  897 tty3     00:00:00 getty
  900 tty6     00:00:00 getty
  927 ?        00:00:00 lxdm-binary
  938 ?        00:00:00 atd
  939 ?        00:00:00 cron
  960 ?        00:00:00 acpid
  987 ?        00:00:02 redis-server
 1000 tty7     00:00:05 Xorg
 1009 ?        00:00:01 mysqld
 1057 ?        00:00:00 kauditd
 1064 ?        00:00:00 console-kit-dae
 1137 ?        00:00:00 polkitd
 1148 ?        00:00:00 lxsession
 1189 ?        00:00:00 ssh-agent
 1194 ?        00:00:00 dbus-launch
 1195 ?        00:00:00 dbus-daemon
 1220 ?        00:00:00 openbox
 1224 ?        00:00:00 xscreensaver
 1225 ?        00:00:02 lxpanel
 1226 ?        00:00:00 pcmanfm
 1237 ?        00:00:00 ssh-agent
 1245 ?        00:00:00 menu-cached
 1293 ?        00:00:00 gconfd-2
 1295 ?        00:00:00 at-spi-bus-laun
 3704 tty1     00:00:00 getty
 4153 ?        00:00:00 kworker/1:2
 4610 ?        00:00:00 sudo
 4613 ?        00:00:02 redis-server
 4750 ?        00:00:00 sshd
 5427 ?        00:00:25 named
 5586 ?        00:00:00 ntpd
 6743 ?        00:01:16 uwsgi
 6755 ?        00:00:00 nginx
 6757 ?        00:00:00 nginx
 6758 ?        00:00:00 nginx
 6759 ?        00:00:00 nginx
 6760 ?        00:00:00 nginx
 7031 ?        00:00:00 ntpd
 8135 ?        00:01:24 global-action <defunct>
13494 ?        00:00:00 samba
13496 ?        00:00:00 samba
13497 ?        00:00:00 samba
13498 ?        00:00:00 smbd
13499 ?        00:00:00 samba
13500 ?        00:00:00 samba
13501 ?        00:01:44 samba
13502 ?        00:00:00 samba
13503 ?        00:00:00 samba
13504 ?        00:00:19 samba
13505 ?        00:00:00 samba
13506 ?        00:00:00 samba
13507 ?        00:00:00 samba
13512 ?        00:00:00 smbd
13515 ?        00:00:00 smbd
13541 ?        00:00:00 sssd
13553 ?        00:00:00 sssd_be
13567 ?        00:00:00 sssd_nss
13568 ?        00:00:00 sssd_pam
13573 ?        00:01:29 perl
13583 ?        00:00:00 winbindd
13854 ?        00:00:01 loggerd
14464 ?        00:00:03 smbd
15170 ?        00:00:00 kworker/2:2
15171 ?        00:00:01 kworker/0:2
15614 ?        00:00:00 kworker/0:0
18146 ?        00:00:00 sshd
18219 ?        00:00:00 kworker/2:0
18280 pts/8    00:00:00 bash
18303 ?        00:00:00 smbd
18304 ?        00:00:00 smbd
18317 pts/8    00:00:00 ps
Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on March 19, 2016, 02:55:48 pm
I forgot to send you this

root@phnhnpdczty:~# cat /proc/version_signature
Ubuntu 3.16.0-60.80~14.04.1-generic 3.16.7-ckt22
root@phnhnpdczty:~# uname -a
Linux phnhnpdczty 3.16.0-60-generic #80~14.04.1-Ubuntu SMP Wed Jan 20 13:37:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

root@phnhnpdczty:~# tail /proc/cpuinfo
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl pni cx16 x2apic hypervisor lahf_lm
bogomips        : 4799.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual
power management:

Title: Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
Post by: thy.ly on March 20, 2016, 08:10:28 am
Our Zentyal Kernel:

root@phnhnpdczty:~# uname -r
3.16.0-60-generic
Any idea?.