LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Root Privilages (https://www.linuxquestions.org/questions/debian-26/root-privilages-658168/)

Talon21 07-25-2008 05:41 AM

Root Privilages
 
Hi all, I have just installed debian OS and I can't create new folders or files. how can I change my user privialges in order to create folders and change files.

Thanks

jomen 07-25-2008 05:58 AM

During the install you have been asked to create a user account (or more than one...)?
You are now logged in as that user?
In that case you can only modify files in your /home/<username> directory and in /tmp .
For modifying anything else you need to become "root"
Eighter log in as root on the console or use: su - to become "root" temporarily.

David1357 07-25-2008 08:09 AM

Quote:

Originally Posted by Talon21 (Post 3225903)
Hi all, I have just installed Debian OS and I can't create new folders or files. How can I change my user privileges in order to create folders and change files?

Most people use "sudo mkdir <dirname>" to create subdirectories in directories that are owned by root.

Another thing you can do is "sudo passwd root" and set the root password to something you know. Then you can "su root" or "sudo bash" and get root access.

carlosinfl 07-25-2008 10:33 AM

Code:

sudo apt-get -y install visudo
Now edit this file and add your user account under root:

Code:

Talon21  ALL=(ALL) ALL
Now you can sudo run all your commands as yourself rather than becoming root.


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