pátek 4. dubna 2014

Centos autofs - automatic mount of samba share

A very useful feature.

yum install autofs

vim /etc/auto.master
the only active (uncommented line) should be:
/mnt/auto /etc/auto.samba --timeout=600 --ghost

create new file:
vim /etc/auto.samba
ID -fstype=cifs,username=USR,password=PSW,uid=NAME,gid=users ://server.xy/share

target mount will be:
/mnt/auto/ID

Žádné komentáře:

Okomentovat