LDAP User Permissions Glitch with Sudo Commands on Ubuntu Mounted NFS Shares

mbenard

Cadet
Joined
Feb 2, 2022
Messages
1
Hi there,

We have been struggling for quite some time now to get our heads wrapped around a glitch when running commands as sudo on NFS network shares mounted to Ubuntu workstations.

Our TrueNAS system is connected to an LDAP Server App hosted on a Synology server.

It has an NFS share that is mounted to some Ubuntu 20.04 workstations.

One of our utilities is required to be run as sudo and that is where our problems begin. Essentially this ends in a permission access issue that blocks the utility from writing data to a subfolder on the share. "Sudo: unable to execute ./script.sh: Permission denied"

To Test:

From the Ubuntu workstations, it is possible to create a directory as the user we run the utility with. It is also possible to create a directory as sudo with that user.

The only visible QUIRK that we were able to spot was that it will display odd ownership after creation under sudo.

When "mkdir test" is run as our "librarian" user, which is part of a group called instructors that is defined as an acceptable sudo user in /etc/sudoers on the Ubuntu Workstations.

drwxrwx--- 2 librarian instructors 2 Feb 2 10:47 test

When "sudo mkdir test" is run as that same user,

drwxrwx--- 2 nobody instructors 2 Feb 2 10:47 test

The "librarian" user has full read/write/execute permissions in the parent folder.

Any ideas? Has anyone come across this before?

Do we have to set our librarian user to be a sudo accepted user from within the TrueNAS system as well? If so, how would we go about doing that?

Thanks for taking the time to read this!

Mark
 
Top