I downloaded Kali linux, great os if you ask me, but I want to set the PATH to /sbin/
How do I do that, I want to set it permanantly and how do I make my account root so that I can create new files in /etc ... and so forth?
MasterHacker110
-4
Newbie Poster
Recommended Answers
Jump to PostNormally, you should have
sudo
privileges. In that case, you can run any commands you want under root-privileges by writingsudo
before it, like:$ cd /sbin/ /sbin$ sudo mkdir test_dir [sudo] password for YOUR_USERNAME: /sbin$ cd test_dir /sbin/test_dir$
To actually switch the root user within a command terminal …
Jump to PostActually Mike, you don't want to set PATH in .bashrc, as it is executed on each invocation of bash, sometimes resulting in PATH variables like "/sbin:/sbin:/sbin:/usr/bin:...". Path should only be set (in my opinion) in .bash_profile, or in a manually run script when you need to temporarily add a new …
All 5 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
MasterHacker110
-4
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.