08-14-2019
If you have a suitable Operating System, which would be very useful to know, have you considered using logrotate for this? You can write a stanza that tells the process what to do and it can be based on size or various other things.
You could schedule this against your own configuration file more frequently than the default 'once overnight' that probably already runs to manage things in /var/log
Would that be a way forward? You can probably re-use a stanza from /etc/logrotate.conf to get you started.
I hope that this helps,
Robin
10 More Discussions You Might Find Interesting
1. Linux
Hi,
I have edited 'sudoers' file to allow 'cads' user shutdown the system without providing a password.
Can someone tell me what's wrong with my file?
It's not working when I 'sudo SHUTDOWN' command:
sudo: SHUTDOWN: command not found
Thanks a lot!
# Host alias specification... (4 Replies)
Discussion started by: whatisthis
4 Replies
2. Solaris
root@dervish # cat /etc/sudoers
cat: cannot open /etc/sudoers
This is what I get when I try to search for the sudoers files. I want to create a user by name jda and assign him root privileges. How can I do that using sudo command and editing sudoers file.
Please help me. (12 Replies)
Discussion started by: bharu_sri
12 Replies
3. UNIX for Advanced & Expert Users
I'm stuck with a dilemma. I am trying to control userid's access to the su command in such a way that he will not be able to su to root (su, su -, su root, su - root) but he will be able to su to any other user. I have tried the following syntax:
userid ALL=/usr/bin/su ?*, !/usr/bin/su *root*... (2 Replies)
Discussion started by: chuckuykendall
2 Replies
4. UNIX for Advanced & Expert Users
i have defined a rule in the sudoers file so a specific user is able to run some commands as sudo with no password.
my question is: is it possible to restrict a user to run commands as sudo only in a certain directory? for example: chown only the files that are located in /var/tmp.
Thank you.
... (2 Replies)
Discussion started by: noam128
2 Replies
5. UNIX for Dummies Questions & Answers
how to take backup of a file , tell command and syntax (1 Reply)
Discussion started by: sunilamarnadh
1 Replies
6. Cybersecurity
Hi all,
I'm trying to setup my sudoer file at work to have the right security, but I'm not able to refine to the level I want.
Here's what I would like to have:
=> OS Users
- John (group staff)
- Bob (group staff)
- app20adm (group app20grp)
- app70adm (group app70grp)
- sys20adm... (0 Replies)
Discussion started by: victorbrca
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I was asked to create sudoers file for operation team so they can sudo as another user and run few commands.
I have updated /etc/sudoers file.
User_Alias LEVEL1 = JamesF, dennisW, juanC, steveS,
Cmnd_Alias SU_PROD=/bin/su prod, /bin/su - prod
Cmnd_Alias SU_NYOP=/bin/su... (2 Replies)
Discussion started by: samnyc
2 Replies
8. Emergency UNIX and Linux Support
Hi,
I need the details of which ids belong to the sudoers file, and which groups these ids belong to.
Can anyone suggest a way to derive that information into a flat file please?
G (4 Replies)
Discussion started by: ggayathri
4 Replies
9. UNIX for Dummies Questions & Answers
Hi
using Solaris 10. trying to update /etc/sudoers file
I need to add all the fist level operation team. This is what I have but it doesn't seem to work. Please help.Error message
sudo su -
>>> sudoers file: parse error, line 9 <<<
>>> sudoers file: parse error, line 9 <<<
... (2 Replies)
Discussion started by: samnyc
2 Replies
10. Solaris
In the sudoers file in Solaris...
I am trying to limit the DEVELOPER user privileges to where those users can only use the “rm” command in certain directories. This is to prevent them from deleting directories or files and destroying a server. I want them to be able to use the "rm" command but... (1 Reply)
Discussion started by: nzonefx
1 Replies
LEARN ABOUT DEBIAN
epylog-modules
epylog-modules(5) Applications/System epylog-modules(5)
NAME
epylog-modules - epylog module cofiguration.
SYNOPSIS
epylog uses pluggable modules to perform analysis and report on syslog strings. This manpage explains the format of the module config
files.
modules.d
Epylog config files are placed in the modules.d directory of the cfgdir specified in epylog.conf. Any file ending in .conf in that direc-
tory is considered a module config file. Most common location for modules.d directory is in /etc/epylog/modules.d.
module.conf
The name of the config file doesn't carry much meaning, however it MUST end in .conf in order to be recognized as a module config file.
The config file for each module is separated into two parts: [module] and [conf].
[module]
desc The description of the module. It will be shown in the final report.
exec This is where the "body" of the module is located. Most modules that come with the distribution will be placed in /usr/share/epy-
log/modules, but depending on your setup, you may place them elsewhere.
files List the logfiles requested by this module in this field. Separate multiple entries by comma. Epylog will handle rotated files, but
you need to specify the mask appropriately. E.g. the most common logrotate setup will place rotated files in the same directory and
add .0, .1, .2, etc to the end of the file. Therefore, a file entry would look like so:
/var/log/filename[.#]
If you have compression turned on, your entry will look like so:
/var/log/filename[.#.gz]
Lastly, for advanced configurations, more complex entries may be required. E.g. if your logrotate saves rotated files in a subdirec-
tory in /var/log, you can specify it like so:
/var/log/[rotate/]filename[.#.gz]
This will work, too:
/var/log/filename[/var/rotate/filename.#.gz]
In any case, "#" will be where the increments will go.
enabled
Can be either "yes" or "no". If "no" is specified, Epylog will completely ignore this module.
internal
Can be either "yes" or "no". If "yes", then the module is handled as an internal module, and if "no", then the external module API
is used. See doc/modules.txt for more information about the module APIs.
outhtml
Specifies whether the output produced by the module is HTML or not. Can be either "yes" or "no".
priority
An unsigned int. Most commonly a number from 0 to 10. Modules with the lowest number will be considered the highest prioroty and
will be both invoked and presented in the final report before the others.
[conf]
This is where per-module configuration directives go. Some modules have these, some don't. Look in the module config file -- the available
values should be listed and described there.
COMMENTS
Lines starting with "#" will be considered commented out.
AUTHORS
Konstantin Ryabitsev <icon@linux.duke.edu>
SEE ALSO
epylog(8), Epylog(3), epylog.conf(5)
Konstantin Ryabitsev 1.0 epylog-modules(5)