Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - quentin.jodhaa

Pages: [1]
1
Installation and Upgrades / Hidden shares
« on: July 07, 2011, 07:28:35 pm »
Hi all,

Here is my 2 cts on how to hide shares with Zentyal. Thanks to José for putting me on the right track, I just modified one thing.

1) Create the shares with Zentyal as you normally do

2) Prepare the configuration file

Code: [Select]
mkdir -p /etc/ebox/stubs/samba/
cp /usr/share/ebox/stubs/samba/smb.conf.mas /etc/ebox/stubs/samba/

3) Set up the "includes"

Code: [Select]
nano /etc/ebox/stubs/samba/smb.conf.mas
Modify the ligne 190 :
Code: [Select]
browseable = Yes
By :
Code: [Select]
include = /etc/samba/hiddenshares.conf
4) Configure the hidden shares
Code: [Select]
nano /etc/samba/hiddenshares.conf
Copy/paste in it the sections from /etc/samba/smb.conf of the shares you want to hide

Replace "browseable = yes" by "browseable = no", without the quotes, in each section

5) Restart samba
Code: [Select]
sudo /etc/init.d/ebox samba restart
I hope that will help.

If you have any idea of improvement, please let me know, and if it helped you, please let me know as well, it will make my day :)

To the Zentyal team : It would be awesome if in the Zentyal interface there was a box to tick : "Make invisible"

Cheers,

QJ

2
Installation and Upgrades / Re: [SAMBA] Hide unauthorized folders
« on: June 30, 2011, 10:59:20 pm »
+1 on this topic

Any idea anyone ?

3
Wow, this is really good news, many thanks to you guys, and bravo for the reactivity !

4
Josep :

Quote
How come there is a single quote unescaped in 'home/samba/shares/MARKETING/Products\\ Index/AA0062\\ Workin\'\''Hard\\ EXP\\ 0.4/Technical\\ Sheet'?

Huh, I don't know ! I matched this path to the real one. Did you see anything wrong in my config file due to a typo from me ?

Javier :

Quote
By the way, quentin, do you don't had the complete patch; in your coe you have lsot the space escape for $file. This is why it complains of "6 arguments instead 2".

I'm sorry but I don't understand, 'coe', 'lsot' ? Can you explain it differently please ?

Thank you for debugging and submitting, how can I know when an official update is available ?

In the meantime, I will do the Josep changes again and make sure everything is fine.

I'll let you know if I see any positive change.

Bests,

QJ

5
Hi,

I just tried, here are the results :

To be more accurate, the full path will now be : /home/samba/shares/MARKETING/Products Index/AA0062 Workin'Hard/EXP 0.4/Technical Sheet/

First paragraph :

Quote
root command /usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 1305576008 --file-to-restore 'home/samba/shares/MARKETING/Products\\ Index/AA0062\\ Workin\'\''Hard\\ EXP\\ 0.4/Technical\\ Sheet' file:///BACKUP --no-encryption '/home/samba/shares/MARKETING/Products\ Index/AA0062\ Workin\'\''Hard\ EXP\ 0.4/Technical\ Sheet' failed. Error output: Command line error: Expected 2 args, got 7 Enter 'duplicity --help' for help screen. Command output: . Exit value: 2

Then :
Quote
root command /usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 1305576008 --file-to-restore 'home/samba/shares/MARKETING/Products\\ Index/AA0062\\ Workin\'\''Hard\\ EXP\\ 0.4/Technical\\ Sheet' file:///BACKUP --no-encryption '/home/samba/shares/MARKETING/Products\ Index/AA0062\ Workin\'\''Hard\ EXP\ 0.4/Technical\ Sheet' failed.
Error output: Command line error: Expected 2 args, got 7
Enter 'duplicity --help' for help screen.

