On 14Jun2012 09:16, Alan <[email protected]> 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 <[email protected]>

Silicon chips with a cardboard substrate?  That's not a good marriage!
- overhead by WIRED at the Intelligent Printing conference Oct2006


------------------------------------

To unsubscribe from this list, please email 
[email protected] & you will be removed.Yahoo! Groups 
Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to