myNAS samba

Différence entre les versions 2011/04/30 21:33 et 2011/04/30 21:24.
! En Cours...

!! Montage des disques
~# blkid
{{
/dev/sda1: LABEL="DATA1" UUID="e6d76449-1bbf-4065-ad98-fcd8ed62d166" TYPE="ext4"
/dev/sdb1: LABEL="DATA3" UUID="d1b66496-ae59-4459-b7aa-502a0a3b7b9f" TYPE="ext4"
/dev/sdc1: LABEL="DATA2" UUID="531f1ce0-55df-4bc2-ad26-bc7aa079d11f" TYPE="ext4"
/dev/sdd1: LABEL="DATA4" UUID="e2149da0-acac-46fe-a674-3e57e70ae92d" TYPE="ext4"
/dev/sde1: UUID="1a83cf36-7835-4c42-80f9-64d1183bed34" TYPE="ext4"
/dev/sde2: LABEL="WINDOWS 7" UUID="49C661400EF0C3F2" TYPE="ntfs"
/dev/sde3: LABEL="SPARE" UUID="138BE1B72DA54A2E" TYPE="ntfs"
/dev/sde5: LABEL="UBUNTU HOME" UUID="623f8294-1d73-4de4-803f-a28b1c7bb379" TYPE="ext4"
/dev/sdf1: LABEL="UBUNTU" UUID="7bc7c1bd-464d-4cab-942e-d1967a7a4c58" TYPE="ext4"
/dev/sdf2: UUID="cc94b842-41e8-4686-a34b-4a21852138fe" TYPE="ext4"
/dev/sdf3: LABEL="HOME" UUID="c2532e9c-d86f-42b9-9ec6-28b695dd58ec" TYPE="ext4"
}}

~# nano /etc/fstab
{{
# C'est a moi..
UUID=e6d76449-1bbf-4065-ad98-fcd8ed62d166 /home/d1 ext4 defaults 0 0
UUID=d1b66496-ae59-4459-b7aa-502a0a3b7b9f /home/d2 ext4 defaults 0 0
UUID=531f1ce0-55df-4bc2-ad26-bc7aa079d11f /home/d3 ext4 defaults 0 0
UUID=e2149da0-acac-46fe-a674-3e57e70ae92d /home/d4 ext4 defaults 0 0
}}

~# mount -a

!! Ajouter les partages dans samba
~# nano /etc/samba/smb.conf
{{

[user1]
comment =
path = /home/d1/user1
public = yes
browseable = yes
writeable = yes
hosts allow = 192.168.100.1
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

[video]
comment =
path = /home/d2
public = yes
browseable = yes
writeable = yes
hosts allow = 192.168.100.
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
}}
~# service smbd restart

!! Visualiser l'activité de samba

~# smbstatus (détaillé) {br} ~# smbstatus -b (brief)
~# smbstatus (détaillé) {br} ~# smbstatus -b (brief) {br} ~# watch -d -n 5 smbstatus (surveillance)