LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2008, 05:41 AM   #1
Talon21
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Rep: Reputation: 0
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
 
Old 07-25-2008, 05:58 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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.
 
Old 07-25-2008, 08:09 AM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Talon21 View Post
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.
 
Old 07-25-2008, 10:33 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
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.
 
  


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
mysql root privilages lost automaticaly on a database asheesh.tyagi Linux - Newbie 3 02-21-2006 09:55 AM
Is there anyway to connect to the internet without root privilages? captainfreedom Linux - Newbie 2 02-28-2005 10:59 AM
root privilages cheech66 Linux - Newbie 7 05-31-2004 08:09 AM
Root User Privilages Jonlinuxuser Linux - Software 1 05-17-2004 06:58 PM
NTFS drive - no user privilages - root only jon_k Linux - Software 2 09-01-2003 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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