Ciao a tutti
Quando copio un qualunque file su una penna USB, a questi viene assegnato il permesso di esecuzione automaticamente.
Sapete come risolvere l'inconveniente?
Moderatore: Staff


jimmy_page_89 ha scritto:Ciao a tutti
Quando copio un qualunque file su una penna USB, a questi viene assegnato il permesso di esecuzione automaticamente.

Mario Vanoni ha scritto:Sistema base con ext2, pennette USB con ext2, su 3 macchine,
uso ssync[d](1) per copiare ogni 2 ore dir/file importanti.
Le permissions sono sempre identiche ambo le parti.

phobos3576 ha scritto:Evidentemente jimmy_page_89 sta copiando da Linux ad una pennetta che quasi sempre è formattata FAT32.

I filesystem per Windows non hanno gli stessi permessi di quelli di Linux, quindi, come ti ha detto phobos3576 i valori settati sono "puramente estetici" (vabbé, non proprio). Comunque puoi vedere le opzioni di mount per fat e ntfs, per fat vedo 'umask', 'dmask' e 'fmask' che potrebbero esserti d'aiuto. Mentre per NTFS c'è 'umask'. mount(8) può aiutarti.jimmy_page_89 ha scritto:phobos3576 ha scritto:Evidentemente jimmy_page_89 sta copiando da Linux ad una pennetta che quasi sempre è formattata FAT32.
Esattamente (e anche in NTFS), per interoperabilità windows-linux

mount(8) ha scritto:umask=value
Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.
dmask=value
Set the umask applied to directories only. The default is the umask of the current process. The value is given in octal.
fmask=value
Set the umask applied to regular files only. The default is the umask of the current process. The value is given in octal.
umask(2) ha scritto: The typical default value for the process umask is S_IWGRP | S_IWOTH (octal 022). In the usual case where the mode argument to open(2) is specified as:
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
(octal 0666) when creating a new file, the permissions on the resulting file will be:
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
(because 0666 & ~022 = 0644; i.e., rw-r--r--).
mount.ntfs-3g(8) ha scritto:umask=value
Set the bitmask of the file and directory permissions that are not present. The value is given in octal. The default value is 0 which means full
access to everybody.
fmask=value
Set the bitmask of the file permissions that are not present. The value is given in octal. The default value is 0 which means full access to
everybody.
dmask=value
Set the bitmask of the directory permissions that are not present. The value is given in octal. The default value is 0 which means full access to
everybody.




Visitano il forum: Nessuno e 2 ospiti