[Reseau] impossible d'écrire

Bonjour,

J’ai un problème avec samba : je n’arrive pas à écrire dans mon fichier. Voici ma configuration :

[quote]#======================= Share Definitions =======================

[homes]
comment = Home Directories
browseable = yes

By default, the home directories are exported read-only. Change the

next parameter to ‘no’ if you want to be able to write to them.

read only = no

File creation mask is set to 0700 for security reasons. If you want to

create files with group=rw permissions, set next parameter to 0775.

create mask = 0700

Directory creation mask is set to 0700 for security reasons. If you want to

create dirs. with group=rw permissions, set next parameter to 0775.

directory mask = 07OO

By default, \server\username shares can be connected to by anyone

with access to the samba server.

The following parameter makes sure that only “username” can connect

to \server\username

This might need tweaking when using external authentication schemes

valid users = %S

Un-comment the following and create the netlogon directory for Domain Logons

(you need to configure Samba to act as a domain controller too.)

;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes

Un-comment the following and create the profiles directory to store

users profiles (see the “logon path” option above)

(you need to configure Samba to act as a domain controller too.)

The path below should be writable by all users so that their

profile directory may be created the first time they log on

;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700

[printers]
comment = Imprimantes
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
writable = no
public = yes

Windows clients look for this share name as a source of downloadable

printer drivers

[print$]
comment = Drivers pour imprimantes
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
writable = no
write list = root

Uncomment to allow remote administration of Windows print drivers.

You may need to replace ‘lpadmin’ with the name of the group your

admin users are members of.

Please note that you also need to set appropriate Unix permissions

to the drivers directory for these users to have write rights in it

write list = root, @lpadmin

A sample share for sharing your CD-ROM with others.

;[cdrom]
; comment = Samba server’s CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes

[Packard_Bell]
path = /media/diskexterne
writable = no
browseable = yes
guest ok = yes
public = yes

[Donnees]
path = /media/Donnees_famille
writable = yes
browseable = yes
guest ok = yes
public = yes
read only = no

[Sauvegardes]
path = /media/Sauvegardes
writable = yes
browseable = yes
guest ok = yes
public = yes

The next two parameters show how to auto-mount a CD-ROM when the

cdrom share is accesed. For this to work /etc/fstab must contain

an entry like this:

/dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0

The CD-ROM gets unmounted automatically after the connection to the

If you don’t want to use auto-mounting/unmounting make sure the CD

is mounted on /cdrom

; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[/quote]

[quote]root@serveur-debian:/media# ls -l
total 12
drwxr-xr-x 2 root root 1024 janv. 25 2015 cdrom
drwxr-xr-x 2 root root 1024 janv. 31 2015 diskexterne
drwxr-xr-x 3 root root 4096 janv. 9 22:52 Donnees_famille
lrwxrwxrwx 1 root root 7 janv. 25 2015 floppy -> floppy0
drwxr-xr-x 2 root root 1024 janv. 25 2015 floppy0
drwxr-xr-x 3 root root 4096 janv. 9 22:53 Sauvegardes
lrwxrwxrwx 1 root root 4 janv. 25 2015 usb -> usb0
drwxr-xr-x 2 root root 1024 janv. 25 2015 usb0[/quote]
Le hdd de 1 To est partitionné avec LVM. Un volume Groupe contient deux volumes logiques ; le système de fichier utilisé est ext4.
J’accède aux deux volumes logiques [Donnees] et [Sauvegardes] via Thunar mais je ne peux pas écrire dedans.

pourquoi tout est propriété de root ?

Depuis, j’ai apporté quelques modifs : pas le temps maintenant. On voit çà vers 21h. J’ai modifié mon smb.conf, les droits sur les dossiers et le groupe.

je n’utilise pas samba, mais nfs. Je ne pourrai pas t’aider à la configurer.