Pagina 1 di 1

Opzione di Condivisione

Inviato: domenica 23 maggio 2010, 10:38
da KubuntuChancellor
Ciao a tutti,
utilizzo ubuntu 10.04.

ho un problema con la condivisone delle cartelle.
Ho installato il pacchetto di default per la condivisione.

tasto dx > Opzione di Condivisione > Condividere questa cartelle >
qui seleziono entrambi le opzioni

"Permettere  ad altri utenti di creare......."
"Accettare ospiti....."

Su partizioni ntfs non è stato possibile condividere nulla perché segnale il seguente errore:

Codice: Seleziona tutto

«net usershare» ha restituito l'errore 255: net usershare add: cannot share path /home/lele/Documenti/Programmi as we are restricted to only sharing directories we own.
Ask the administrator to add the line "usershare owner only = false" 
to the [global] section of the smb.conf to allow this.
Su ext4 la cosa è un po strana.
Una volta copiato i file nella cartella condivisa mi viene negata l'autorizzazione a copiarlo.... in alcuni casi vengono selezionati gli attributi che esplicitamente negano la lettura ecc. del file

Per poter accedere devo essere root o diventare proprietario.  Anche specificando che la cartella deve essere accessibile a non lo fa....

Cosa consigliate? Una gui per gnome più flessibile? o ci deve essere qualche configurazione particolare?

Ciao
Lele

Re: Opzione di Condivisione

Inviato: venerdì 28 maggio 2010, 18:40
da KubuntuChancellor

Codice: Seleziona tutto

tasto dx > Opzione di Condivisione > Condividere questa cartelle >
qui seleziono entrambi le opzioni

"Permettere  ad altri utenti di creare......."
"Accettare ospiti....."
Ma dove va a scrivere la configurazione? In smb.conf NON viene scritto.....
Il nome della condivisione è "/home/lele/Condivisione"

Codice: Seleziona tutto

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# 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 = yes

# 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 = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make 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
;   share modes = no

# 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 = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# 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

# 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
Ciao