LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2013, 11:26 AM   #1
m0by
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 08-14-2013, 11:45 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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.
 
Old 08-14-2013, 11:51 AM   #3
m0by
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-14-2013, 12:11 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 08-14-2013, 12:55 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
Quote:
Originally Posted by m0by View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to change Permission of mount point for windows share mabdul_basith Linux - Server 1 07-23-2013 11:35 AM
[SOLVED] Unable to mount Windows share containing whitespace jbruyet Linux - Software 9 07-11-2013 03:50 PM
Unable to mount Windows share using cifs to my virtual instance of SUSE nick[GEGN] Linux - Desktop 3 08-26-2010 11:29 AM
Unable to mount Windows share to SUSE 11.3 nick[GEGN] Linux - Newbie 1 08-13-2010 06:39 PM
unable to mount windows share when i try to access files vinaytp Linux - Newbie 5 04-28-2009 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration