Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema visibilità password in fstab
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)
View previous topic :: View next topic  
Author Message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Thu Jan 25, 2007 12:13 am    Post subject: Problema visibilità password in fstab Reply with quote

Ragazzi ho questo problema.
Ho un server con Samba che condivide delle cartelle con altri pc della rete.
Da un client vorrei che ad ogni avvio di gentoo, mi venisse caricata automaticamente una cartella condivisa del server.
Il problema è che per accedervi sono obbligato ad usare fstab e inserire li username e password altrimenti ogni volta al boot mi chiede i dati per accedere alla risorsa.
Il fatto è che mi scoccia tenere le password visibili nel file fstab.
Qualcuno ha una soluzione alternativa???
Uso gnome e non vorrei ogni volta che lo accendo fare un:
Code:
mount /mnt/**
.
Grazie
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Jan 25, 2007 12:38 am    Post subject: Reply with quote

samba da quanto ne so non ti obliga a mettere la password in chiaro nell'fstab ma ti permette di utilizzare un sistema che utilizza la chiave cifrata. Ora non so aiutarti in quanto non l'ho mai fatto, ma credo che nella documentazione tu possa trovare tutto quello che ti serve.
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Thu Jan 25, 2007 1:23 am    Post subject: Reply with quote

Do un'occhiata..
Se magari intanto qualcun'altro l'ha già fatto e può semplificarmi la vita gliene sarei grato. :)
Intanto, Grazie.
Back to top
View user's profile Send private message
IlGab
Guru
Guru


Joined: 26 Nov 2004
Posts: 486

PostPosted: Thu Jan 25, 2007 8:20 am    Post subject: Reply with quote

in /etc/fstab
Code:

//nomeserver/nomeshare       /mount/point    cifs     credentials=/path/del/fileUserePassword,users,uid=username,file_mode=000     0 0
//nomeserver/nomeshare1      /mount/point1   smbfs    credentials=/path/del/fileUserePassword,users,uid=username,fmask=000     0 0

In /path/del/fileUserePassword ci metti la username e la password per mappare la share in questa forma semplice
Code:

username=nomeutente
password=passperlashare

uid rappresenta la user id che avrà i permessi per leggere e scrivere sul disco. Nulla ti vieta di metterci un gruppo usando il gid.
Nell'esempio ho usato sia un cifs e un smbs, quello che cambia è il parametro file_mode/fmask per gli attributi sul file che viene scritto.[/code]
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
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