LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2016, 02:08 PM   #1
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Rep: Reputation: Disabled
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?
 
Old 05-29-2016, 06:55 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.
 
Old 05-30-2016, 11:35 AM   #3
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
How to enable root?
 
Old 05-30-2016, 11:52 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
1 members found this post helpful.
Old 05-30-2016, 12:29 PM   #5
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
How to setup sudo?
 
Old 05-30-2016, 12:37 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Pavle View Post
How to setup sudo?
In light of answers already posted, why to setup sudo?

What are you trying to do?
 
Old 05-30-2016, 12:43 PM   #7
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
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

Last edited by Pavle; 05-30-2016 at 12:50 PM.
 
Old 05-30-2016, 12:50 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
I just want to have permsission to run apt-get
YOU ARE ALREADY ROOT!!!!

unless YOU made a non root user
 
Old 05-30-2016, 12:50 PM   #9
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
When I run apt-get update:
sudo: PERM_ROOT: setrescuid(0, -1, -1): Permission denided
 
Old 05-30-2016, 12:55 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 05-30-2016, 01:04 PM   #11
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Pavle View Post
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.

Last edited by astrogeek; 05-30-2016 at 01:06 PM.
 
Old 05-30-2016, 01:13 PM   #12
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Question

Hi.

So, you're putting just:
Code:
apt-get &c
and getting sudo error?
Quote:
Originally Posted by frankbell View Post
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!
 
Old 05-30-2016, 01:15 PM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
No, he is trying to use sudo apparently having no idea what sudo is.
 
Old 05-30-2016, 03:30 PM   #14
Pavle
LQ Newbie
 
Registered: May 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
???
 
Old 05-30-2016, 04:29 PM   #15
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Arrow

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 I tried desperately to get Satan Click image for larger version

Name:	satan.gif
Views:	17
Size:	1.4 KB
ID:	21941 running but it was too late in it's game (and early in mine,) then Backtrack!

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

Last edited by jamison20000e; 05-30-2016 at 07:35 PM. Reason: I know it's not a text editor but a forum! ;-P
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken sudo / Incorrect permission marlaw Fedora 2 11-05-2014 12:26 PM
problem in getting sudo permission rdpatel55 Linux - Newbie 4 05-20-2009 04:49 AM
sudo and >>: permission denied mcd Linux - Software 2 06-25-2008 03:30 PM
sudo - permission denied! yogaboy Linux - Newbie 5 12-28-2006 11:58 PM
sudo permission denied Swift&Smart Slackware 5 07-13-2006 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:55 AM.

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