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 03-23-2015, 12:30 PM   #1
micke76
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Problems with Windows Domain shares?


I have a problem with my Windows Domain share. I can't connect to it.
Here is my fstab file:
Code:
# /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>
# / was on /dev/sda2 during installation
UUID=cd24500e-3f48-44fa-b7f1-ca188f0e116f /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=234D-8B07  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda3 during installation
UUID=e0108d16-999f-42f0-baf7-bcf4f26de592 none            swap    sw              0       0

//DOMAIN-PC/MediaContents /home/likewise-open/Test/Media cifs sec=ntlmv2,credentials=/root/.kencred,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Here is my .kencred file:
Code:
username=MAINDC\Ken
password=*******
If I use sec=ntlm and run mount -a then I get this error:
Code:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
If I use sec=ntlmlv2 and run mount -a then I get this error:
Code:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
But I can manually mount an Windows Domain share with this command line.
Code:
mount -t cifs //DOMAIN-PC/MediaContents /home/likewise-open/TEST/Media -o username=Ken,domain=MAINDC,iocharset=utf8,file_mode=0777,dir_mode=0777
Can somenone help how to mount a windows domain share automatically?
 
Old 03-23-2015, 12:48 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
I have had similar issue with CIFS share configured on Windows. I had to tweak registry to get it working. I don't have the document which I referred at the time handy with me but what I can say it is not your destination (Linux machine) which is a problem it is the source machine (Windows machine)

You might want to have a look at these:

http://superuser.com/questions/67519...r13-permission

https://wiki.archlinux.org/index.php...roubleshooting

Though above links are not the ones which I remember to be using when I was working on the issue. I thought you might find it useful.
 
Old 03-23-2015, 09:18 PM   #3
thegwer
Member
 
Registered: Jan 2012
Location: San Antonio. TX
Distribution: CentOS. Ubuntu
Posts: 48

Rep: Reputation: Disabled
Sure
create a shell script with
Code:
mount -t cifs //DOMAIN-PC/MediaContents /home/likewise-open/TEST/Media -o username=Ken,domain=MAINDC,iocharset=utf8,file_mode=0777,dir_mode=0777
Then add the script to rc.local :-)
 
Old 03-23-2015, 09:36 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ thegwer

Code:
mount -t cifs //DOMAIN-PC/MediaContents /home/likewise-open/TEST/Media -o username=Ken,domain=MAINDC,iocharset=utf8,file_mode=0777,dir_mode=0777
Putting this in /etc/rc.d/rc.local will not mount the share because when he said it works when he run the command manually he forgot mention that he has to put in the password at the password prompt to get it mounted. If you look at the command it only supplies the username and not the password for the mount.
 
Old 03-25-2015, 12:02 AM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Also I think you need to use a / to separate your domain and usernames in your creds file. I usually specify the domain on it's own line so I don't need to remember which way the slash should lean.
 
1 members found this post helpful.
Old 03-25-2015, 04:05 AM   #6
micke76
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
When I specified the domain on it's own line I got it to work fine, like this

Code:
username=Ken
password=*******
domain=MAINDC

Last edited by micke76; 03-25-2015 at 04:07 AM.
 
Old 03-26-2015, 08:15 AM   #7
micke76
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
How do I "integrate" my Windows Domain home user 's folders to Linux home userīs folders when I log in as domain user at Linux copmuter?
 
  


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
Samba Authentication Issues on Windows Domain. Locked Shares. anon183 Linux - Server 0 03-30-2013 08:45 PM
FreeNAS. Creating shares for windows users in a domain? linuxlover.chaitanya Linux - Server 2 06-01-2010 04:54 AM
Using cifs to mount domain-windows shares with kerberos. (krb5) munta LinuxQuestions.org Member Success Stories 1 01-29-2010 06:14 AM
Samba 3.0.33 - problems accessing windows domain, and shares not visible vyruz18 Linux - Networking 1 04-08-2009 02:08 PM
Accessing Windows shares in a domain humbletech99 Linux - Networking 6 03-29-2006 01:02 AM

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

All times are GMT -5. The time now is 03:49 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