User Tools

Site Tools


pages:howtos:debian:automount-cifs-share-with-autofs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:howtos:debian:automount-cifs-share-with-autofs [2021/02/24 09:44] mischerhpages:howtos:debian:automount-cifs-share-with-autofs [2022/11/30 14:54] (current) mischerh
Line 1: Line 1:
-{{tag>autofs cifs filesystem howto linux mount mounting samba smb ubuntu debian}}+{{tag>howto autofs cifs filesystem howto linux mount mounting samba smb ubuntu debian}} 
 +<WRAP center round important 60%> 
 +**2022-11-30**: Please note that I have discovered, that this howto is more complicated than it needs to be and is not taking advantage of the flexibility offered by autofs. But... It will work for ONE user who needs shares from ONE server mounted into his/her/... home. 
 + 
 +Anyway, this howto needs refactoring... stay tuned. 
 +</WRAP>
 ====== automount CIFS share with autofs ====== ====== automount CIFS share with autofs ======
  
Line 39: Line 44:
 Install the required packages on the client (gigolo is just “nice to have”) and check if its kernel supports CIFS. Install the required packages on the client (gigolo is just “nice to have”) and check if its kernel supports CIFS.
 <sxh bash; gutter: false> <sxh bash; gutter: false>
-apt-get install autofs cifs-utils smbclient gigolo gvfs-backends gvfs-fuse fuse+apt -install autofs cifs-utils smbclient gigolo gvfs-backends gvfs-fuse fuse
 ls -1 /lib/modules/$(uname -r)/kernel/fs | grep "cifs" ls -1 /lib/modules/$(uname -r)/kernel/fs | grep "cifs"
 </sxh> </sxh>
Line 91: Line 96:
 vim /etc/auto.<mysambaserver>-cifs vim /etc/auto.<mysambaserver>-cifs
 </sxh> </sxh>
-<sxh bash; title: /etc/auto.<mysambaserver>-cifs>+<sxh bash; title: /etc/auto.mysambaserver-cifs>
 #!/bin/bash #!/bin/bash
 # $Id$ # $Id$
Line 188: Line 193:
 ls -als /home/<myusername>/mnt/cifs/<mysambaserver.fqdn>/<share-name> ls -als /home/<myusername>/mnt/cifs/<mysambaserver.fqdn>/<share-name>
 </sxh> </sxh>
 +
 +----
 +~~DISCUSSION~~
pages/howtos/debian/automount-cifs-share-with-autofs.1614159845.txt.gz · Last modified: 2021/02/24 09:44 by mischerh