I am trying to mount and access a Windows share, from one of our Active Directory servers to one of our RedHat Enterprise 4 Linux hosts. I have used Samba in the past to do the opposite, which worked very well. I was successful in mounting the share, using the following: mount -t smbfs -o username=<myid>,password=<mypassword> //<AD Server>/<Share> /mnt/app1 However, when I "cd" into the "/mnt/app1" directory and try to list the contents I get a "Permission Denied" error. I am unable to allow an AD trust with the Linux client to the AD domain, so any solution cannot require joining the Linux host to the AD domain. Any assistance would be greatly appreciated. Thank You. Kenneth R. Leach Computer Sciences Corporation 100 Decadon Dr. Egg Harbor Township, NJ 08234 kleach2@csc.com
Kenneth R Leach wrote:> I am unable to allow an AD trust with the Linux client to the AD domain, > so any solution cannot require joining the Linux host to the AD domain.Just a shot in the dark.. The smbmount command has a "krb" option that you can play with: krb Use kerberos (Active Directory). I suppose using this option means you have to obtain a Kerberos authentication ticket first (see kinit)... -- Davide
On Mon, 2007-06-11 at 08:05 -0400, Kenneth R Leach wrote:> I am trying to mount and access a Windows share, from one of our Active > Directory servers to one of our RedHat Enterprise 4 Linux hosts. I have > used Samba in the past to do the opposite, which worked very well. > > I was successful in mounting the share, using the following: > > mount -t smbfs -o username=<myid>,password=<mypassword> //<AD > Server>/<Share> /mnt/app1 > However, when I "cd" into the "/mnt/app1" directory and try to list the > contents I get a "Permission Denied" error.Try passing the mount command to "noperm" option. mount -t smbfs -o username=<myid>,password=<mypassword>,noperm //<ADServer>/<Share> /mnt/app1> I am unable to allow an AD trust with the Linux client to the AD domain, > so any solution cannot require joining the Linux host to the AD domain.-- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org
Davide, When I try the "krb" option, after using "kinit" successfully, I get the following after entering my password: 18240: session setup failed: ERRHRD - ERRgeneral (General failure.) SMB connection failed Do I need to authenticate as "Administrator" to the AD domain, when using "kinit" and/or "smbmount"? I do not have "Administrator" rights to the AD domain nor do I have the password for the "Administrator" account. Thanks. Kenneth R. Leach Computer Sciences Corporation 100 Decadon Dr. Egg Harbor Township, NJ 08234 kleach2@csc.com Davide Cervella <d.cervella@bielle.it> Sent by: samba-bounces+kleach2=csc.com@lists.samba.org 06/11/2007 08:20 AM To samba@lists.samba.org cc Subject Re: [Samba] Access Windows AD share From Linux Kenneth R Leach wrote:> I am unable to allow an AD trust with the Linux client to the AD domain,> so any solution cannot require joining the Linux host to the AD domain.Just a shot in the dark.. The smbmount command has a "krb" option that you can play with: krb Use kerberos (Active Directory). I suppose using this option means you have to obtain a Kerberos authentication ticket first (see kinit)... -- Davide -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Adam, No luck. I get the same "Permission denied" error, when attempting to access the mount. Thanks. Kenneth R. Leach Computer Sciences Corporation 100 Decadon Dr. Egg Harbor Township, NJ 08234 kleach2@csc.com -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Adam Tauno Williams <adamtaunowilliams@gmail.com> Sent by: samba-bounces+kleach2=csc.com@lists.samba.org 06/11/2007 08:52 AM Please respond to adamtaunowilliams@gmail.com To samba@lists.samba.org cc Subject Re: [Samba] Access Windows AD share From Linux On Mon, 2007-06-11 at 08:05 -0400, Kenneth R Leach wrote:> I am trying to mount and access a Windows share, from one of our Active > Directory servers to one of our RedHat Enterprise 4 Linux hosts. I have > used Samba in the past to do the opposite, which worked very well. > > I was successful in mounting the share, using the following: > > mount -t smbfs -o username=<myid>,password=<mypassword> //<AD > Server>/<Share> /mnt/app1 > However, when I "cd" into the "/mnt/app1" directory and try to list the > contents I get a "Permission Denied" error.Try passing the mount command to "noperm" option. mount -t smbfs -o username=<myid>,password=<mypassword>,noperm //<ADServer>/<Share> /mnt/app1> I am unable to allow an AD trust with the Linux client to the AD domain,> so any solution cannot require joining the Linux host to the AD domain.-- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
On 6/11/07, Kenneth R Leach <kleach2@csc.com> wrote:> I was successful in mounting the share, using the following: > > mount -t smbfs -o username=<myid>,password=<mypassword> //<AD > Server>/<Share> /mnt/app1 > > However, when I "cd" into the "/mnt/app1" directory and try to list the > contents I get a "Permission Denied" error.smbfs is generally deprecated in favor of cifs. Try "mount -t cifs" instead. I'm certain that you've already checked this, but just to make sure, I'm assuming that you checked the Linux permissions on the mounted filesystem to make sure that you have read access as far as Linux is concerned? mount.cifs supports uid, gid, file_mode, and dir_mode options to use different Linux permissions on mounted filesystems. Josh Kelley