|
This is for a peer-to-peer setup. Most of this information came from stormbringer in vienna austria (link to the right) who appearently has a whole lot more experience with samba than I do. It is posted here only for my personal notes for those times when I am diconnected from the internet and am forced to rely on my intranet.
|
|
CREATED 2013-01-02 09:58:29.0
|
00-19-34
|
UPDATED 2013-01-02 09:58:34.0
|
|
|
|
First things first: Get a copy of samba if it isn't already installed.
sudo apt-get install samba
Not sure? Try stopping it first.
|
|
CREATED 2013-01-01 12:46:30.0
|
00-19-2A
|
UPDATED 2013-01-02 09:58:33.0
|
|
|
|
Once installed it will be running, stop it!.
sudo /etc/init.d/samba stop
|
|
CREATED 2013-01-01 13:00:23.0
|
00-19-2B
|
UPDATED 2013-01-01 13:40:53.0
|
|
|
|
Next get rid of the old config file at /etc/samba/smb.conf . Then create a new one...
sudo touch smb.conf
Now add the following sections as needed.
|
|
CREATED 2013-01-01 13:00:46.0
|
00-19-2C
|
UPDATED 2021-04-29 18:25:44.0
|
|
|
|
This section gives access to the home folders. Symlinks will not work and the permissions must be set correctly.
[homes] valid users = %S create mode = 0600 directory mode = 0755 browseable = no read only = no veto files = /*.{*}/.*/mail/bin/
|
|
CREATED 2013-01-01 13:28:24.0
|
00-19-30
|
UPDATED 2021-04-29 18:28:30.0
|
|
|
|
To access printers add this section ...
[print$] path = /var/lib/samba/printers browseable = yes guest ok = yes read only = yes write list = root create mask = 0664 directory mask = 0775 [printers] path = /tmp printable = yes guest ok = yes browseable = no
|
|
CREATED 2013-01-01 13:30:09.0
|
00-19-32
|
UPDATED 2021-04-29 18:30:45.0
|
|
|
|
To create a trust account you need to create a user account on the primary domain controller for the machine that needs the trust account. Then add that machine as a user to SAMBA. Machine accounts are denoted by suffixing the machine (netbios) name with a $.
To add a user account on the PDC:
useradd -d /dev/null - s /bin/false -c "[MachineNickname" -g [GroupIdForMachines] -m [MachineName]$
- -d /dev/null sets the home directory to the bit bucket
- -s /bin/false sets no shell
- -c [MachineNickname] is the nick name is what you call the machine e.g. the computer next to the beer fridge.
- -g [GroupIdForMachines] is the group id the machine accounts are in. Look at /etc/group to find this out.
- -m indicates not to create a home directory
- [MachineName] is the netbios name of the machine.
Machine accounts have no password.
Next create an account in SAMBA
smbpasswd -a -m [MachineName]$
- -a means add the record
- -m indicates that this account is a machine accont
|
|
CREATED 2017-09-20 00:34:39.0
|
00-2A-A2
|
UPDATED 2021-04-29 18:35:52.0
|
|
|