Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Have you tried adding sudo to the front of it? Or I know in knoppix if you try to mount something, there is an option to make it readable. Could that be the problem?
I have also tried but it gave the same error - when I do it without password it does not ask me for password
mount -t cifs -o username=DOMAIN/your-username%password //iptocomputer/driveletter /mnt/mail
I have also tried but it gave the same error - when I do it without password it does not ask me for password
mount -t cifs -o username=DOMAIN/your-username%password //iptocomputer/driveletter /mnt/mail
I've never tried your mount format before. Can you try:
mount -t cifs //iptocomputer/driveletter /mnt/mail -o username=your-username,password=your-password
Your problem is that your username+password on the system you are issuing the "mount ..." from, DOES NOT MATCH THE ONE ON THE SYSTEM YOU ARE TRYING TO CONNECT TO!
Let's assume that the PC that you are typing the mount command is "system #1"
Let's assume that the PC that you are trying to connect to is "system #2"
At system #2
Go to your system #2 that you are trying to connect to and do the following:
Open a terminal windows
add a user+password that matches the one in mount command on system #1 by typing smbpasswd username
you will be prompted for password for this user, so make sure that the password (and username) is EXACTLY the same as in your mount command
At system #1
Go back to system #1 and re-enter your mount command as you did before.
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329
Rep:
Quote:
Originally Posted by gcmartin
Your problem is that your username+password on the system you are issuing the "mount ..." from, DOES NOT MATCH THE ONE ON THE SYSTEM YOU ARE TRYING TO CONNECT TO!
Let's assume that the PC that you are typing the mount command is "system #1"
Let's assume that the PC that you are trying to connect to is "system #2"
At system #2
Go to your system #2 that you are trying to connect to and do the following:
Open a terminal windows
add a user+password that matches the one in mount command on system #1 by typing smbpasswd username
you will be prompted for password for this user, so make sure that the password (and username) is EXACTLY the same as in your mount command
At system #1
Go back to system #1 and re-enter your mount command as you did before.
You don't need to have the same users/passwords on both machines so you can mount Windows/Samba fileshares. The OP justs needs to know username/password from the Windows machine, to mount its fileshares on her Linux - no need for smbpasswd on Linux.
Two questions for the OP:
What distro/version are you running?
The fileshare does permit read-write access? (have to ask, just in case)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.