Command output: .
Exit value: 2 at /usr/share/perl5/Error.pm line 182
Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...', 'output', 'ARRAY(0xb9e1dea0)', 'error', 'ARRAY(0xb9762968)', 'exitValue', 2, ...) called at /usr/share/perl5/EBox/Sudo.pm line 212
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/ebox/tmp/NbBMevQg3N.cmd 2> /v...', '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...', 512, 'ARRAY(0xb9e1dea0)', 'ARRAY(0xb9762968)') called at /usr/share/perl5/EBox/Sudo.pm line 181
EBox::Sudo::_root(1, '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...') called at /usr/share/perl5/EBox/Sudo.pm line 136
EBox::Sudo::root('/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...') called at /usr/share/perl5/EBox/EBackup.pm line 206
EBox::EBackup::restoreFile('EBox::EBackup=HASH(0xba94da58)', '/home/samba/shares/MARKETING/Products Index/AA0062 Workin\'...', 'Mon May 16 22:00:08 2011') called at /usr/share/perl5/EBox/EBackup/Model/RemoteFileList.pm line 221
EBox::EBackup::Model::RemoteFileList::setTypedRow('EBox::EBackup::Model::RemoteFileList=HASH(0xbb67dcf8)', 21313, 'HASH(0xbcdf8408)', 'force', undef, 'readOnly', undef) called at /usr/share/perl5/EBox/Model/DataTable.pm line 1306
EBox::Model::DataTable::setRow('EBox::EBackup::Model::RemoteFileList=HASH(0xbb67dcf8)', undef, 'date', 'Mon May 16 22:00:08 2011', 'filter', 'PR0062', 'file', '/home/samba/shares/MARKETING/Products Index/AA0062 Workin\'...', 'id', ...) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 121
EBox::CGI::Controller::DataTable::editField('EBox::CGI::Controller::DataTable=HASH(0xb9fdfc80)') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 226
EBox::CGI::Controller::DataTable::_process('EBox::CGI::Controller::DataTable=HASH(0xb9fdfc80)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 174
EBox::CGI::ClientRawBase::run('EBox::CGI::Controller::DataTable=HASH(0xb9fdfc80)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'EBackup/Controller/RemoteFileList', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbc051650)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbc051e90)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbc051e90)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbc051650)') called at -e line 0
eval {...} called at -e line 0

To bu sure, here is the extract from /usr/share/perl5/EBox/EBackup.pm after I've added your modifications :

Quote
my $rFile;
    if ($file eq '/') {
        $rFile = undef;
    } else {
        $rFile = $file;
        $rFile =~ s:^/::; # file must be relative

        # shell quote does not work well for espaces with duplicity...
        $rFile =~ s:\ :\\\ :g;
        $rFile =~ s/\\/\\\\/g;
        $rFile =~ s/\'/\\\'/g;
        $rFile = shell_quote($rFile);
    }

        $destination =~ s/\\/\\\\/g;
        $destination =~ s/\'/\\\'/g;

    # shell quote does not work well for espaces with duplicity...
    $destination =~ s:\ :\\\ :g;
    $destination = shell_quote($destination);

What do you think about it ?

6
Thanks Josep,

I'll try it later today when no one is working on the server, and I'll keep you posted for sure.

Thanks for your time and your expertise.

QJ

7
Hi Josep,

Thanks for helping.

I've read your reply, but I didn't see what I had to change. Did I miss something ?

QJ

8
Hi,

Thanks for your quick reply.

I've added the line as mentionned, I rebooted and checked that the change was still here, it was.

When I tried to recover my folder, I get a first paragraphe, with a grey background, saying :

Quote
root command /usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 1305576008 --file-to-restore '/home/samba/shares/myshare/subfolder/workin'/mywork' file:///BACKUP --no-encryption '/home/samba/shares/myshare/subfolder/workin'/mywork' failed. Error output: Command line error: Expected 2 args, got 0 Enter 'duplicity --help' for help screen. Command output: . Exit value: 2

I have to mention that I have some spaces in the path as well. The full path with the first trailing slash is 90 characters long, including 5 spaces and 1 '

Then below this quote I have this :

Quote
To show technical details click here. [nothing happens when I click]

Trace
root command /usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 1305576008 --file-to-restore 'home/samba/shares/myshare/subfolder/workin'/mywork' file:///BACKUP --no-encryption '/home/samba/shares/myshare/subfolder/workin'/mywork' failed.
Error output: Command line error: Expected 2 args, got 0
Enter 'duplicity --help' for help screen.

Command output: .
Exit value: 2 at /usr/share/perl5/Error.pm line 182
Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...', 'output', 'ARRAY(0xb8c4aea8)', 'error', 'ARRAY(0xb858f9c0)', 'exitValue', 2, ...) called at /usr/share/perl5/EBox/Sudo.pm line 212
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/ebox/tmp/Q0KzsGVP4c.cmd 2> /v...', '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...', 512, 'ARRAY(0xb8c4aea8)', 'ARRAY(0xb858f9c0)') called at /usr/share/perl5/EBox/Sudo.pm line 181
EBox::Sudo::_root(1, '/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...') called at /usr/share/perl5/EBox/Sudo.pm line 136
EBox::Sudo::root('/usr/share//ebox-ebackup/ebox-duplicity-wrapper --force -t 13...') called at /usr/share/perl5/EBox/EBackup.pm line 201
EBox::EBackup::restoreFile('EBox::EBackup=HASH(0xb96844f8)', '/home/samba/shares/myshare/subfolder/workin\'...', 'Mon May 16 22:00:08 2011') called at /usr/share/perl5/EBox/EBackup/Model/RemoteFileList.pm line 221
EBox::EBackup::Model::RemoteFileList::setTypedRow('EBox::EBackup::Model::RemoteFileList=HASH(0xba4ab518)', 21315, 'HASH(0xbd5c41b0)', 'force', undef, 'readOnly', undef) called at /usr/share/perl5/EBox/Model/DataTable.pm line 1306
EBox::Model::DataTable::setRow('EBox::EBackup::Model::RemoteFileList=HASH(0xba4ab518)', undef, 'date', 'Mon May 16 22:00:08 2011', 'filter', 'mywork', 'file', '/home/samba/shares/myshare/subfolder/workin\'...', 'id', ...) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 121
EBox::CGI::Controller::DataTable::editField('EBox::CGI::Controller::DataTable=HASH(0xbb2f2748)') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 226
EBox::CGI::Controller::DataTable::_process('EBox::CGI::Controller::DataTable=HASH(0xbb2f2748)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 174
EBox::CGI::ClientRawBase::run('EBox::CGI::Controller::DataTable=HASH(0xbb2f2748)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'EBackup/Controller/RemoteFileList', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbae56098)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbbbc0998)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbbbc0998)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbae56098)') called at -e line 0
eval {...} called at -e line 0

How to report this problem

    Download the log file with additional information by clicking here.
    If the problem has ocurred right after installing or upgrading Zentyal, please download this file.
    Create a new ticket in the Zentyal trac by clicking here.
    Write a short description of the problem in the summary field.
    Write a detailed report of what you were doing before this problem ocurred in the description field.
    Do not forget to attach the downloaded file in the ticket.

I've tried to replace the real values with precision.

Many thanks for your help.

Bests,

QJ

9
Hi guys,

I have an up-to-date Zentyal server used mainly for sharing files.

I came across a problem yesterday when I tried to recover a folder named like this : /home/myuser/samba/shares/myshare/subfolder/workin'/mywork

I need to recover the "mywork" folder, but I get an error about a non authorized character, and I guess it is the ' in workin'

Questions :

1) Is there a quick workaround ?
2) Is it a bug ?
3) Would someone know how to recover that folder in CLI with duplicity ? (where I guess I can use workin\' or "myfullpath")

Many thanks for your help, and keep up the good work !

QJ

10
Hi guys,

I have a Zentyal server with Zarafa Community Edition (6.40.7-26119) installed. Yesterday, after updating the server, I couldn't login on zarafa with any users.

I've deleted the ZCE to revert to the default one, installed by Zentyal. Users could log in but all the emails and configs of Zarafa were gone. I reinstalled the ZCE, and this is the message I got in the logs :

Code: [Select]
Wed Apr 27 12:48:23 2011: Starting zarafa-server version 6,40,5,24860, pid 9507
Wed Apr 27 12:48:23 2011: Connection to database 'zarafa' succeeded
Wed Apr 27 12:48:23 2011: WARNING: zarafa-licensed not running, commercial features will not be available until it's started.
Wed Apr 27 12:48:23 2011: WARNING: Database version is newer than the server version
Wed Apr 27 12:48:23 2011:    You can force the server to start with --ignore-database-version-conflict
Wed Apr 27 12:48:23 2011:    Warning, you can lose data! If you don't know what you're doing, you shouldn't be using this option!
Wed Apr 27 12:48:23 2011: Server shutdown complete.

When I use --ignore-database-version-conflict, the server starts but the users can't log in (can't connect to zarafa's server).

The mysql database size seems ok, 3.9 Gb.

Any help would be greatly appreciated, really.

Bests,

QJ

11
Installation and Upgrades / Re: probleme smtp with outlook express
« on: February 10, 2011, 11:09:42 am »
+1

I'm having the same issue. Any techie here to help us ?

12
Hi,

Thanks for the tip, I'm re-opening this thread as I have to use a certified certificat (from Gandi), and I only have a .pem and a .crt files.

How should I use them without breaking everything ? I need to use them for Zarafa in https.

Thanks to those who will reply, and many thanks for this great product.

And I mean great !

Bests,

QJ

13
Hi Newton, Hi guys,

I'm having the exact same problem.

I've been able to activate the ssl for the webserver and therefore to have access to zarafa with ssl, but then I played with the certificates for the vpn, and now in Services Certificates, webserver is greyed out, unclickable.

The common name of Web Server is different from the others though, it is my fqdn while the others are 'ebox'.

Any hint would be greatly appreciated.

I'm running Zentyal 2.0-2, installed from the iso.

Two network cards, but only eth0 has been in use so far.

Thanks again in advance,

Quentin

Pages: [1]