Code Monkey home page Code Monkey logo

Comments (13)

bxy4543 avatar bxy4543 commented on July 21, 2024

非root用户吗?

from sealos.

sealos-ci-robot avatar sealos-ci-robot commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Non-root user?

from sealos.

fu7100 avatar fu7100 commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Non-root user?

是的用户名不是root,但是它具有root权限。

from sealos.

fu7100 avatar fu7100 commented on July 21, 2024

非root用户吗?

对非root用户,但具有root权限。

from sealos.

sealos-ci-robot avatar sealos-ci-robot commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Non-root user?

For non-root users, but with root permissions.

from sealos.

bxy4543 avatar bxy4543 commented on July 21, 2024

看起来像是因为sudo -E 导致其没有正确找到Kubeconfig配置

from sealos.

sealos-ci-robot avatar sealos-ci-robot commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It looks like sudo -E is causing it to not find the Kubeconfig configuration correctly

from sealos.

fu7100 avatar fu7100 commented on July 21, 2024

看起来像是因为sudo -E 导致其没有正确找到Kubeconfig配置

我的用户叫ctg,它的家目录是/home/ctg,但是他是root
[root@master ~]# pwd
/home/ctg
[root@master ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@master ~]#

from sealos.

sealos-ci-robot avatar sealos-ci-robot commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Looks like it didn't find the Kubeconfig configuration correctly because of sudo -E

My user name is ctg, its home directory is /home/ctg, but he is root
[root@master ~]# pwd
/home/ctg
[root@master ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@master ~]#

from sealos.

fu7100 avatar fu7100 commented on July 21, 2024

看起来像是因为sudo -E 导致其没有正确找到Kubeconfig配置

我的用户叫ctg,它的家目录是/home/ctg,但是他是root [root@master ~]# pwd /home/ctg [root@master ~]# id uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 [root@master ~]#

[root@master ~]# more /etc/passwd
root:x:0:0:root:/root:/sbin/nologin
#root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:999:998:User for polkitd:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
redis:x:998:996:Redis Database Server:/var/lib/redis:/sbin/nologin
ctg:x:0:0::/home/ctg:/bin/bash
elasticsearch:x:1000:1000:es user:/home/elasticsearch:/sbin/nologin

from sealos.

bxy4543 avatar bxy4543 commented on July 21, 2024

ls $HOME/.kube 和ls /root/.kube看下

from sealos.

sealos-ci-robot avatar sealos-ci-robot commented on July 21, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Check out ls $HOME/.kube and ls /root/.kube

from sealos.

stale avatar stale commented on July 21, 2024

This issue has been automatically closed because we haven't heard back for more than 60 days, please reopen this issue if necessary.

from sealos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.