Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I run Visual Studio Code. It gives the error:
Code:
grep: /proc/version: Permission denied
.
Somewhere on the internet I found that entering
Code:
cat proc/version
will fix it but still says permission is denied. I can't use
Code:
chmod
to change permission, It also says a proc error when starting Fedora.
I can run that command with no errors as a regular user, but you mention "Visual Studio Code" is somehow involved...what, exactly are you doing?? What is this code? Can you just go to a regular terminal in Fedora and run that command??
I can run that command with no errors as a regular user, but you mention "Visual Studio Code" is somehow involved...what, exactly are you doing?? What is this code? Can you just go to a regular terminal in Fedora and run that command??
I was using a normal Fedora Terminal, I meant by the last reply; that I am running it on my phone and I am able to access it through my laptop.
I was using a normal Fedora Terminal, I meant by the last reply; that I am running it on my phone and I am able to access it through my laptop.
You're still not answering the questions asked. Again, what "Visual Studio Code" are you running where and how?? Because again, typing in the cat command as you posted it works fine for any non-root user.
Try rebooting, and then cat /proc/version before you do anything else.
Are you familiar with the 'permission modes' for files, as displayed by ls -l?
Yes, do the commands in #7. (root can chmod 0 and then only sudo=root can read it)
Also, does "starting" mean booting or (ssh) login, to you, when you say: "It also says a proc error when starting Fedora."? ?? (a login script may try to read it)
And you might need sudo to use chmod. Do you understand sudo=root concepts?
For learning, you can web-research the basic concepts of /proc (or anything).
Last edited by GentleThotSeaMonkey; 09-01-2021 at 07:10 PM.
You're still not answering the questions asked. Again, what "Visual Studio Code" are you running where and how?? Because again, typing in the cat command as you posted it works fine for any non-root user.
I can't make a non root user and I am running the latest version of VS Code.
Quote:
Originally Posted by GentleThotSeaMonkey
Try rebooting, and then cat /proc/version before you do anything else.
Are you familiar with the 'permission modes' for files, as displayed by ls -l?
Yes, do the commands in #7. (root can chmod 0 and then only sudo=root can read it)
Also, does "starting" mean booting or (ssh) login, to you, when you say: "It also says a proc error when starting Fedora."? ?? (a login script may try to read it)
And you might need sudo to use chmod. Do you understand sudo=root concepts?
For learning, you can web-research the basic concepts of /proc (or anything).
Rebooting does not work on that command ls does not work. I am root. I fo a normal boot instead of SSH.
There are a lot of confusions here. I guess we are speaking about two hosts:
1. a [smart]phone with android 11 and termux. This is not a real linux and that's why you have those problems with /proc/version, sudo, reboot and similar commands.
2. your PC running fedora(?) and Visual Studio Code.
But it is only my guess, I have no idea about the real setup. Would be nice to explain.
There are a lot of confusions here. I guess we are speaking about two hosts:
1. a [smart]phone with android 11 and termux. This is not a real linux and that's why you have those problems with /proc/version, sudo, reboot and similar commands.
2. your PC running fedora(?) and Visual Studio Code.
But it is only my guess, I have no idea about the real setup. Would be nice to explain.
I am using my phone because my laptop had proprietary drivers. So I use a VNC viewer to access it.
I can't make a non root user and I am running the latest version of VS Code.
Sorry, you are *STILL* not making any sense and not understanding what you're being asked. You STILL don't say what "VS Code" has to do with any of this, or how. And if you're the root user, you absolutely CAN make any other users you want. Root can do anything on a *nix system.
Quote:
Rebooting does not work on that command ls does not work. I am root. I fo a normal boot instead of SSH. I am using my phone because my laptop had proprietary drivers. So I use a VNC viewer to access it.
Again, you're not making sense. No idea how 'proprietary drivers' fit into things here, and you don't say what kind of laptop, but as pan64 mentioned, if you're doing this on Android, that is *NOT* Fedora (or Linux), which is why things don't work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.