-
permission denied
platform:
Redhat Fedora Core 2
Apache
Perl CGI
PHP scripting
mySQL
qmail
Plesk 10 Domains
PROBLEM:
[root@q74 root]# /etc/passwd
-bash: /etc/passwd: Permission denied
[root@q74 root]# /etc/group
-bash: /etc/group: Permission denied
[root@q74 root]# /etc/shadow
-bash: /etc/shadow: Permission denied
-bash: /etc/sysconfig/network: Permission denied
AM i useing the incorrect command here?
newbie question
maybe ls?
Andrew
anand
-
All of those are actually files, so if you want to edit them your going to have to use a text editor, nano, kedit, vim, emacs etc. If you want to view them try
cat /etc/passwd
-
Re: permission denied
Originally posted by andrew anand
PROBLEM:
[root@q74 root]# /etc/passwd
-bash: /etc/passwd: Permission denied
[root@q74 root]# /etc/group
-bash: /etc/group: Permission denied
[root@q74 root]# /etc/shadow
-bash: /etc/shadow: Permission denied
-bash: /etc/sysconfig/network: Permission denied
AM i useing the incorrect command here?
newbie question
maybe ls?
Andrew
Obviously you are using the wrong command , but exactly what is it that you are trying to do?
If you are trying to display the contents of a directory then you should:
Code:
ls -l /etc/password
or
dir /etc/password
However I don't think that /etc/password is a directory, but rather a file. If that is the case, and you are wanting to display the contents of the file /etc/password, then do this:
Now, if you are wanting to EDIT that file then you would want to use a text editor, as a general rule I use vi, so to edit that file:
HTH,
MMYoung
In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.
Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
openSUSE 10.2 with Xgl/compiz/beryl
Windows XP - kernel klink
Buy Slack
Dropline GNOME
-
???
What exactly are you trying to accomplish? Do you want to view? edit? list the files in a certain directory????? Just typing the path of a file into the prompt will get you nowhere unless that file is executable and even then you need an sh in front or a ./ to execute it....
If you are trying to edit the file, I suggest you look into an editor like vi, nano or emacs. If you are trying to simply look at the contents, I suggest you use more 'filename' or the pg command or even the cat command... If you are trying to list the contents of a directory use the ls command or l command. Anything else you need to know, I suggest you hit the tab key twice in quick succesion which will allow you to look at all the commands available on your system. Then from there you can read the man pages on those commands by typing:
man 'command' (minus the single qoutes of course)
Good luck!
-Adam
***I have a lot of computers...currently at TEN, and I am trying to setup a cluster. ALL HELP IS WELCOME!
***I work for a large Corporation supporting an AS400 and roughly 300 UNIX boxes...
**Registered Linux User: #371879
IRC: StylusEater
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|