Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
#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 need to require username and password for my drive? Windows,Ubuntu connect to it with their GUI's but i can't get CentOS 6.3 to also.

share|improve this question

1 Answer 1

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.