LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   logged in as root (https://www.linuxquestions.org/questions/linux-newbie-8/logged-in-as-root-4175614322/)

kalinoob07 09-22-2017 03:50 PM

logged in as root
 
Hello,
just installed kali linux on lappy.
I wasnt aware of the threats of being logged in as root. But now that ik, iwant to fix it. Please help

Zyblin 09-22-2017 05:14 PM

These two links may be of help to you.

https://www.blackmoreops.com/2013/11...in-kali-linux/

http://linuxbsdos.com/2013/03/15/add...to-kali-linux/


The link below explains that it is not really noobie friendly and you are already aware of the dangers of running your system as root. I have been using Linux for decades now and I only allow root privileges when needed, not all the time.

https://docs.kali.org/policy/kali-li...ot-user-policy

But be warned. You are new and you may make mistakes, we all have at first. This is ok as long as Kali is not your everyday main operating system. If it is you may want to consider another, more noobie friendly distro to start with and learn from.

jmgibson1981 09-22-2017 06:14 PM

Ubuntu, or even Debian is a better place to start. People talk Kali all the time but most seem to think it will make them some elite hacker or something. It's a very specialized distro. Mint is a good choice as well, and wide compatibility as it uses Ubuntu repos.

!!! 09-23-2017 01:18 AM

Hi & welcome (I think;)) Did you notice the "sticky", prominently posted at the top of the posts in this forum? Sticky: Using Kali Linux? PLEASE READ!! ???!!!

Since you're probably 'just playing' and can easily reinstall, no need to worry.

But, rather that posting what's almost like: "What's linux?"
please take time to read&study a lot on the Wonderful Www Web;)

If you get stuck on a particular 'issue' where you can't find a solution on the web,
then carefully compose a question, with all necessary details to clarify.

You might also post in the IntroForum, to say 'hello' and tell a bit about your PC, internet connection, computer/OS/net experience, Linux interests/goals. Enjoy Linux!!!

TB0ne 09-23-2017 08:45 AM

Quote:

Originally Posted by kalinoob07 (Post 5761801)
Hello,
just installed kali linux on lappy.
I wasnt aware of the threats of being logged in as root. But now that ik, iwant to fix it. Please help

You should probably start by actually reading the Kali Linux website...did you do that? From their own website:
Quote:

Originally Posted by Kali Website
The fact of the matter is, however, that Kali is a Linux distribution specifically geared towards professional penetration testers and security specialists, and given its unique nature, it is NOT a recommended distribution if you’re unfamiliar with Linux or are looking for a general-purpose Linux desktop distribution for development, web design, gaming, etc.

As you were told, load Mint, Ubuntu, Fedora, or pretty much ANY other distro.

Emerson 09-23-2017 08:50 AM

Actually I'd like to praise our OP. Recognizing the dangers and trying to do something about it is commendable, in comparison to all wannabe hackers Kali users we see in the internet forums.

TB0ne 09-23-2017 09:25 AM

Quote:

Originally Posted by Emerson (Post 5761964)
Actually I'd like to praise our OP. Recognizing the dangers and trying to do something about it is commendable, in comparison to all wannabe hackers Kali users we see in the internet forums.

Agreed, but at the same time, just loading something without knowing ANYTHING about it isn't a good thing.

Emerson 09-23-2017 10:08 AM

Yes, but it is human. I remember when I started I was given RH-5.0 CD by a friend. I could have said, no, let me search the Usenet, maybe there is something better for a newbie. And actually there was Mandrake, as a learned later. But in reality I installed RH-5.0 and started discovering it. And ... :redface: I ran it as root for at least two weeks because I grew frustrated fast with everything denied. So I'd cut some slack to newbies, everyone has to make first steps somehow. It is not easy to step in right direction if the land is uncharted for you. :)

kalinoob07 09-28-2017 01:21 AM

List contents of disk partitions
 
Thanks to u guys i have solved the root problem.

I have an sda with 1TB capacity. It has 13 partitions.
I want to view contents of each partition using terminal and delete some game files like nfsrivals from sda4.
please tell me the exact commands to do the same.

ondoho 09-28-2017 04:13 AM

Quote:

Originally Posted by kalinoob07 (Post 5763812)
I want to view contents of each partition using cmd and delete some game files

'cmd' is a windows thing, so you have to boot into windows, then press Alt+F2, then enter 'cmd'.
from then onwards i don't know.
i never use windows.

kalinoob07 09-28-2017 05:59 AM

Quote:

Originally Posted by ondoho (Post 5763863)
'cmd' is a windows thing, so you have to boot into windows, then press Alt+F2, then enter 'cmd'.
from then onwards i don't know.
i never use windows.

sorry i meant terminal..switched to linux 1month ago so....

Turbocapitalist 09-28-2017 07:14 AM

You'll probably benefit from an introductory tutorial like this one:

https://ryanstutorials.net/linuxtutorial/navigation.php

There are some commands built into the shell, such as cd,pushd, popd. See the manual pages periodically so you learn how to navigate them properly.

Code:

man ls
man rm
man mv
man pwd
man bash

Watch out for that last one. Those are not a tutorials but reference works to be navigated. That's especially important to remember when dealing with the bash manual page. Or if you are using a different shell, such as zsh or ksh, then refer instead to those manual pages.

You'd also be doing yourself a favor by working with Linux Mint or Ubuntu as your base and adding the networking tools to that.

Zyblin 09-28-2017 07:36 AM

https://www.youtube.com/results?sear...asic+tutorials

kalinoob07 09-28-2017 09:48 AM

Quote:

Originally Posted by Turbocapitalist (Post 5763941)
You'll probably benefit from an introductory tutorial like this one:

https://ryanstutorials.net/linuxtutorial/navigation.php

There are some commands built into the shell, such as cd,pushd, popd. See the manual pages periodically so you learn how to navigate them properly.

Code:

man ls
man rm
man mv
man pwd
man bash

Watch out for that last one. Those are not a tutorials but reference works to be navigated. That's especially important to remember when dealing with the bash manual page. Or if you are using a different shell, such as zsh or ksh, then refer instead to those manual pages.

You'd also be doing yourself a favor by working with Linux Mint or Ubuntu as your base and adding the networking tools to that.

the link doesnt contain the info on how can i view the contents of sda3 (inside "other locations")

yes you are right , i should have started with ubuntu or mint but , with due respect , now that i have installed kali , learning the basics from this os itself is much more feasible than installing ubuntu.

Turbocapitalist 09-28-2017 09:56 AM

*cough*cough*

Quote:

Originally Posted by kalinoob07 (Post 5764007)
the link doesnt contain the info on how can i view the contents of sda3 (inside "other locations")

That would likely mean that you have to mount the partition first:

http://itc.virginia.edu/os/linux/mount.html

Then you'll want to look at the following, perhaps even the --bind option for mount.

Code:

man mount
man umount
man df
man du

And then see the previously mentioned utilities.


All times are GMT -5. The time now is 01:47 PM.