I'm aiming to get a command line mount sorted out first,
then an (autofs?) fstab mount.

My HP printer (it's surely *nix inside), and my win computer both can use the drive,
but not my linux box.
[eg: I set up the printer - just through its gui - to write scans to it]

I can see the drive with smbclient but I can't mount it.

A few of the mount commands I've tried:

# mount -t cifs -o //      /mnt/netstore
# mount -t cifs -o // /mnt/netstore credentials=/root/.smbcredentials

The most common result is:

# mount error(13): Permission denied
# Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

# echo $?

My goal is to connect to it and back it up on the linux box.

samba-client installed
cifs-utils installed

# smbclient -L

prompts for "root's password" and - as expected for the "no password" setting below - returns:

Domain=[CONSENSUS] OS=[Unix] Server=[Samba 3.0.13]
      Sharename       Type      Comment
      ---------       ----      -------
      USB_Storage     Disk      read:all-no password;write:all-no password
      IPC$            IPC       IPC Service (DocBak)
      ADMIN$          IPC       IPC Service (DocBak)

Domain=[CONSENSUS] OS=[Unix] Server=[Samba 3.0.13]
      Server               Comment
      ---------            -------
      DOCBAK               DocBak
      SONY7                My Laptop

      Workgroup            Master
      ---------            -------
      CONSENSUS            DOCBAK

Router GUI says:

Network/Device Name :   DocBak
Workgroup :             Consensus

Enable   Access Method       Link      Port
checked  Network Connection  \\DocBak  -

Available Network Folders
                       Read    Write
 Share Name            Access  Access  Folder Name  Volume Name
 \\DocBak\USB_Storage  All     All     U:\          USB_Storage

Server OS = CentOS 7.3
Client OS = Win10
Router = WNDR4000 (firmware:
SELinux = enforcing

(main) http://www.tldp.org/HOWTO/SMB-HOWTO-8.html
(many others) ... still digging

1 Answer 1


mount succeeded after I put sec=ntlm in the empty -o (options) section

So from this one that wouldn't work:

# mount -t cifs -o          // /mnt/netstore

To this one that does:

# mount -t cifs -o sec=ntlm // /mnt/netstore


  • 1
    The REF link appears dead...
    – Jens
    May 2, 2019 at 8:00
  • replaced the dead link
    – iletras
    May 23, 2019 at 6:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .