Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

mount.cifs error(2) on gentoo (no error on debian)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
qeef
n00b
n00b
Posts: 2
Joined: Mon Sep 02, 2013 3:30 pm

mount.cifs error(2) on gentoo (no error on debian)

  • Quote

Post by qeef » Mon Sep 02, 2013 3:47 pm

Dear Gentooists,

I would like to ask you for help. My mount command does not work for me on my gentoo, but works on my debian pc.

Code: Select all

mount.cifs -o user=myusername,domain=MYDOMAIN //function/path/to/source/ /my/mountpoint/
mount error:

Code: Select all

mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I know that you will need some additional information from me to help, just say what, because in fact, I don't know..

Thanks for help,
qeef
Top
qeef
n00b
n00b
Posts: 2
Joined: Mon Sep 02, 2013 3:30 pm

  • Quote

Post by qeef » Wed Sep 04, 2013 12:13 pm

no, there is no problem such as kernel without cifs support or not installed cifs-utils. I would like to debug my system, but I don't exactly know how to do it.
Top
diablo465
Apprentice
Apprentice
Posts: 194
Joined: Tue Sep 10, 2013 11:00 am

  • Quote

Post by diablo465 » Thu Mar 20, 2014 2:22 am

any updates on this issue? I am having EXACTLY the same problem (the command also works in my UBUNTU).
Top
vaxbrat
l33t
l33t
User avatar
Posts: 731
Joined: Wed Oct 05, 2005 3:59 am
Location: DC Burbs

not enough info

  • Quote

Post by vaxbrat » Fri Mar 21, 2014 12:29 am

You will need to post your samba versions (gentoo and debian) and specify where the share is that you are trying to mount. If it's a Windows server, there are many many issues that can prevent this from working on one system versus another. Also specify which Windows version you are trying to work with.
Top
diablo465
Apprentice
Apprentice
Posts: 194
Joined: Tue Sep 10, 2013 11:00 am

Re: not enough info

  • Quote

Post by diablo465 » Fri Mar 21, 2014 12:58 am

vaxbrat wrote:You will need to post your samba versions (gentoo and debian) and specify where the share is that you are trying to mount. If it's a Windows server, there are many many issues that can prevent this from working on one system versus another. Also specify which Windows version you are trying to work with.
I don't think this is related to samba as the working ubuntu/debian hasn't got samba installed.

mount.cifs version in gentoo is 6.1 while in debian/ubuntu it is 6.0.

The share I am trying to connect is a windows server in the Uni. please indicate how to check its type/properties (e.g., what command should be used).


other info of my gentoo system:

Code: Select all

ae429-1105 etc # lsmod |egrep 'fuse|cifs'
 fuse                   72589  5 
 cifs                  312131  0

Code: Select all

ae429-1105 etc # systemctl -t service -a |grep Samba
nmbd.service                         loaded active   running Samba NetBIOS                     name server
smbd.service                         loaded active   running Samba SMB/CIFS     server
winbindd.service                     loaded inactive dead    Samba Winbind daemon
Top
vaxbrat
l33t
l33t
User avatar
Posts: 731
Joined: Wed Oct 05, 2005 3:59 am
Location: DC Burbs

cifs uses kerberos and underlying samba mechanisms

  • Quote

Post by vaxbrat » Sat Mar 22, 2014 4:46 am

It is very much related to samba since the underlying authentication mechanisms (kerberos, ntlanman and/or ntlmv2) used to talk to the domain are tied to samba. At one point mount.cifs was actually part of the samba packaging. Your working debian/ubuntu versions will have these dependencies installed in spite of not having samba proper.

The way mount.cifs negotiates credentials with the windows server will vary depending on the amount of security that has been piled onto the Windows side and the type of domain being run. The version of Windows being run matters because there have been jumps in the various protocols and encryption mechanisms involved going from the old windows 95 and NT days to XP and Server 2003 and now Win 7 and Server 2008 or later.

If you can get onto the windows server doing the share, go into the control panel and choose the system icon. That will tell you right off which version of windows and service pack is being run. That's a start, but you will probably have to get someone who does domain admin for the Uni to go over the specifics of the domain and whatever group security policy has been set up and pushed out.

This matter may be as simple as the fact that your ubuntu and debian systems have been "joined" to the active directory while your gentoo box has not. There are books written on the subject (O'Reilly's Samba book and one from Bruce Perens are two good ones) if you find yourself getting into a quagmire.

The bad news is that this stuff can be a huge pile of failure and frustration. Politics often get involved when you have an environment where the Windows guys go off and do crap without telling the Linux and Unix folks and vice versa. The good news is that it will make you a very marketable sysadmin if you can get good at it.
Top
diablo465
Apprentice
Apprentice
Posts: 194
Joined: Tue Sep 10, 2013 11:00 am

  • Quote

Post by diablo465 » Thu Aug 14, 2014 10:05 pm

I have a solution to work around this problem.

first mount the smb network using file manager (e.g., nautilus)

Then access the mount at:

Code: Select all

/run/user/{UID}/gvfs/
Problem solved
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy