permission

Asked by ram deva mahor

when i want to edit a file it givesmassage
permission denied

while i have been switchet to root

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

hello

to edit a file you can switch to root and open up with your favourite text editor like gedit and manipulate the file or use sudo with out root..

For example:

root@gutsy:# gedit /etc/fstab if I want to edit fstab as root
OR
bhavi@gutsy: ~ sudo gedit /etc/fstab If I want to edit fstab without root

If you are editing files in the root partition then give the following command in a terminal

gksu nautilus (Which starts nautilus as root so you can modify the files in root partition)

or

kdesu konqueror (if you are on kde/kubuntu)

Regards

Bhavani Shankar.

Revision history for this message
ram deva mahor (ramdevamahor) said :
#2

i m editing as root but getting massage that
u dont have permission

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Ok.. Can you provide info about what are you trying to edit and how are you editing in more detail please?

Revision history for this message
ram deva mahor (ramdevamahor) said :
#4

i was editing conig file of privoxy
its owner is root
 i m using command
sudo -i
for root

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#5

Hello

do

gksu nautilus for nautilus to start as root

Or kdesu konqueror if you are using kubuntu

then

gedit /etc/privoxy/config to open and modify the config file Or

sudo gedit /etc/privoxy/config to edit the file with super user privileges

More info on sudo:

https://help.ubuntu.com/community/RootSudo

Regards

Bhavani Shankar.

Revision history for this message
ram deva mahor (ramdevamahor) said :
#6

Thanks Bhavani Shankar, that solved my question.