LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-22-2006, 09:30 AM   #1
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Rep: Reputation: 15
permissions


2.6.17 , sid
Hi,
Many times I'm getting "permission denied" even when working as a root . My questions :
1. Is there a guide / article that explain how can I change permissions for simple user and for root ?

2. When working with the KDE or GNOME (not through command line) , how can I tell the system to work as a root on all applications ?

3. Is there a simple explanation for how to use and operate SUDO ?

Thanks.
 
Old 08-22-2006, 11:21 AM   #2
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Rep: Reputation: 30
1. Is there a guide / article that explain how can I change permissions for simple user and for root ?
Firstly, if you get "permission denied" when working as root, then its likely that you tried to execute a file not marked as executable. You might need to:
Code:
chmod +x filename
Secondly, http://www.zzee.com/solutions/linux-permissions.shtml is a good guide to permissions.


2. When working with the KDE or GNOME (not through command line) , how can I tell the system to work as a root on all applications ?
The easiest way is to login as a root session. Use the username "root" and whatever you set your root password to. If you haven't set a root password (unlikely unless you're an Ubuntu user), use:
Code:
sudo passwd root
To setup your root password. Also make sure your login manager (gdm/kdm/whatever) allows root logins, as a very few (Ubuntu again) disable this by default.


3. Is there a simple explanation for how to use and operate SUDO ?
http://www.linuxdevcenter.com/linux/...sp?path=s/sudo is a good quick reference. Also, remember that most bash commands will list their usage and paramters by adding
Code:
 --help
and/or
Code:
 -h
after the command (note the space before the parameter).


Thanks.
no problem.
 
Old 08-22-2006, 11:27 AM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
1) I'm not sure you should ever get a "permission denied" error for root, but here's a guide on setting permissions. You also might add your user to the "admin" group, which should give you a few more rights to edit certain files or run certain programs.

2) I don't know, you could make it so you can log in as root I guess. But this is bad practice and shouldn't really be done, so I'm not going to figure out how to do it. You can install gksu or similar that should let you run apps as root though.

3) Here, here, and here.

And just in case you're interested, here's a couple of good Debian specific websites.
http://aboutdebian.com/
http://www.debianhelp.co.uk/index.php
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
10.1 - permissions High-gain Linux - Newbie 8 08-06-2005 02:49 AM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
Permissions Steve1445 Linux - Newbie 3 01-28-2004 03:01 PM

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

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