TIAGO.DIAS.ETI.BR GNU/Linux, BSD, Unix-Like & PHP

22Jun/08Off

Configurando Automount

Para este exemplo vou utilizar um file system exportado via NFS e outro via SAMBA.

Editamos o arquivo auto.master, para definir time out e onde os compartilhamentos serão montados.

No exemplo abaixo, todos os compartilhamentos configurados no arquivo auto.nfs serão montados em /mnt/shared e com um time out de 60 segundos.

/mnt/shared    /etc/auto.nfs    --timeout 60
/mnt/shared    /etc/auto.smbfs    --timeout 60

Feito isso editamamos o arquivo auto.nfs que contém todos os mapeamentos exportados via NFS.

/www    -rw,soft,intr    server:/exports/www

Depois editamamos o arquivo auto.smbfs que contém todos os mapeamentos exportados via SAMBA.

/SMB -fstype=smbfs,username=xxxx,password=xxxx ://server/shared

Finalizando basta realizar um start no daemon autofs.

service autofs start

Share this on Orkut!
Filed under: Red Hat Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.