LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2020, 06:03 AM   #1
srnrp
LQ Newbie
 
Registered: Oct 2020
Posts: 1

Rep: Reputation: Disabled
Question /root access denied.


I accidentaly changed my .bashrc on /root folder now i cannot access root folder then i dont know what to do i just installed kali linux last night, i need this help. https://i.imgur.com/uDmemGG.png
https://imgur.com/C6rMqtb.png
 
Old 10-26-2020, 06:45 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
hi, and welcome here, at LQ.
I have to say you need to choose another distro, not kali. https://www.linuxquestions.org/quest...ad-4175614092/
https://www.linuxquestions.org/quest...ro-4175623119/
Additionally would be nice to give more details, what you posted is not enough to help you.
(like which user was used to modify bashrc, what did you change, which user was trying to access /root .....)
 
2 members found this post helpful.
Old 10-26-2020, 10:45 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
+1. No one should touch Kali until they have at least a year's experience of Linux administration.
 
1 members found this post helpful.
Old 10-26-2020, 12:13 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I'll third this: Kali is an advanced distro used for penetration testing and is not a general purpose distro. It also works MUCH better and is far less of a pain in the rear to run the pre-made images in a VM.

Having said that, pan64 hit the nail on the head: what user is accessing "/root"? Only the root user can access that directory and you should never be running a desktop with the root user.
 
1 members found this post helpful.
Old 10-26-2020, 01:02 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I fully concur with the fellow members. But will also note, and I suspect we may consider updating and emphasize on the Kali sticky thread that:
  1. There are plenty of reasons to use Kali, and sometimes people use it for academic reasons. If the latter, then a good suggestion is that persons seek out the advice of the course instructor who has guided you to use this distribution and ask them how you can search for resources.
  2. The Kali site has their own forums and wiki pages and those should be consulted.
  3. The tools employed by Kali are not unique to the distribution, so therefore if you are seeking information about these applications, then be specific and you may benefit by others who are familiar with their use.
  4. Installing Kali Linux is not a primary recommendation even by the Kali Linux maintainers, therefore be aware that few members may be able to answer very specific questions about an install, however members can certainly answer similar Linux OS questions, providing there's enough background. If you've made changes to your system, you need to be able to describe clearly what you have done, otherwise Kali or otherwise, members really are not able to help much without knowing the background as to what changes you have made.
I feel point #4 here is most relevant to your question, srnrp. You've made changes, you cannot as yet describe what you changed and how you did this. Yes a picture is worth 1,000 words, however the picture you show illustrates a fault symptom and nothing about how you got there. Regardless of this being Kali or a more user friendly based distribution, you need to provide a more clear description of what you've done. Otherwise you may find that a restarting point is one of the things which is your only action to fix what you've broken.
 
1 members found this post helpful.
Old 10-27-2020, 01:05 AM   #6
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
chroot should let you fix it.
 
Old 10-27-2020, 05:45 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
The .bashrc file has nothing to do with accessing the root folder. Nothing you did there would affect opening /root. What does matter is that only root can access root's folders. You need to become root or use sudo in order to open those folders. You can become root by using su in a terminal or by using sudo in a terminal.
 
2 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
Apache getting (13) Permisison Denied Access to /index.html denied imkornhulio Linux - Server 1 03-12-2015 12:31 PM
[SOLVED] Permission denied as root to a root-owned directory threevolve Ubuntu 3 06-06-2013 07:27 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
why I got "Access denied for user: 'root@localhost'" likedreamer Red Hat 1 11-09-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 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