You are not logged in.

#1 2018-06-01 17:02:46

nuts
Member
Registered: 2010-01-13
Posts: 15

[Resolved]autofs, unable to mount smb shares

Hi,

I searched, but I have not found any answer.
I have a server hosts a smb share and I want to mount that with autofs.
I followed the wiki but it does not work.

In the auto.master:

/mnt/freebox /etc/autofs/auto.goinfre --timeout=60 --ghost

then in my auto.goinfre

goinfre -fstype=cifs,username=[censored],password=[censored],ro ://192.168.0.254/Goinfre

I'm disappointed, I try

automount -f -v

then

# ls /mnt/
amovible  datas  freebox
# ls /mnt/freebox/
goinfre
# ls /mnt/freebox/goinfre/
ls: impossible d'accéder à '/mnt/freebox/goinfre/': Aucun fichier ou dossier de ce type

I have this error

attempting to mount entry /mnt/freebox/goinfre
>> mount error(112): Host is down
>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount(generic): failed to mount //192.168.0.254/Goinfre (type cifs) on /mnt/freebox/goinfre
failed to mount /mnt/freebox/goinfre

I need some help, I can go in the remoted directory with dolphin or with gvfs, but I need to mount this directory for others apps

Last edited by nuts (2018-06-02 10:07:16)

Offline

#2 2018-06-01 17:51:19

seth
Member
Registered: 2012-09-03
Posts: 61,232

Re: [Resolved]autofs, unable to mount smb shares

99% an SMB protocol version issue, try passing a specific "vers=x.x" to the options, eg.

goinfre -fstype=cifs,username=[thisbetterbecorrectdude],password=[thisbetterbecorrectdude],ro,vers=2.0 ://192.168.0.254/Goinfre

Offline

#3 2018-06-01 20:41:54

nuts
Member
Registered: 2010-01-13
Posts: 15

Re: [Resolved]autofs, unable to mount smb shares

Yes, you're right I have to use

vers=1.0

,and the access is granted, but now I have another trouble, if I do "ls"

#  ls -l /mnt/freebox/goinfre/
total 1024
drwx------   9 4242 4242   0  3 mai   17:06  Camescope
drwx------  24 4242 4242   0  3 mai   17:23  Compos
drwx------  12 4242 4242   0  3 mai   17:40  Docs
drwxrwxrwx   2 4242 4242   0 25 mai   15:40  Enregistrements
drwxrwxrwx   8 4242 4242   0 10 mai   12:41  Fichiers
drwx------   7 4242 4242   0 26 mai   10:19  Images
drwx------   2 root root   0  3 mai   16:15  lost+found
drwx------ 568 4242 4242   0 25 mai   09:47  Musique
drwx------   3 4242 4242   0  3 mai   19:26  Programmation
-rw-r--r--   1 4242 4242 764  3 mai   19:30 'reseau chou.txt'
drwx------   3 4242 4242   0 25 mai   09:31  Téléchargements
drwx------   6 4242 4242   0  3 mai   19:29  Vidéos

and

goinfre -fstype=cifs,file_mode=0770,dir_mode=0770,ro,username=***,password=***,vers=1.0 ://192.168.0.254/Goinfre

any idea?

Last edited by nuts (2018-06-01 20:42:47)

Offline

#4 2018-06-01 21:24:13

seth
Member
Registered: 2012-09-03
Posts: 61,232

Re: [Resolved]autofs, unable to mount smb shares

1.0 supports the unix extensions, so file_mode and dir_mode most likely have no impact. Try passing "nounix"
However, SMBv1 is highly insecure, so if you can make the server use a later SMB protocol (2.0 and up do also not support the unix extensions)

Offline

#5 2018-06-02 05:37:33

nuts
Member
Registered: 2010-01-13
Posts: 15

Re: [Resolved]autofs, unable to mount smb shares

Well, I'm searching about the protocol and my router only provide 1.0... the industrial has not made any update to correct that :-/
There is samba 3.0.37 in the box...

Last edited by nuts (2018-06-02 05:38:25)

Offline

#6 2018-06-02 07:32:45

seth
Member
Registered: 2012-09-03
Posts: 61,232

Re: [Resolved]autofs, unable to mount smb shares

m(

If you can configure it (the router samba installation), set

nt pipe support = no

Also please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB