LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-01-2021, 04:55 AM   #1
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Rep: Reputation: Disabled
Angry proc permission is denied.


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[/CODE 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.
 
Old 09-01-2021, 05:11 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
that is interesting. What OS is it exactly?
Code:
user@host:/tmp$ ls -l /proc/version
-r--r--r-- 1 root root 0 sept  1 12:08 /proc/version
user@host:/tmp$ cat /proc/version
Linux version 5.4.0-81-generic ...
 
Old 09-01-2021, 06:54 AM   #3
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by pan64 View Post
that is interesting. What OS is it exactly?
Code:
user@host:/tmp$ ls -l /proc/version
-r--r--r-- 1 root root 0 sept  1 12:08 /proc/version
user@host:/tmp$ cat /proc/version
Linux version 5.4.0-81-generic ...
Fedora 33 running in Termux (App) in Android 11.
 
Old 09-01-2021, 07:26 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
That is not a real linux environment, but an emulator. Probably that's why it is different.
 
1 members found this post helpful.
Old 09-01-2021, 08:10 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by M. Yusuf Suleman View Post
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??
 
Old 09-01-2021, 10:21 AM   #6
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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.
 
Old 09-01-2021, 11:17 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,601

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

It's not very clear on what you're running where.

I doubt you're running Fedora "in" Termux, you are probably only using the SSH client?

Are you running Fedora on a phone (what hardware?) or are you running Fedora on a laptop which you are connecting to through a phone?

What is the output of the following commands:

Code:
ls -l /proc/version
cat /proc/version
sudo cat /proc/version
ls -l /etc/*release*
cat /etc/*release*
sudo cat /etc/*release*
inxi -S
Please be clear on what/where you are entering them into (e.g. phone or laptop, Termux terminal or Fedora terminal, etc).

 
Old 09-01-2021, 11:23 AM   #8
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
It's not very clear on what you're running where.

I doubt you're running Fedora "in" Termux, you are probably only using the SSH client?

Are you running Fedora on a phone (what hardware?) or are you running Fedora on a laptop which you are connecting to through a phone?

What is the output of the following commands:

Code:
ls -l /proc/version
cat /proc/version
sudo cat /proc/version
ls -l /etc/*release*
cat /etc/*release*
sudo cat /etc/*release*
inxi -S
Please be clear on what/where you are entering them into (e.g. phone or laptop, Termux terminal or Fedora terminal, etc).

Both Fedora and Termux Fail with the same error.
 
Old 09-01-2021, 11:33 AM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,601

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by M. Yusuf Suleman View Post
Both Fedora and Termux Fail with the same error.
???

Did you actually read any part of the post you quoted?

If you want people to help, you need to answer questions and follow instructions.

 
1 members found this post helpful.
Old 09-01-2021, 12:28 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by M. Yusuf Suleman View Post
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.
 
Old 09-01-2021, 06:51 PM   #11
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
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.
 
Old 09-03-2021, 02:31 AM   #12
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: Disabled
Talking

OTE=boughtonp;6280589]???

Did you actually read any part of the post you quoted?

If you want people to help, you need to answer questions and follow instructions.


[/QUOTE]
This is what your commands do in the Termux terminal:
Code:
[root@localhost ~]# ls -l /proc/version
ls: cannot access '/proc/version': Permission denied
[root@localhost ~]# cat /proc/version
cat: /proc/version: Permission denied
[root@localhost ~]# sudo cat /proc/version
bash: sudo: command not found
[root@localhost ~]# ls -l /etc/*release*
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/fedora-release -> ../usr/lib/fedora-release
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/os-release -> ../usr/lib/os-release
lrwxrwxrwx. 1 root root 18 Dec 15  2020 /etc/redhat-release -> fedora-release
lrwxrwxrwx. 1 root root 18 Dec 15  2020 /etc/system-release -> fedora-release
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/system-release-cpe -> ../usr/lib/system-release-cpe
[root@localhost ~]# cat /etc/*release*
Fedora release 33 (Thirty Three)
NAME=Fedora
VERSION="33 (Container Image)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container
Fedora release 33 (Thirty Three)
Fedora release 33 (Thirty Three)
cpe:/o:fedoraproject:fedora:33
[root@localhost ~]# sudo cat /etc/*release*
bash: sudo: command not found
[root@localhost ~]# inxi -S
System:
  Host: localhost
  Kernel: 4.14.190-perf-ga99a091 aarch64 bits: 64
  Desktop: Xfce 4.14.4
  Distro: Fedora release 33 (Thirty Three)
Quote:
Originally Posted by TB0ne View Post
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 View Post
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.
 
Old 09-03-2021, 02:38 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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.
 
1 members found this post helpful.
Old 09-03-2021, 05:49 AM   #14
M. Yusuf Suleman
LQ Newbie
 
Registered: Jan 2021
Location: Lahore, Pakistan
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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.
 
Old 09-03-2021, 08:32 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by M. Yusuf Suleman View Post
Quote:
Originally Posted by boughtonp View Post
???
Did you actually read any part of the post you quoted? If you want people to help, you need to answer questions and follow instructions.
This is what your commands do in the Termux terminal:
Code:
[root@localhost ~]# ls -l /proc/version
ls: cannot access '/proc/version': Permission denied
[root@localhost ~]# cat /proc/version
cat: /proc/version: Permission denied
[root@localhost ~]# sudo cat /proc/version
bash: sudo: command not found
[root@localhost ~]# ls -l /etc/*release*
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/fedora-release -> ../usr/lib/fedora-release
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/os-release -> ../usr/lib/os-release
lrwxrwxrwx. 1 root root 18 Dec 15  2020 /etc/redhat-release -> fedora-release
lrwxrwxrwx. 1 root root 18 Dec 15  2020 /etc/system-release -> fedora-release
lrwxrwxrwx. 1 root root 34 Dec 15  2020 /etc/system-release-cpe -> ../usr/lib/system-release-cpe
[root@localhost ~]# cat /etc/*release*
Fedora release 33 (Thirty Three)
NAME=Fedora
VERSION="33 (Container Image)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container
Fedora release 33 (Thirty Three)
Fedora release 33 (Thirty Three)
cpe:/o:fedoraproject:fedora:33
[root@localhost ~]# sudo cat /etc/*release*
bash: sudo: command not found
[root@localhost ~]# inxi -S
System:
  Host: localhost
  Kernel: 4.14.190-perf-ga99a091 aarch64 bits: 64
  Desktop: Xfce 4.14.4
  Distro: Fedora release 33 (Thirty Three)
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.

Your laptop can most likely run Linux just fine.
 
  


Reply

Tags
chmod, fedora, permission denied, proc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot hang after 'proc on /proc type proc (rw)' Hagoromo Slackware 13 10-05-2007 05:03 PM
/proc/asound/card0/pcm0p/oss: Permission denied crane Linux - Hardware 4 08-23-2007 05:41 AM
Strange entry in `df` (df: `/var/named/chroot/proc': Permission denied) BWebb Linux - General 1 09-14-2006 10:08 AM
fc3 /proc/net permission denied adem0rdna Fedora 15 05-25-2005 11:08 PM
permission denied executing /proc/version syandoa Linux - Newbie 2 03-16-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration