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
The above command run in user's home directory with very strict access permissions and which residing on NFS, causes the error below:
$ cd $HOME && sudo salt-key -L
Usage: salt-key [options]
salt-key: error: Error while processing <function SaltKeyOptionParser.__create_keys_dir at 0x7f64642035e0>: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 212, in parse_args
mixin_after_parsed_func(self)
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 2777, in __create_keys_dir
os.makedirs(self.config["gen_keys_dir"])
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '.'
Please read #31507 as this is exactly the same issue but, unfortunatelly, that one just got closed as completed.
Setup
User, who has admin permissions granted via sudo and $HOME on an NFS server with permission not allowing the local root user to view it.
Please be as specific as possible and give set-up details.
VM (Virtualbox, KVM, etc. please specify)
classic packaging
Steps to Reproduce the behavior
Set up an NFS server with 0700 permissions on user's $HOME directories.
On a client machine, which is not the NFS root, run cd $HOME && sudo salt-key -L - user obviously has local admin rights via sudo.
Get the above error message.
cd / && sudo salt-key -L works as expected and obviously doesn't display the message as there are no NFS access constraints on local /, which is then the $PWD.
Expected behavior
$ cd $HOME && sudo salt-key -L
run in user's $HOME directory, which resides on NFS and has strict access permissions (0700) should still display the list of keys.
Versions Report
salt --versions-report
$ salt --versions-reportSalt Version:
Salt: 3005.2Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: 2.7.3docker-py: Not Installedgitdb: 2.0.6gitpython: 3.0.7Jinja2: 2.10.1libgit2: 0.28.3M2Crypto: Not InstalledMako: 1.1.0msgpack: 0.6.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.6.1pygit2: 1.0.3Python: 3.8.10 (default, May 26 2023, 14:05:08)python-gnupg: 0.4.5PyYAML: 5.3.1PyZMQ: 20.0.0smmap: 2.0.5timelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.2System Versions:
dist: ubuntu 20.04 focallocale: utf-8machine: x86_64release: 5.15.0-72-genericsystem: Linuxversion: Ubuntu 20.04 focal
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Description
The above command run in user's home directory with very strict access permissions and which residing on NFS, causes the error below:
Please read #31507 as this is exactly the same issue but, unfortunatelly, that one just got closed as completed.
Setup
User, who has admin permissions granted via
sudo
and$HOME
on an NFS server with permission not allowing the localroot
user to view it.Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
0700
permissions on user's$HOME
directories.cd $HOME && sudo salt-key -L
- user obviously has local admin rights viasudo
.cd / && sudo salt-key -L
works as expected and obviously doesn't display the message as there are no NFS access constraints on local/
, which is then the$PWD
.Expected behavior
run in user's $HOME directory, which resides on NFS and has strict access permissions (0700) should still display the list of keys.
Versions Report
salt --versions-report
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: