You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
It's possible to configure a Linux system to pull user information from more than one location. We recently hit an issue where we were pulling the same username from two databases, but will different UIDs; an "old" ID and a "new" ID. Under these circumstances changing file permissions for files owned by that user becomes troublesome, as technically the files are owned by "username", but under the old UID. Salt in file.check_perms converts supplied IDs to names via file.uid_to_user, before comparing existing file permissions to what was requested. The issue with this is that it doesn't spot UID/GID differences, only name differences.
This also applies to GID as well.
Setup
Please be as specific as possible and give set-up details.
on-prem machine
Steps to Reproduce the behavior
I only have an example state for a Debian box.
The directory permissions are recursively updated to UID=8000 which is the UID we want to use for the testing user going forward.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Installing master:
root@minion:/salt# salt --versions-reportSalt Version:
Salt: 3006.0Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: Not Installedpycryptodome: 3.15.0pygit2: Not InstalledPython: 3.9.2 (default, Feb 28 2021, 17:03:44)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 24.0.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 11 bullseyelocale: utf-8machine: x86_64release: 5.10.124-linuxkitsystem: Linuxversion: Debian GNU/Linux 11 bullseyeroot@minion:/salt#
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
It's possible to configure a Linux system to pull user information from more than one location. We recently hit an issue where we were pulling the same username from two databases, but will different UIDs; an "old" ID and a "new" ID. Under these circumstances changing file permissions for files owned by that user becomes troublesome, as technically the files are owned by "username", but under the old UID. Salt in
file.check_perms
converts supplied IDs to names viafile.uid_to_user
, before comparing existing file permissions to what was requested. The issue with this is that it doesn't spot UID/GID differences, only name differences.This also applies to GID as well.
Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
I only have an example state for a Debian box.
The output from the above is:
Expected behavior
I would expect that when running state:
The directory permissions are recursively updated to UID=8000 which is the UID we want to use for the
testing
user going forward.Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Installing master:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: