Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lettura su NTFS impossibile per utente
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Sat Dec 06, 2003 6:09 pm    Post subject: Lettura su NTFS impossibile per utente Reply with quote

Salve a tutti...
Scusate ma non so come risolvere il problema...
allora,
Il modulo nel kernel è attivato, la riga dell'FSTAB è:
Code:

/dev/hdb1       /mnt/g_hdb1     ntfs       defaults,ro        0 0


Come indicato in questo tutorial
Ho provato anche mettendo umask=0222

Ma non riesco ad accedere.
Ho provato anche con CHOWN, e ho fatto diventare il proprietaro della cartella (punto di montaggio della partizione) l'utente.
Ma quando vado a montare, il proprietario torna ad essere root, e come utente non posso a accedere alla partizione.

Mi sapete aituare?
grazie mille
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Sat Dec 06, 2003 6:17 pm    Post subject: Reply with quote

hai povato a mettere nell'fstab uid e gid dell'utente? es:

/dev/hda3 /mnt/windows ntfs defaults,user,ro,uid=1000,gid=100 0 0
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Sat Dec 06, 2003 6:22 pm    Post subject: Reply with quote

Josuke wrote:
hai povato a mettere nell'fstab uid e gid dell'utente? es:

/dev/hda3 /mnt/windows ntfs defaults,user,ro,uid=1000,gid=100 0 0

Ho provato...
Ma non ci sta verso.. sempre lo stesso problema...
Back to top
View user's profile Send private message
OKreZ
Guru
Guru


Joined: 27 Apr 2003
Posts: 372
Location: Padova (IT)

PostPosted: Sat Dec 06, 2003 10:45 pm    Post subject: Reply with quote

nella relativa voce in /etc/fstab aggiungi umask=0
_________________
(HCS)OKreZ
Back to top
View user's profile Send private message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Sun Dec 07, 2003 12:41 am    Post subject: Reply with quote

Ciao,
non c'e' soluzione x il tuo problema (che poi nn lo e' in verita'), come spiegato in diverse faq (se fai una ricerca in proposito troverai mille mila pagine a riguardo) il supporto nel kernel x partizioni NTFS e' ancora sperimentale e in sola lettura, a patto che tu nn usi un kernel 2.6.X, ma anche qui il supporto x la scrittura su NTFS e' marcata DANGEROUS. Di conseguenza tu puoi montare le partizioni NTFS, ma sono accessibili in sola lettura (eccetto x il kernel di cui sopra) e solo dall'utente root. Tutto cio' che aggiungi nel fstab x renderle accessibili anche dai vari utenti, viene ignorato dal kernel.
Se, poi, nn riesci nemmeno da root, allora il problema e' un altro. :wink:
Bye!

P.S.:effettivamente nella guida nn e' specificato quello che ti ho appena detto, ma nn dice nemmeno il contrario. :wink:
(Messaggio x gli amministratori):arrow: Io rivedrei la guida aggiungendo due righine, giusto x dire che solo root lo puo' fare :roll:
Back to top
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Sun Dec 07, 2003 1:04 am    Post subject: Reply with quote

^Sporting^ wrote:
Tutto cio' che aggiungi nel fstab x renderle accessibili anche dai vari utenti, viene ignorato dal kernel.


Non credo sia il kernel a controllare i valori in fstab ma mount. E comunque non esistono di queste restrizioni nel modulo ntfs.

^Sporting^ wrote:
Io rivedrei la guida aggiungendo due righine, giusto x dire che solo root lo puo' fare :roll:


Non c'è bisogno, dato che si può fare...

Io accedo ad una partizione ntfs (read only) da utente normale semplicemente usando umask=0222

Secondo me deve ricontrollare la config, magari ha dimenticato qualcosa...
_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
OKreZ
Guru
Guru


Joined: 27 Apr 2003
Posts: 372
Location: Padova (IT)

PostPosted: Sun Dec 07, 2003 10:13 am    Post subject: Reply with quote

^Sporting^ wrote:
[...] tu puoi montare le partizioni NTFS, ma sono accessibili in sola lettura (eccetto x il kernel di cui sopra) e solo dall'utente root.

Che siano accessibili in sola lettura o anche in scrittura (DANGEROUS) dipende dal fatto se hai abilitato o meno nel kernel la scrittura su partizioni NTFS; per quanto riguarda l'accesso invece, io da utente normale ci accedo tranquillamente avendo in /etc/fstab l'unica opzione umask=0.
_________________
(HCS)OKreZ
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Sun Dec 07, 2003 1:36 pm    Post subject: Reply with quote

mmm non è che nel kernel hai messo anche il supporto per scrittura? prova a toglierlo e lasciare come modulo solo il supporto per la lettura di ntfs
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Sun Dec 07, 2003 10:38 pm    Post subject: Reply with quote

