LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sudo -permission denided (https://www.linuxquestions.org/questions/linux-general-1/sudo-permission-denided-4175580976/)

Pavle 05-29-2016 02:08 PM

Sudo -permission denided
 
When I launch kali linux with VNC Viewer,I open LX terminal and run command sudo apt-get update I get error:
sudo: PERM_ROOT: setrescuid(0, -1, -1): Permission denided
How to fix this?

frankbell 05-29-2016 06:55 PM

More information would help.

When you are not using a VNC but are accessing the Kali machine directly, can you use sudo?

Are you using the same username via VNC as you would use locally at the Kali machine?

Have you enabled the root account in Kali and, if so, can you su to root?

I found a thread on the Kali forums that might help. As Kali is highly specialized, you might consider posing your question directly at the Kali forums.

Pavle 05-30-2016 11:35 AM

How to enable root?

John VV 05-30-2016 11:52 AM

kali has only ONE user "root"
most of the tools that make kali well "kali" you NEED to be root to use

so there is NO sudo , no normal users ( unless YOU!!! make them)
sudo is not set up

Pavle 05-30-2016 12:29 PM

How to setup sudo?

astrogeek 05-30-2016 12:37 PM

Quote:

Originally Posted by Pavle (Post 5553085)
How to setup sudo?

In light of answers already posted, why to setup sudo?

What are you trying to do?

Pavle 05-30-2016 12:43 PM

I just want to have permsission to run apt-get!
When I run apt-get update:
sudo: PERM_ROOT: setrescuid(0, -1, -1): Permission denided

John VV 05-30-2016 12:50 PM

Quote:

I just want to have permsission to run apt-get
YOU ARE ALREADY ROOT!!!!

unless YOU made a non root user

Pavle 05-30-2016 12:50 PM

When I run apt-get update:
sudo: PERM_ROOT: setrescuid(0, -1, -1): Permission denided

John VV 05-30-2016 12:55 PM

Also Kali is a distro made by EXPERTS!!! for use BY EXPERTS!!!!

and has only one real use

covert pen testing

and if you have to ask questions on kail then you are not an expert and i am guessing want to use Kali in a way that is in violation of this sites rules

basically if it is illegal WE CAN NOT HELP

and if you ARE a network security expert then you would not need to ask basic questions on basic operations

astrogeek 05-30-2016 01:04 PM

Quote:

Originally Posted by Pavle (Post 5553090)
I just want to have permsission to run apt-get!
When I run apt-get update:
sudo: PERM_ROOT: setrescuid(0, -1, -1): Permission denided

Then please respond to frankbell's request for more info as we cannot see how you are trying to access it.

And I tend to agree with John VV, Kali is a distro made for a very specific purpose and use by expert users - only!

From access via VNC on, your questions would indicate that you are not among the intended user pool.

You can easily do harm to yourself and to others by unknowledgable use, or intentional misuse of Kali.

If your intent is not malicious, please reconsider your use of Kali and try another distro until you learn your way around.

If your intent appears to be spurious or malicious, expect some lack of support from others here at LQ.

jamison20000e 05-30-2016 01:13 PM

Hi.

So, you're putting just:
Code:

apt-get &c
and getting sudo error?
Quote:

Originally Posted by frankbell (Post 5552806)
More information would help.

When you are not using a VNC but are accessing the Kali machine directly, can you use sudo?

Are you using the same username via VNC as you would use locally at the Kali machine?

Have you enabled the root account in Kali and, if so, can you su to root?

I found a thread on the Kali forums that might help. As Kali is highly specialized, you might consider posing your question directly at the Kali forums.

Have fun! :)

Emerson 05-30-2016 01:15 PM

No, he is trying to use sudo apparently having no idea what sudo is.

Pavle 05-30-2016 03:30 PM

???

jamison20000e 05-30-2016 04:29 PM

1 Attachment(s)
John VV responded with my go to on Kali, "a distro made by EXPERTS!!! for use BY EXPERTS!!!!" (Much over my head and constantly evolving...)

but on a closed network for learning and testing it's cool. Back as a :newbie: I tried desperately to get Satan Attachment 21941 running but it was too late in it's game (and early in mine,) then Backtrack! :D

Add: http://ftp.lat.com/gabe.htm


All times are GMT -5. The time now is 08:42 PM.