LoginSignup
0
1

sambaaddcインストール作業ログon ubuntuServer 23.10

Last updated at Posted at 2024-04-13
timedatectl set-timezone Asia/Tokyo
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
sudo apt install acl attr dnsutils krb5-config krb5-user samba samba-dsdb-modules samba-vfs-modules smbclient winbind

EXAMPLE.LOCAL
raspberrypi
raspberrypi

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.org
sudo mv /etc/krb5.conf /etc/krb5.conf.org
sudo samba-tool domain provision -use-rfc2307 --interactive
sudo cp /var/lib/samba/private/krb5.conf /etc/
sudo systemctl stop smbd.service nmbd.service winbind.service
sudo systemctl disable smbd.service nmbd.service winbind.service
systemctl unmask samba-ad-dc.service
systemctl enable samba-ad-dc.service
systemctl start samba-ad-dc.service
systemctl status samba-ad-dc.service
echo -e "nameserver 127.0.0.1\nsearch example.local" | sudo tee /etc/resolv.conf
sudo samba-tool computer list
sudo smbclient //localhost/netlogon -UAdministrator -c 'ls'
sudo host -t SRV _ldap._tcp.example.local
sudo host -t SRV _kerberos._udp.example.local
sudo host -t A example.local
sudo samba-tool domain passwordsettings show
sudo samba-tool domain passwordsettings set --complexity=off
sudo samba-tool domain passwordsettings set --history-length=2
sudo samba-tool domain passwordsettings set --min-pwd-length=4
sudo samba-tool domain passwordsettings set --max-pwd-age=0
cat /etc/hosts
cat /etc/krb5.conf
cat /etc/resolv.conf
cat /etc/samba/smb.conf
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1