LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount.cifs - mount error 20 = Not a directory (https://www.linuxquestions.org/questions/linux-networking-3/mount-cifs-mount-error-20-%3D-not-a-directory-443693/)

da_kidd_er 05-11-2006 12:11 AM

mount.cifs - mount error 20 = Not a directory
 
Hi all,

I'm trying to mount a Win2k3 ADS fs via the command below:

mount.cifs //<server>/<share> -o username=xxx,password=yyy,domain=zzz

Unfortunately, i'm getting

mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

please help

thanks!

soulestream 05-11-2006 07:38 PM

1. Have you alreaday run kinit to get a key

2. is the server path correct

3. if all that is good use

mount -t cifs //server/share /mnt/mntpoint -o username=username

that will ask for the password.


This works fine on my systems


Soule

kheine7 02-12-2007 08:08 PM

I can see a problem with the following :

mount.cifs //<server>/<share> -o username=xxx,password=yyy,domain=zzz

which should be something like

mount.cifs //<server>/<share> /<mnt/<point> -o username=xxx,password=yyy,domain=zzz


Not sure if this helps but I have the same problem and no idea why. I am using RHEL 4 update 3.

- Kurt

Edited:
I know the mount point exists because I can connect to it via nautilus with no problems at all and smbclient -I 192.168.1.1 -L //fs1 works fine and list the share.

kheine7 02-12-2007 08:42 PM

Folling the trail of thought, it seems as though cifs is not a complete replacement for the old SMB mounting so the problem I suggest is that you should be using the smbfs filesystem and not cifs. You can do this by using mount.smbfs which should then mount it. Now I am getting a corruption with the directory listing which I guess is to do with codepages, etc. If I can figure this out then maybe I can get it to work .

- Kurt

esvcx 03-05-2007 01:43 PM

I am suffering with exactly the same issue. using mount.cifs I get the error 20.... and using mount.smbfs it seems to work but browsing the dir just shows rubbish. If you get any further please post your findings

Micro420 03-07-2007 10:14 AM

I had the same problem and resolved it by making sure that I had the correct SHARE PERMISSIONS for the user I was trying to mount it with.

chprpipr 01-12-2008 06:50 PM

Point of clarification
 
Make sure that the user has permission to both access the share and the folder within Windows (Sharing and Security tabs).

andrewupton 06-09-2008 07:18 AM

The following solved this problem for me. (It may work for you but clearly only if this file already exists)


echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

nadavkav 06-18-2008 02:00 PM

issue solved :-)
 
thanks andrewupton !
this "echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled" solved my problem.

i use debian sid (updated) with mount (util-linux-ng 2.13.1-rc1)

i was trying to connect to a network storage (on my local lan) that is exposing a windows share with samba/cifs protocol.

it is an ide storage with external usb/Ethernet which is exposing windows share or ftp server on the network.

i use kde 3.5.9 kio smb to browse it easily and i tried to mount it from the command line but could not... until now :-)

super thanks :-)

PRFunky 09-02-2008 06:36 PM

Thank YOU andrewupton!
 
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
worked great to solve my little Tuesday morning issue.

Thank you very much!

Valgoerad 10-16-2008 12:55 PM

Guys, I have a strange problems with cifs and Samba. Maybe you could help me as well.

I can write new files on a share, I can update them but I can't write on special occasions. And because of this thunderbird (with a remote profile) does not work as well.

Look:

Code:

martel@nebula:~$ echo agata > Shared/test5.txt
martel@nebula:~$ cat Shared/test5.txt
agata
martel@nebula:~$ echo agata > Shared/test5.txt
bash: Shared/test5.txt: Not a directory
martel@nebula:~$ echo agata >> Shared/test5.txt
martel@nebula:~$ cat Shared/test5.txt
agata
agata
martel@nebula:~$ echo agata > Shared/test5.txt
bash: Shared/test5.txt: Not a directory
martel@nebula:~$ ls -l Shared/test5.txt
-rw-rw-rw- 1 martel users 12 2008-10-16 19:56 Shared/test5.txt

My share looks like this:

Code:

//share/folder /home/martel/Shared cifs    defaults,uid=martel,gid=users,file_mode=0666,dir_mode=0777,credentials=/home/martel/.cifs-credentials


All times are GMT -5. The time now is 05:39 PM.