LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Access shares that are on an Active Directory domain? (https://www.linuxquestions.org/questions/linux-general-1/access-shares-that-are-on-an-active-directory-domain-4175550128/)

Stéphane Ascoët 08-07-2015 08:10 AM

Access shares that are on an Active Directory domain?
 
And do somebody know a very good and safe documentation to make a Linux station able to access shares that are on an Active Directory domain?

mostlyharmless 08-07-2015 09:08 AM

Have you looked at the samba website? It is very well documented.

auge 08-07-2015 10:22 AM

you can use "mount -t cifs" for that and (hopefully installed) use fitting auth and options for the smb/cifs-connection, also just write it to fstab to get it connected all the time:

//192.168.123.123/pornshare /var/porn cifs username=stephane,passwd=iW84xxx,domain=accounting.mycompany.com 0 0

ZTagr 08-24-2016 07:01 AM

Hi;

I just wanted you to know that I was having problems trying to mount a share from one Ubuntu PC to another (both were Active Directory domain members), while I was able to mount the same share using my Windows 7 PC (also an AD domain member)...

I was trying to use the fstab file as I had before, but I kept getting "Error 13: Permission denied" whenever I tried "sudo mount -a" to mount the fstab shares.

Your post gave me the answer! For a Windows share, you don't need the "domain=" portion, but for a Linux-based share, I guess you do, because when I added the line:

domain=[MyDomainName]

to my credentials file, the share mounted without issue! Previously, my credentials file had only contained the standard "username" and "password" lines:

username=[my-username]
password=[my-password]

So, your posting saved me from pulling my hair out...thanks!

ZTagr.

Stéphane Ascoët 09-01-2016 01:59 AM

It doesn't work with the mount command, but works graphically with PCManFM... It was the same thing at my old job...


All times are GMT -5. The time now is 01:15 AM.