[Discuss] root privileges

David Frey dpfrey at shaw.ca
Fri Aug 18 17:19:56 PDT 2006


When you do
# /etc/resolv.conf
What you are saying is "execute the file /etc/resolv.conf"
It is likely that the executable permission is not set for that file and
that's why you can't execute it.  As root, you would be able to modify
the permissions of the file using chmod so that you could execute it,
but I suspect what you really want to do is just print the contents of
the file out in the konsole window.  In that case, do:
# cat /etc/resolv.conf
You shouldn't require root to do that either.

David

On 8/18/2006, "SJF" <twoflatfish at shaw.ca> wrote:

>
>Below is the output (on Konsule) when I wanted to see what the order of my DNS
>search was.
>
>fisher at fishhead:~> su
>Password:
>fishhead:/home/fisher # /etc/resolv.conf
>bash: /etc/resolv.conf: Permission denied
>fishhead:/home/fisher #
>
>I don't understand why the 'permission response' comes up? Does not 'su' plus
>the password take me into root privileges? What am I missing please.
>
>I am working with SLED 10.1 (Suse) and KDE if that makes any difference.
>
>Thanks,
>Stan Fisher
>
>_______________________________________________
>Discuss mailing list
>Discuss at vlug.org
>http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss


More information about the Discuss mailing list