linuxmuster / linuxmuster-linuxclient7

The new approach on connecting linuxclients to the Linuxmuster.net v7 Active Directory server.
3 stars 5 forks source link

Dont use absolute path for binaries #28

Closed dorianim closed 2 years ago

dorianim commented 3 years ago

Dont use an absolute path for binaries in subprocess calls! They are not always in the same place.

See: https://ask.linuxmuster.net/t/linuxclient-kein-login-moeglich/7930/53

kiarn commented 3 years ago

You can first verify the path with which mount.cifs. That's what I do for non-standards binary in ajenti.

Arnaud

dorianim commented 3 years ago

Could also use this: https://docs.python.org/dev/library/shutil.html#shutil.which