Registry: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „=first look= tdbtool /var/lib/samba/registry.tdb keys“ |
Thomas (Diskussion | Beiträge) |
||
| (22 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=first look= | =first look= | ||
==keys== | |||
tdbtool /var/lib/samba/registry.tdb keys | tdbtool /var/lib/samba/registry.tdb keys | ||
==keys and values== | |||
tdbtool /var/lib/samba/registry.tdb dumps | |||
=shares in the registry= | |||
==smb.conf== | |||
you must add this | |||
registry shares = yes | |||
==add the share "misc"== | |||
net conf addshare misc /share/misc writeable=y guest_ok=n "misc share in registry" | |||
==look in the share misc in registry== | |||
net registry export HKLM\Software\Samba /dev/stdout | grep -A 3 misc | |||
[HKLM\SOFTWARE\Samba\smbconf\misc] | |||
"path"="/daten/misc" | |||
"comment"="misc share in registry" | |||
"guest ok"="no" | |||
"read only"="no" | |||
==test the share== | |||
<pre> | |||
smbclient -U% -L localhost | |||
Domain=[XINUX] OS=[Unix] Server=[Samba 4.1.8-SerNet-Ubuntu-8.trusty] | |||
Sharename Type Comment | |||
--------- ---- ------- | |||
IPC$ IPC IPC Service (Samba 4.1.8-SerNet-Ubuntu-8.trusty) | |||
sysvol Disk | |||
netlogon Disk | |||
misc Disk misc share in registry | |||
Domain=[XINUX] OS=[Unix] Server=[Samba 4.1.8-SerNet-Ubuntu-8.trusty] | |||
Server Comment | |||
--------- ------- | |||
Workgroup Master | |||
--------- ------- | |||
</pre> | |||
==add values to a share "misc"== | |||
net conf setparm misc "browseable" "no" | |||
==delete values from a share "misc"== | |||
net conf delparm misc "browseable | |||
==save registry shares== | |||
net registry export HKLM\software\samba shares.reg | |||
==del share "misc"== | |||
net conf delshare misc | |||
==restore registry shares== | |||
net registry import shares.reg | |||
=home dirs= | |||
==directory and rights== | |||
mkdir /daten/users | |||
chmod 755 /home/users | |||
chgrp "Domain Admins" /home/users | |||
==share and options== | |||
*net conf addshare users /home/XINUX writeable=y guest_ok=n "Home-Dirs" | |||
*net conf setparm users "browseable" "no" | |||
*net conf setparm users "create mask" "700" | |||
*net conf setparm users "directory mask" "700" | |||
=Server gespeicherte Profile= | |||
==Anlegen== | |||
*mkdir /share/profiles | |||
*chmod 770 /share/profiles/ | |||
*chgrp "Domain users" /share/profiles/ | |||
*net conf addshare profile /share/profile writeable=y guest_ok=n "User Profile" | |||
*net conf setparm profile "browseable" "no" | |||
*net conf setparm profile "profile acls" "yes" | |||
=from windows side= | |||
==share template== | |||
<pre> | |||
Windows Registry Editor Version 5.00 | |||
[HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\TEMPLATE] | |||
"path"="/daten/TEMPLATE" | |||
"comment"="TEMPLATE share in registry" | |||
"guest ok"="no" | |||
"read only"="no" | |||
</pre> | |||
*replace TEMPLATE with your-share-name | |||
[[Datei:replace-share.jpg]] | |||
*save as your-share-name.reg | |||
*import your-share-name.reg with regedit | |||
**important ... destination must be samba-server | |||
=Shares kontrollieren= | |||
net conf listshares | |||
Aktuelle Version vom 13. Dezember 2016, 18:01 Uhr
first look
keys
tdbtool /var/lib/samba/registry.tdb keys
keys and values
tdbtool /var/lib/samba/registry.tdb dumps
smb.conf
you must add this
registry shares = yes
net conf addshare misc /share/misc writeable=y guest_ok=n "misc share in registry"
net registry export HKLM\Software\Samba /dev/stdout | grep -A 3 misc [HKLM\SOFTWARE\Samba\smbconf\misc] "path"="/daten/misc" "comment"="misc share in registry" "guest ok"="no" "read only"="no"
smbclient -U% -L localhost Domain=[XINUX] OS=[Unix] Server=[Samba 4.1.8-SerNet-Ubuntu-8.trusty] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Samba 4.1.8-SerNet-Ubuntu-8.trusty) sysvol Disk netlogon Disk misc Disk misc share in registry Domain=[XINUX] OS=[Unix] Server=[Samba 4.1.8-SerNet-Ubuntu-8.trusty] Server Comment --------- ------- Workgroup Master --------- -------
net conf setparm misc "browseable" "no"
net conf delparm misc "browseable
net registry export HKLM\software\samba shares.reg
net conf delshare misc
net registry import shares.reg
home dirs
directory and rights
mkdir /daten/users chmod 755 /home/users chgrp "Domain Admins" /home/users
- net conf addshare users /home/XINUX writeable=y guest_ok=n "Home-Dirs"
- net conf setparm users "browseable" "no"
- net conf setparm users "create mask" "700"
- net conf setparm users "directory mask" "700"
Server gespeicherte Profile
Anlegen
- mkdir /share/profiles
- chmod 770 /share/profiles/
- chgrp "Domain users" /share/profiles/
- net conf addshare profile /share/profile writeable=y guest_ok=n "User Profile"
- net conf setparm profile "browseable" "no"
- net conf setparm profile "profile acls" "yes"
from windows side
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Samba\smbconf\TEMPLATE] "path"="/daten/TEMPLATE" "comment"="TEMPLATE share in registry" "guest ok"="no" "read only"="no"
- replace TEMPLATE with your-share-name
- save as your-share-name.reg
- import your-share-name.reg with regedit
- important ... destination must be samba-server
net conf listshares
