file permission

Hello,

I attempted to run lilo.conf. I got the error message "Permission denied." I was opperating as root and checking the permissions for lilo.conf showed rwx for the owner root. What is the problem and the fix?
3pic9Asked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
please post result of:
  ls -l /etc/lilo.conf

Which editor did you use?
which command in the editor produced the error? Please post exact error message.
0
 
ahoffmannCommented:
> run lilo.conf ..
what do you mean by that?
you can edit lilo.conf, and run lilo, but you cannot run lilo.conf (except you have a script or program of that name)
0
 
3pic9Author Commented:
ahoffmann,

Oops, yes, my error. I meant edit lilo.conf.
3pic9
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
ahoffmannCommented:
when you edit (respectively "write") lilo.conf you need that permission. Only user root has write permission to lilo.conf, usually.
Have you tried as user root?
0
 
3pic9Author Commented:
ahoffmann,

Yes, I was logged in as root.
3pic9
0
 
3pic9Author Commented:
ahoffmann,

I tried the editing of lilo.conf again using Vim and the file opened this time without any error. Therefore, it was some idiot mistake on my part. So the problem was myself. You assisted in my rethinking the problem. Thanks for your patience.
3pic9
0
 
ahoffmannCommented:
glad to give at least a hint ti the right direction with asking stupid simple questions ;-)
0
All Courses

From novice to tech pro — start learning today.