Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Problema di permessi a una directory
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Mon Jun 16, 2014 6:23 pm    Post subject: [RISOLTO] Problema di permessi a una directory Reply with quote

Questo è il mio /etc/fstab:
Code:
#/dev/BOOT      /boot      ext2      noauto,noatime   1 2

/dev/sdb2      /            ext4      noatime,discard   0 1
/dev/sdb1      none         swap      sw            0 0

/dev/cdrom      /mnt/cdrom      auto      noauto,ro      0 0

#/dev/sda1      /winzozz      ntfs      defaults      0 0
/dev/sda5      /archive      ntfs      defaults      0 0

Il problema è nell'ultima riga /archive ... dove tengo i file di una partizione di 100 GB.

Ora, se do "sudo mount /dev/sda5 /archive" me lo monta normalmente. Però da utente normale non posso accedere ad /archive. Da root invece posso accedere.

Sia che dia i permessi ad un utente normale e dopodiché utilizzi questo, sia che faccia tutto direttamente da root... quando do:
Code:
rm /archive/Mentalist.s06/so06e01

ottengo
Code:
rm: cannot remove ‘/archive/Mentalist.s06/so06e01’: Operation not permitted

E questo vale per qualsiasi file all'interno di archive.

Non so se c'entrino in realtà i permessi... persino da root non riesco.
Ultima cosa: come faccio a fare in modo che ad ogni avvio /archive abbia i permessi di utente normale senza che dia ad ogni riavvio "chmod a+rwx -R /archive".


Last edited by mrfabiolo on Tue Jun 17, 2014 6:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1008

PostPosted: Mon Jun 16, 2014 11:47 pm    Post subject: Reply with quote

ciao

per il mount prova ad aggiungere il tuo utente al gruppo disk

per il comando "rm" , se è una directory da rimuovere devi aggiungere almeno l'opzione -r (recursive)

Code:
# rm -r /direcory/directory/<directory_da_rimuovere>

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Tue Jun 17, 2014 12:30 am    Post subject: Reply with quote

Quote:
per il mount prova ad aggiungere il tuo utente al gruppo disk

Ho provato ad aggiungermi a disk. Ma anche dopo un riavvio non mi sono cambiati i permessi ad archive.

Quote:
per il comando "rm" , se è una directory da rimuovere devi aggiungere almeno l'opzione -r (recursive)

Si, scusa... siccome il file aveva un nome lunghissimo lo avevo tagliato.... fai finta che si chiami "/archive/Mentalist.s06/so06e01.avi"
Ma comunque ho provato anche con l'optioze -r sulle directory. Fa sempre "operation not permitted" (anche da root)
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Tue Jun 17, 2014 9:03 am    Post subject: Reply with quote

Stai utilizzando NTFS-3G o la funzionalità NTFS integrata nel kernel? Solo il primo supporta le operazioni di scrittura del filesystem. Guarda anche http://wiki.gentoo.org/wiki/NTFS.
Back to top
View user's profile Send private message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Tue Jun 17, 2014 11:55 am    Post subject: Reply with quote

fturco wrote:
Stai utilizzando NTFS-3G o la funzionalità NTFS integrata nel kernel? Solo il primo supporta le operazioni di scrittura del filesystem. Guarda anche http://wiki.gentoo.org/wiki/NTFS.


ah già... non avevo installato ntfs3g. (e avevo solo la funzionalità NTFS integrata nel kernel).


Ora mi fa questo:
Code:
➤ mount /dev/sda5 /archive/
modprobe: FATAL: Module fuse not found.
fuse: device not found, try 'modprobe fuse' first


Immagino che debba abilitare questa cosa nel kernel:
Code:
File systems  --->
    <*> FUSE (Filesystem in Userspace) support

Sta sera lo ricompilo. In caso ditemi se non devo farlo ma l'errore è dovuto a qualcos'altro.
Back to top
View user's profile Send private message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Tue Jun 17, 2014 6:11 pm    Post subject: Reply with quote

Ok. Ho ricompilato il kernel. Ora funziona tutto bene. Grazie mille a tutti.
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Sat Jun 21, 2014 11:15 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum