Thanks for your reply Cameron, I am re looking into it.
Alan
-------Original Message-------
From: Cameron Simpson
Date: 15/06/2012 02:04:26
To: LINUX_Newbies@yahoogroups.com
Subject: Re: [LINUX_Newbies] permissions
On 14Jun2012 09:16, Alan <alanm0aqc@btinternet.com> wrote:
| I need to run software that auto boots up if the computers shuts
| down after a reset, the software i'm running needs to write to a log,
| however when i launch it i get the following error.
|
| cannot open/var/log/dvrptrrepeater-2012-06-14.log file for appending
|
| when i look at details i get.
|
| cannot open/var/log/dvrptrrepeater-2012-06-14.log (error 13 permission
denied)
|
| can anyone help please.
| i am logged in as user alan@ubuntu
|
| incidentally if i want to make changes to the software config file i
| have to run sudo<filename>
1: You seem to have left out the spaces in your example commands.
Never do that! They are vital!
2: /var/log is a system directory (like pretty much anything outside of
/home/<user>). Only root can make files there.
The command:
ls -ld /var/log
will show you the permissions on that directory.
3: If you are invoking the command as you (alan) then the command will
have no special privileges. Hence the error.
4: Maybe you should be invoking th command via sudo, as you do when
editing the config?
Perhaps you should post the exact commands. _Does_ the command need root
privileges, of is it just the creation of the log file that is giving
trouble? If so, it would be better to change where it puts the log file,
for example to a directory in your own home directory (if it can run as
you).
Cheers,
--
Cameron Simpson <cs@zip.com.au>
Silicon chips with a cardboard substrate? That's not a good marriage!
- overhead by WIRED at the Intelligent Printing conference Oct2006
[Non-text portions of this message have been removed]
Friday, June 15, 2012
Re: [LINUX_Newbies] permissions
__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment