Menu

#40 File permissions

None
closed
nobody
None
3
2016-10-18
2016-02-19
No

Is there a way to set the file permission for the created logfiles via the property file?

I tried this

log4cpp.appender.A1.append=true
log4cpp.appender.A1.mode=00666

but the file is still created with 00644 filemask - any idea?

Greetings

Dietmar

Discussion

  • Dietmar Krause

    Dietmar Krause - 2016-02-19

    Forgot to mention
    - running on raspberry pi raspbian 3.12.34
    - log4cpp latest version
    - app started as root & regular user

     
  • Alexander Perepelkin

    Hello Dietmar,

    This task is resolved by OS tools.
    umask is used to change these permissions.
    See similar discussion at
    https://bz.apache.org/bugzilla/show_bug.cgi?id=40407

    Alexander

     
  • Dietmar Krause

    Dietmar Krause - 2016-02-21

    Thanks Alexander for your response

    It's better to think twice about a question before posting it :-/

    //Dietmar

     
  • Alexander Perepelkin

    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.