Dunque:
Nel kernel ho messo solo il supporto in lettura, non in scrittura marcato dangerous...
Per quanto riguarda l'accesso alla partizione NTFS, priam di reinstallare gentoo, accedevo senza grossi problemi, e questo problema non mi era capitato, per questo sono spiazato...

Ora proverò con umask=0 e vediamo ceh succede...

Grazie a tutti
Back to top
View user's profile Send private message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Mon Dec 08, 2003 12:53 am    Post subject: Reply with quote

neon_it wrote:
^Sporting^ wrote:
Tutto cio' che aggiungi nel fstab x renderle accessibili anche dai vari utenti, viene ignorato dal kernel.

Non credo sia il kernel a controllare i valori in fstab ma mount. E comunque non esistono di queste restrizioni nel modulo ntfs.
^Sporting^ wrote:
Io rivedrei la guida aggiungendo due righine, giusto x dire che solo root lo puo' fare :roll:

Non c'è bisogno, dato che si può fare...
Io accedo ad una partizione ntfs (read only) da utente normale semplicemente usando umask=0222

Secondo me deve ricontrollare la config, magari ha dimenticato qualcosa...

:oops: Beh, allora nn parlo +, po' esse che sia stato l'unico sfigato a beccare una guida fatta da un demente :lol: , x' nella guida che ho letto io lo diceva ben chiaro, x questo ho dato quella risposta (nn chidetemi dove fosse x' nn lo ricordo +, cmq nn era qui :wink:). Vorra' dire che la prossima volta controllero' + guide x sicurezza :wink: o, meglio, mi affido alle vostre (che al tempo nn conoscevo)
Am Sorry
Bye!
Back to top
View user's profile Send private message
doom.it
Guru
Guru


Joined: 23 May 2003
Posts: 430
Location: Pavia, Italy

PostPosted: Mon Dec 08, 2003 10:25 am    Post subject: Reply with quote

accedfo da una vita con questa stringa:
Code:

/dev/hda1               /mnt/win        ntfs            ro,users,umask=0        0 0

_________________
I have discovered photography. Now I can kill myself. I have nothing else to learn.
Pablo Picasso
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 11:46 am    Post subject: Reply with quote

doom.it wrote:
accedfo da una vita con questa stringa:
Code:

/dev/hda1               /mnt/win        ntfs            ro,users,umask=0        0 0

Ho sostituito la linea nell' /etc/fstab come quella da te indicata...

Se provo a fare: ls -al /mnt per vedere i proprietari della cartella con la partizione smontata ecco cosa mi torna:
Quote:
ls -al /mnt
totale 28
drwxr-xr-x 10 root root 240 2003-12-04 14:40 .
drwxr-xr-x 17 root root 432 2003-12-02 16:27 ..
drwxr-xr-x 2 root root 48 2003-12-04 14:40 cdrw
drwxrwxrwx 9 root root 16384 1970-01-01 00:00 f_hda8
drwx------ 2 root root 72 2003-12-02 20:55 floppy
drwxr-xr-x 2 inoki root 48 2003-12-04 14:40 g_hdb1
drwxr-xr-x 2 root root 48 2003-12-04 14:39 h_hda9
drwxrwxrwx 4 root root 8192 1970-01-01 00:00 i_hda10
drwxrwxrwx 5 inoki root 104 2003-12-06 19:59 lin_hda5
drwxrwxrwx 7 inoki root 160 2003-11-24 15:28 lin_hda7

Come vedete risulta essere l'utente (Inoki appunto)

Se poi invece monto la partizione semplicemente con:
#mount /dev/hdb1 /mnt/g_hdb1
e provo a ridare ls -al questo è quello ceh succede:
Quote:

ls -al /mnt
totale 28
drwxr-xr-x 10 root root 240 2003-12-04 14:40 .
drwxr-xr-x 17 root root 432 2003-12-02 16:27 ..
drwxr-xr-x 2 root root 48 2003-12-04 14:40 cdrw
drwxrwxrwx 9 root root 16384 1970-01-01 00:00 f_hda8
drwx------ 2 root root 72 2003-12-02 20:55 floppy
dr-x------ 1 root root 16384 2003-10-21 14:27 g_hdb1
drwxr-xr-x 2 root root 48 2003-12-04 14:39 h_hda9
drwxrwxrwx 4 root root 8192 1970-01-01 00:00 i_hda10
drwxrwxrwx 5 inoki root 104 2003-12-06 19:59 lin_hda5
drwxrwxrwx 7 inoki root 160 2003-11-24 15:28 lin_hda7


Ecco qui.. cambia il proprietario cambiano i permessi, e da utente non posso accedervi...
Ma come è possibile? Nella precedente installazione non avevo avuto questo problema.. che succede?
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 11:50 am    Post subject: Reply with quote

Sei sicuro che il fs sia clean?
L'utente deve poter accedere.
Sei sicuro che non ci siano piu' mount contemporanei?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 12:21 pm    Post subject: Reply with quote

