Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
#smbclient //ballzdeep/torrents
Server not using user level security and no password supplied
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

Does this mean I would need to require a username and password for my drive? Windows and Ubuntu connect to it with their GUIs, but I can't get CentOS 6.3 to do so.

share|improve this question

Generally, you need to create some kind of credentials file and use it when you mount cifs/samba shares. Here is an example using fstab

# insecure and common usage
//share/dir /mnt/myshare cifs username=user,password=pass

# more secure usage
Create a credentials file in /etc/ that has 0600 permissions for root.
Call it fileshare

//share/dir /mt/myshare cifs credentials=/etc/fileshare

cat /etc/fileshare

You can then mount it by hand if you like by doing this.

smbmount //share/dir /mnt/myshare -o credentials=/etc/fileshare
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.