Author Topic: Canot share folder  (Read 1371 times)

spravce

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Canot share folder
« on: November 25, 2019, 07:52:36 am »
Hi,
I have btrfs mounted on /data. There is here subvolume "samba" and its subvolume "drivers" ( as folder /data/samba/drivers ). I cannot share this folder by webUI, only /data allow me . /data/samba is  rejected with "Error getting filesystem format in /data/samba".

When I edit /etc/samba/shares, it works. What matter ?

Thanks

spravce

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Canot share folder
« Reply #1 on: November 25, 2019, 12:52:46 pm »
Ok, problem is still not solved by UI, but I found workaround by modifying /etc/zentyal/stubs/samba/shares.mas

But there is another problem:

root@zendc:~# service zentyal
zentyal: unrecognized service


not matter service zentyal samba or service zentyal dns ... unrecognized. What  do I wrong ?

I have Zentyal 6.0 ...

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Canot share folder
« Reply #2 on: December 13, 2019, 05:31:10 pm »
 :)

Zentyal has his own shell.

Code: [Select]
root@zentyal:~# zs module start
module is not a valid module name
Module list:
network firewall antivirus audit dns ebackup logs ntp samba webadmin
root@zentyal:~# zs
Usage: /usr/bin/zs start|stop|restart
       /usr/bin/zs <module> start|stop|status|enabled|restart

Also useful OS level:

Code: [Select]
root@zentyal:~# systemctl list-units | grep zentyal
  zentyal.loggerd.service                                                                  loaded active running   Zentyal logger daemon                                                       
  zentyal.lxdm.service                                                                     loaded active running   Zentyal LXDE Display Manager                                                 
  zentyal.samba-sync.service                                                               loaded active running   Zentyal daemon to check uid and gid numbers                                 
  zentyal.service                                                                          loaded active exited    Zentyal start/stop task                                                     
  zentyal.webadmin-nginx.service                                                           loaded active running   Nginx http daemon for Zentyal web admin                                     
  zentyal.webadmin-uwsgi.service                                                           loaded active running   uWSGI daemon for Zentyal webadmin       

And so, for instance:

Code: [Select]
root@zentyal:~# systemctl status zentyal.service
● zentyal.service - Zentyal start/stop task
   Loaded: loaded (/lib/systemd/system/zentyal.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2019-12-13 12:16:17 CET; 4h 35min ago
  Process: 820 ExecStart=/usr/bin/zs start (code=exited, status=0/SUCCESS)
 Main PID: 820 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 3573)
   CGroup: /system.slice/zentyal.service

dic 13 12:16:17 zentyal sudo[2316]: pam_unix(sudo:session): session opened for user root by (uid=0
dic 13 12:16:17 zentyal sudo[2316]: pam_unix(sudo:session): session closed for user root
dic 13 12:16:17 zentyal sudo[2321]:     ebox : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/sh -
dic 13 12:16:17 zentyal sudo[2321]: pam_unix(sudo:session): session opened for user root by (uid=0
dic 13 12:16:17 zentyal zs[820]:  * Starting Zentyal module: webadmin
dic 13 12:16:17 zentyal zs[820]:    ...done.
dic 13 12:16:17 zentyal sudo[2321]: pam_unix(sudo:session): session closed for user root
dic 13 12:16:17 zentyal systemd[1]: Started Zentyal start/stop task.
dic 13 12:18:19 zentyal sudo[1775]: pam_unix(sudo:session): session closed for user root
dic 13 12:18:19 zentyal sudo[1635]: pam_unix(sudo:session): session closed for user root

Most of time you will use the zs command.

Cheers
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,