cerri wrote:
Sei sicuro che il fs sia clean?
L'utente deve poter accedere.
Sei sicuro che non ci siano piu' mount contemporanei?

Uhmm che intendi per fs clean?
Più mount contemporanei non credo, cmq sto smontando la partizione manualmente e la rimonto manualmente...

In ogni caso (nella mia inesperienza) non ho fatto alcuna operazione diversa da quella fatta nelle precedenti installazioni...
Il disco che ha NTFS, è sempre il solito, non ci ho fatto nulla, dall'ultima volta...
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 12:24 pm    Post subject: Reply with quote

Intendo: non è che il fs sia rovinato?
Fai
Code:
$ stat /mnt/win

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 12:32 pm    Post subject: Reply with quote

cerri wrote:
Intendo: non è che il fs sia rovinato?
Fai
Code:
$ stat /mnt/win


ecco qui il risultato.. non mi sembra ci siano problemi:
Code:

stat /mnt/g_hdb1
  File: `/mnt/g_hdb1'
  Size: 16384           Blocks: 0          IO Block: 4096   directory
Device: 341h/833d       Inode: 5           Links: 1
Access: (0500/dr-x------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2003-10-21 14:27:40.000000000 +0000
Modify: 2003-10-21 14:27:40.000000000 +0000
Change: 2002-09-06 14:58:48.000000000 +0000

Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 12:34 pm    Post subject: Reply with quote

Alla faccia.
Code:
Access: (0500/dr-x------)  Uid: (    0/    root)   Gid: (    0/    root)

Ma fammi capire.
Fai:
Code:
$ ls -l /mnt

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 1:00 pm    Post subject: Reply with quote

cerri wrote:
Alla faccia.
Code:
Access: (0500/dr-x------)  Uid: (    0/    root)   Gid: (    0/    root)

Ma fammi capire.
Fai:
Code:
$ ls -l /mnt

Code:

ls -l /mnt
totale 27
drwxr-xr-x    2 root     root           48 2003-12-04 14:40 cdrw
drwxrwxrwx    9 root     root        16384 1970-01-01 00:00 f_hda8
drwx------    2 root     root           72 2003-12-02 20:55 floppy
dr-x------    1 root     root        16384 2003-10-21 14:27 g_hdb1
drwxr-xr-x    2 root     root           48 2003-12-04 14:39 h_hda9
drwxrwxrwx    4 root     root         8192 1970-01-01 00:00 i_hda10
drwxrwxrwx    5 inoki    root          104 2003-12-06 19:59 lin_hda5
drwxrwxrwx    7 inoki    root          160 2003-11-24 15:28 lin_hda7

Questo con il disco montato...

Mentre se lo smonto ho questo:
Code:

ls -l /mnt
totale 27
drwxr-xr-x    2 root     root           48 2003-12-04 14:40 cdrw
drwxrwxrwx    9 root     root        16384 1970-01-01 00:00 f_hda8
drwx------    2 root     root           72 2003-12-02 20:55 floppy
drwxr-xr-x    2 inoki    root           48 2003-12-04 14:40 g_hdb1
drwxr-xr-x    2 root     root           48 2003-12-04 14:39 h_hda9
drwxrwxrwx    4 root     root         8192 1970-01-01 00:00 i_hda10
drwxrwxrwx    5 inoki    root          104 2003-12-06 19:59 lin_hda5
drwxrwxrwx    7 inoki    root          160 2003-11-24 15:28 lin_hda7
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 1:10 pm    Post subject: Reply with quote

Non credo cambi qc, ma dai alla directory (smontata) l'owner di root e poi monta usando umask=222.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 1:22 pm    Post subject: Reply with quote

cerri wrote:
Non credo cambi qc, ma dai alla directory (smontata) l'owner di root e poi monta usando umask=222.

No ancora permission dienied...
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 1:39 pm    Post subject: Reply with quote

Modifica il tuo fstab aggiungendoci "user" tra le opzioni e montalo come utente. Risolvi?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 2:39 pm    Post subject: Reply with quote

cerri wrote:
Modifica il tuo fstab aggiungendoci "user" tra le opzioni e montalo come utente. Risolvi?

Scusa la domanda da niobbone...
Ma come faccio a fare mount da utente.. non è una perculiarità di root?
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 2:45 pm    Post subject: Reply with quote

Se metti user no 8)
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Inoki
n00b
n00b


Joined: 30 Oct 2003
Posts: 39

PostPosted: Mon Dec 08, 2003 2:52 pm    Post subject: Reply with quote

cerri wrote:
Se metti user no 8)

/etc/fstab
Code:

/dev/hdb1               /mnt/g_hdb1     ntfs            ro,user,umask=222               0 0

e poi faccio:
$ mount /dev/hdb1 /mnt/g_hdb1
ma:
mount: è possibile solo per root
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 3:02 pm    Post subject: Reply with quote

Code:
$ man mount

8) E cmq da user devi fare
Code:
$ mount /mnt/g_hdb1

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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