Not sure if this is the right area, sorry if I miscategorized this post.
I am pretty new to Linux, know very little, but trying to figure it out. I found that I could mount a windows drive by using these commands:
mkdir /home/username/Desktop/win_share
got uid and gid by typing ID in terminal
sudo mount -t cifs -o username=[email protected],uid=1145055445,gid=1145055445 //share.college.edu/data /home/username/Desktop/win_share
This works for people that are admins but gives a Sudoer error and doesn't mount for non-admins. What can I add to the Sudoers file to allow certain users to mount and umount this command?
Also, if anyone had suggestions, I'd ideally like this to run automatically, I know about fstab and autofs but these are windows domain users, I joined the RHEL 8 box to the AD domain for my university and we require regular password changes, I know you can write a cred file but I'd rather not have to help every user each time they changed their password, it would be nice if there was a way just to get a script to run with the command above and ask them for their password, I know it wouldn't be a persistent mount.
I am pretty new to Linux, know very little, but trying to figure it out. I found that I could mount a windows drive by using these commands:
mkdir /home/username/Desktop/win_share
got uid and gid by typing ID in terminal
sudo mount -t cifs -o username=[email protected],uid=1145055445,gid=1145055445 //share.college.edu/data /home/username/Desktop/win_share
This works for people that are admins but gives a Sudoer error and doesn't mount for non-admins. What can I add to the Sudoers file to allow certain users to mount and umount this command?
Also, if anyone had suggestions, I'd ideally like this to run automatically, I know about fstab and autofs but these are windows domain users, I joined the RHEL 8 box to the AD domain for my university and we require regular password changes, I know you can write a cred file but I'd rather not have to help every user each time they changed their password, it would be nice if there was a way just to get a script to run with the command above and ask them for their password, I know it wouldn't be a persistent mount.