Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.25] - cli: k3s fails to execute for users lacking read perms for /etc/rancher/k3s/config.yaml #7687

Closed
dereknola opened this issue Jun 7, 2023 · 1 comment
Assignees
Milestone

Comments

@dereknola
Copy link
Member

Backport fix for cli: k3s fails to execute for users lacking read perms for /etc/rancher/k3s/config.yaml

@est-suse
Copy link
Contributor

Validated on master branch using commit id 4e1ba3a

k3s version v1.25.10+k3s-4e1ba3a0 (4e1ba3a0)
go version go1.19.9

Environment Details
Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
Ubuntu 22.04

Cluster Configuration:
Single node

Steps to reproduce from the PR

touch /etc/rancher/k3s/config.yaml
sudo chmod 700 /etc/rancher/k3s/config.yaml
Install k3s
Call k3s --help, k3s --version, k3s -h, k3s server -h

Results from reproduce the issue:

ubuntu@ip-172-1-1-1:~$ k3s --version
FATA[0000] open /etc/rancher/k3s/config.yaml: permission denied 
ubuntu@ip-172-1-1~1$ k3s -v
FATA[0000] open /etc/rancher/k3s/config.yaml: permission denied 
ubuntu@iip-172-1-1-1:~$ k3s --help
FATA[0000] open /etc/rancher/k3s/config.yaml: permission denied 
ubuntu@ip-172-1-1:~$ k3s server -h
FATA[0000] open /etc/rancher/k3s/config.yaml: permission denied 

Results from validation:

 k3s --version
k3s version v1.25.10+k3s-4e1ba3a0 (4e1ba3a0)
go version go1.19.9

 k3s server -h
NAME:
   k3s server - Run management server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants