Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-14-2013, 11:26 AM
|
#1
|
LQ Newbie
Registered: Aug 2013
Posts: 2
Rep: 
|
Unable to mount Windows share in Ubuntu
Hello,
I have a Windows server 2012 Domain Controller + dhcp + dns fully working (home.ad).
I have the latest version of stable Ubuntu server on another machine.
Ubuntu is not part of the domain.
I have shared one folder from the server 2012 with Everyone/Everyone so it should be visible.
The network share is:
\\server\TimeCapsule
On the Ubuntu machine I have installed smbfs and tried mounting it with no success.
There seems to be multiple ways to do this, but none seems to work.
I need to map that drive permanently so that I can always access it so I added the entry to my /etc/fstab
//SERVER/TimeCapsule /mnt/ntserver cifs uid=1000 user=HOME\Administrator password=gra$$ 0 0
but I just get Line 13 is bad. Big help.
Can anyone give us a hand?
Thanks
Last edited by m0by; 08-14-2013 at 11:31 AM.
|
|
|
08-14-2013, 11:45 AM
|
#2
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Try using the IP of the Windows box instead of the server name.
Try getting rid of HOME\ from the user name, just use "Administrator" or whatever the user actually is on the Windows machine.
Other than that, your mount looks basically the same as what I use on my machines.
|
|
|
08-14-2013, 11:51 AM
|
#3
|
LQ Newbie
Registered: Aug 2013
Posts: 2
Original Poster
Rep: 
|
Nope...
here is what it looks like now:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=371c79bd-5b88-4bb2-97d4-5f14256fc1b5 / ext4 errors=remount-ro 0 1
UUID=71b8bf99-ffe8-466d-be52-2e54c89951ba none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
//192.168.1.10/TC /mnt/ntserver, cifs, uid=1000, user=Administrator, password=grass 0 0
|
|
|
08-14-2013, 12:11 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983
|
https://wiki.ubuntu.com/MountWindowsSharesPermanently
looks like you are on the right track. you could also look into autofs a much cleaner way to deal with mounting shares for users.
|
|
|
08-14-2013, 12:55 PM
|
#5
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by m0by
Nope...
here is what it looks like now:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=371c79bd-5b88-4bb2-97d4-5f14256fc1b5 / ext4 errors=remount-ro 0 1
UUID=71b8bf99-ffe8-466d-be52-2e54c89951ba none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
//192.168.1.10/TC /mnt/ntserver, cifs, uid=1000, user=Administrator, password=grass 0 0
|
Why do you have commas in there now? The commas should only be between the different options, not between the different fields
Code:
//192.168.1.10/TC /mnt/ntserver cifs uid=1000,user=Administrator,password=grass 0 0
This is how mine looks:
Code:
//192.168.1.118/shared /home/shared cifs auto,gid=source,file_mode=0664,dir_mode=0775,iocharset=iso8859-15,credentials=/etc/sambapasswords 0 0
and /etc/sambapasswords contains the login information:
Code:
username = user
password = pass
Last edited by suicidaleggroll; 08-14-2013 at 12:57 PM.
|
|
|
All times are GMT -5. The time now is 09:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|