Author Topic: Ugen needed help Zentyal: status module samba: [ STOPPED ]  (Read 9553 times)

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #15 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
« Last Edit: December 02, 2015, 07:08:19 am by thy.ly »

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #16 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

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #17 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.
 

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #18 on: December 18, 2015, 11:45:52 am »
Where's the error?

I can't see any

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #19 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

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #20 on: December 19, 2015, 12:28:05 pm »
try without dot (.) in username...
for example: jonathans

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #21 on: December 20, 2015, 08:35:30 am »
Hello julio!

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

Thank you!
Thy Ly

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #22 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'

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #23 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
« Last Edit: December 21, 2015, 04:15:30 am by thy.ly »

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #24 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'

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #25 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

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #26 on: December 21, 2015, 11:57:29 am »
that means, "jonathan.sor" as domain user doesn't exist!
network, samba server is already running??
« Last Edit: December 21, 2015, 12:00:50 pm by julio »

engrmahe

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #27 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

 

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #28 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#
« Last Edit: December 22, 2015, 10:54:28 am by thy.ly »

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #29 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#