Beruflich Dokumente
Kultur Dokumente
https://www.howtoforge.com/tutorial/debian-samba-server/
English |
Deutsch
Log in or Sign up
Tutorial search
Tutorials
1 de 12
7 (Wheezy)
6 (Squeeze)
5 (Lenny)
4
Author:
Published:
Tags:
Till Brehm
Aug 05, 2015
debian, samba, storage
On this page
1 Preliminary Note
2 Installing Samba
3 Adding Samba Shares
3.1 Group share
3.2 Home directories
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
Debian_8_Samba_Server.ova
VMWare Image Import Guide.
Other Downloads:
Tweet
67
Recommend
65
13
2 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
3 de 12
16/11/2015 23:26
1 Preliminary Note
https://www.howtoforge.com/tutorial/debian-samba-server/
I'm using a Debian 8 system here with the hostname debian.example.com and the IP address
192.168.1.100.
I will use the nano editor in this tutorial to edit
config files on the shell. Nano can be installed
with the command:
notepad C:\Windows\System32\drivers\etc\hosts
debian.example.com
debian
at the end of the file. Replace the IP address with the server IP and the hostname with the hostname
that you have chosen for your server.
4 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
2 Installing Samba
Connect to your server on the shell as root user and install the Samba packages:
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
nano /etc/samba/smb.conf
Replace WORKGROUP with the workgroup name that is used on your Windows clients. If you don't
know the name of the workgroup, run this command on the Windows client to get the workgroup
name:
5 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
Then close the Samba configuration file on the server and restart Samba:
mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/
mkdir -p /home/shares/anonymous
chown -R root:users /home/shares/anonymous/
chmod -R ug+rwx,o+rx-w /home/shares/anonymous/
nano /etc/samba/smb.conf
6 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
This is a share that is accessible and writable for all members of our "users" group. Add the following
config at the end of the smb.conf file.
[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
7 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
path = /home/shares/anonymous
force group = users
create mask = 0660
directory mask = 0771
browsable =yes
writable = yes
guest ok = yes
Set a password for tom in the Linux system user database. If the user tom should not be able to log
into the Linux system, skip this step.
passwd tom
8 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
smbpasswd -a tom
9 de 12
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
6 Links
Samba: http://www.samba.org/
Debian: http://www.debian.org/
view as pdf |
Share this page:
10 de 12
Tweet
67
Recommend
65
13
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
3 Comment(s)
Add comment
Name *
Email *
Comments
From: Raphael at: 2015-08-26 18:10:36
Reply
11 de 12
Reply
16/11/2015 23:26
https://www.howtoforge.com/tutorial/debian-samba-server/
hi,
perfect setup for a tutorial. i would lile to suggest to use sudo apt-get install samba-common-bin
enabeling passwords et cetera.
regards
From: Andrey at: 2015-11-03 11:35:17
Reply
Good tutorial.
But whay you installed additional packages libcups2 and cups if you did't use printing ?
Tutorials
12 de 12
Contact
Help
Imprint
Tutorials
Top
Terms
16/11/2015 23:26