# Mapping AD Authenticated Windows Shares on Login

**URL:** https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088
**Category:** Rocky Linux Help & Support
**Created:** [August 21, 2023, 1:30pm UTC](https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088 "2023-08-21T13:30:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BikeJake68](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@BikeJake68](https://forums.rockylinux.org/u/BikeJake68)
#### Post date: [August 21, 2023, 1:30pm UTC](https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088/1 "2023-08-21T13:30:07Z")

</div>

I am having problems - because obviously, mount requires sudo membership.

The AD Join and permissions are working.

But accessing the windows shares at a user level is not .  
I have use gvfs and udisks before as I recall - can anyone offer any advice please?

GVFS commands seem to be unknown

---

<div class="post-metadata">

### Author: ![linde](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@linde](https://forums.rockylinux.org/u/linde)
#### Post date: [August 21, 2023, 5:32pm UTC](https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088/2 "2023-08-21T17:32:48Z")

</div>

The command `gio mount` is a user-level command (no sudo required) good for making connections that you’ll mostly use in a GUI file manager, but it doesn’t mount things to a nice path like the traditional `mount` command.

`pam_mount` is another option that works for more traditional mounts.

---

<div class="post-metadata">

### Author: ![BikeJake68](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@BikeJake68](https://forums.rockylinux.org/u/BikeJake68)
#### Post date: [August 22, 2023, 4:19pm UTC](https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088/3 "2023-08-22T16:19:16Z")

</div>

Thanks Linde,  
I did some more digging and found gio mount.  
Agreed the path could be better - but it works.  
My problem is getting my valid kerberos ticket through so the users isn’t asked for creds.

I am playing with my smb.conf

Any suggestions gratefully received.

It has occurred to me if I could work out the inline syntax I could use $password and $username perhaps but I can’t seem to pipe the gio mount the creds

---

<div class="post-metadata">

### Author: ![BikeJake68](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@BikeJake68](https://forums.rockylinux.org/u/BikeJake68)
#### Post date: [August 24, 2023, 10:28am UTC](https://forums.rockylinux.org/t/mapping-ad-authenticated-windows-shares-on-login/11088/4 "2023-08-24T10:28:39Z")

</div>

Seems to be that gvfs / gnome is now using the valid kerberos ticket.  
I put it in debug mode and it worked … archh…now I am not sure what I’ve done that fixes it.

pam mount seems to be depreciated from 9 also
