Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Permission Denied!
computerwhiz187
post Jan 1 2004, 11:36 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 24
Joined: 23-November 03
Member No.: 1,855



Hi,

First of all, i am a linux newbie and i have a problem. I need to chesk various files such as /etc/hosts and thins like that but every time i try it tells me Permission denied. I am using mandrake 9.0 an when i try to go to those files i am logged on as root, so i don't know what to do.

thanks
Go to the top of the page
 
+Quote Post
hughesjr
post Jan 1 2004, 01:01 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



1. how are you logged in as root:

(for example, are you logged it mandrake as the root user from a GUI login ... logged in as root via a console login, logged in as a user with a root terminal window open, etc...)

2. how are you trying to access the files:

(for example, with vi in a terminal window, with vi from the console, with kate (or gedit) from the menu, etc.)


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
computerwhiz187
post Jan 1 2004, 01:50 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 24
Joined: 23-November 03
Member No.: 1,855



i logged in with the gui login and tried to access them from a terminal window
Go to the top of the page
 
+Quote Post
hughesjr
post Jan 1 2004, 02:48 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



in the teminal window, use the command:

whoami

and make sure it tells you that you are root..

to edit the files (or look at them) you need to use a program ... if you are typing just the name of the file, then you are trying to execute the file instead of opening it with a viewing program.

The easiest way to edit these type of files is to use gedit (if you use gnome) or kate (if you use kde) .... or to use a console type editor (joe, vim, pico, nano) from a console window.

The easiest way to see the text file, but not be able to change it is to use the command:

less path_to_program

where path_to_program is the full path to the program, like /etc/hosts...you can also go the the required directory and just use the file name so both these commands will let you see /etc/hosts:

less /etc/hosts

and

cd /etc
less hosts


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2017 - 02:53 AM