Git Product home page Git Product logo

samba4's Introduction

samba4

==============

Here you can find some scripts I daily use with samba 4 (AD-DC)

All my scripts are made and tested on Debian Jessie and Stretch servers. Questions about the scripts, mail the samba mailing list, i'll answer them. If you have improvements, well add them thats why ive added them on github.

A small recap of these scripts.

backup-script/backup_samba4: A modified version of the original samba_backup script.

samba-check-SePrivileges.sh : shows the configured SePrivileges and its groups set, no modifications are done.

samba-check-set-sysvol.sh: check and set the ACL for sysvol and tells you what to check.

samba-info.sh: simpel tool to show domain info. Works now for AD Member and AD DC.

samba-setup-checkup.sh: (Work in progress), Goal, check you system for the correct and needed setttings to install samba.

samba-with-nfsv4.sh: the script i used to setup my domain members on my jessie server. Debian stretch is different.

samba-dns-mass-add.sh: This script create hostnames between an asked range with A and PTR records.

samba-collect-debug-info.sh: This script collects some debugging info to a file.
Please note, this script is tested only on debian, it will not work correctly yet for other OS and/or source installations. ONLY tested on AD-DC setups, not yet for member servers.

donations

If you like my work, support me a bit, even with 1 $ your helping me.
I dont ask for hunderds, a (few) buck(s) are a great gift also.

  • Donate via Paypal (my paypal email is louis at van-belle .nl)
  • Donate via Bitcoin: 3BMEXFUrncjVKByryNU1fcVLBLKE8i9TpX

Thanks

samba4's People

Contributors

a1is3n avatar francescm avatar lieblinger avatar stefangweichinger avatar thctlo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samba4's Issues

Samba4 Backup - tar issue!?

Hi!

I just tried the samba4 backup script and got an TAR error.

./backup_samba4 --debug
Command checks : CMD_ECHO contains : /bin/echo
Command checks : CMD_SAMBA contains : /usr/sbin/samba
Command checks : CMD_TDBBACKUP contains : /usr/bin/tdbbackup
Command checks : CMD_LOGGER contains : /usr/bin/logger
Command checks : CMD_TAR contains : /bin/tar
Command checks : CMD_DIRNAME contains : /usr/bin/dirname
Command checks : CMD_CAT contains : /bin/cat
Command checks : CMD_GREP contains : /bin/grep
Command checks : CMD_AWK contains : /usr/bin/awk
Command checks : CMD_SED contains : /bin/sed
Command checks : CMD_DATE contains : /bin/date
Command checks : CMD_FIND contains : /usr/bin/find
Command checks : CMD_RM contains : /bin/rm
Command checks : CMD_GETFACL contains : /usr/bin/getfacl
Command checks : CMD_TAIL contains : /usr/bin/tail
Command checks : CMD_CUT contains : /usr/bin/cut
Command checks : CMD_WC contains : /usr/bin/wc
Command checks : CMD_AWK contains : /usr/bin/awk
Command checks : CMD_SORT contains : /usr/bin/sort
Starting backup with ./backup_samba4
Backupdate = 2019-10-02
Message: checking for previous backups of this day : private
Counter = 2
Message: setting date and counter : 2019-10-02-3 for private
/bin/tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
/bin/tar: --exclude „.ldb“ has no effect
/bin/tar: --exclude „
.tdb“ has no effect
/bin/tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler

What I could do? Any advices?

best regards,
semi

No need to install ssh-krb5 on stretch

If you install ssh-krb5, you get an empty package. In the news you can read:

zcat /usr/share/doc/ssh-krb5/NEWS.Debian.gz
ssh-krb5 (1:4.3p2-7) unstable; urgency=low

The normal openssh-server and openssh-client packages in Debian now
include full GSSAPI support, including key exchange. This package is
now only a transitional package that depends on openssh-server and
openssh-client and configures openssh-server for GSSAPI authentication
if it wasn't already.

You can now simply install openssh-server and openssh-client directly
and remove this package. Just make sure that /etc/ssh/sshd_config
contains:

GSSAPIAuthentication yes
GSSAPIKeyExchange yes

if you want to support GSSAPI authentication to your ssh server.

-- Russ Allbery [email protected] Tue, 03 Oct 2006 22:27:27 -0700

So it would be better to point out user to straight modify /etc/ssh/sshd_config as instructed.

Repo key not accepted when bullseye-samba414 attempted

Can't install the key per the website documentation. Or the key file is some how incorrect? The website steps work fine for repo setup on Buster but apparently not on Bullseye?

Tried...
# wget -O- https://apt.van-belle.nl/louis-van-belle.gpg-key.asc | gpg --dearmor | sudo tee /usr/share/keyrings/louis-van-belle.gpg > /dev/null

And the file is created, but the key fails or appears to be rejected when repo update attempted...

# nano /etc/apt/sources.list.d/van-belle.list
# AptVanBelle repo for samba...
deb http://apt.van-belle.nl/debian bullseye-samba414 main contrib non-free

# apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Get:3 http://apt.van-belle.nl/debian bullseye-samba414 InRelease [12.0 kB]
Err:3 http://apt.van-belle.nl/debian bullseye-samba414 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FF620912DC8D81F8
Reading package lists... Done
W: GPG error: http://apt.van-belle.nl/debian bullseye-samba414 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FF620912DC8D81F8
E: The repository 'http://apt.van-belle.nl/debian bullseye-samba414 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I used '[trusted=yes]' to enable use of the repo, but this is not a good practice of course.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.