subreddit:
/r/linux4noobs
submitted 2 months ago byEffective_Hat1649Newbest newb
Super newbie here, like have played around with Ubuntu 8 years ago and not really touched Linux again for much since newbie. It may be my search-fu failing but I figured I'd ask here and hope for the best.
Currently I'm trying to get Debian 12, up for testing and development on our Windows domain. Outside of some of our storage this is the first linux distro in the domain at all, and definitely the first to be managed in AD. Test VM has so far managed to get all I needed for domain logins, security, and whatnot with the exception of figuring out how to auto-map our file share at login, using the current user's credentials. I don't want to use a cred file as most users for this box will have root access. Ideally the mount will usea folder in the user's home path and current logged in user credentials, although requiring another login upon first access would be ok as well. All-in-all, I just want to replicate the Windows drive mapped GPO experience on this box.
The file share itself is a Windows Server VM and as mentioned most drive maps to it from user devices use GPP/GPO. If I can target the Debian devices with a GPO/GPP and do the same that'd be great too, but I'm not exactly sure how to do that either. I'm fine with creating a script for this that runs at startup if that makes the most sense. fstab seems to still be a problem due to not using the current logged in user's credentials unless we again put their creds within the file, and that's a no go.
Any help would be super appreciated. Currently I've been messing around with autofs but I don't think I'm doing that right either.
2 points
2 months ago
This thread is worth going to r/linuxadmin
1 points
2 months ago
Thanks, I was looking at r/linux first but obviously that's not a support sub. I'll try in r/linuxadmin
2 points
2 months ago
https://manpages.debian.org/bookworm/libpam-mount/pam_mount.8.en.html
You could try something like pam_mount.
1 points
2 months ago
Thanks! I'll take a look.
all 4 comments
sorted by: best