Samba3: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 42: | Zeile 42: | ||
/etc/init.d/nmb restart | /etc/init.d/nmb restart | ||
/etc/init.d/smb restart | /etc/init.d/smb restart | ||
| + | =testen des samba servers= | ||
| + | ==anonmym== | ||
| + | smbclient -U% -L localhost | ||
| + | ==user== | ||
| + | smbclient -U <username%password> -L localhost | ||
Version vom 5. November 2014, 19:41 Uhr
Systemuser anlegen
useradd -m <username>
Fügt den Benutzer hinzu
sudo smbpasswd -a <username>
Entfernt den Benutzer
sudo smbpasswd -x <username>
Deaktiviert den Benutzer
sudo smbpasswd -d <username>
Aktiviertden Benutzer
sudo smbpasswd -e <username>
config
/etc/samba/smb.conf
minimal
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
usershare allow guests = Yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[share]
comment = share dir
path = /share
read only = No
store dos attributes = Yes
inherit acls = Yes
testen der config
testparm
starten von samba
/etc/init.d/nmb start /etc/init.d/smb start
stoppen von samba
/etc/init.d/nmb stop /etc/init.d/smb stop
restarten von samba
/etc/init.d/nmb restart /etc/init.d/smb restart
testen des samba servers
anonmym
smbclient -U% -L localhost
user
smbclient -U <username%password> -L localhost