Hi,
I think there's a problem with how logadm is treating non-root user.
The man-page states:
logadm [-options] logname...
Without arguments, logadm reads the /etc/logadm.conf file,
[...]
If the logname argument is specified, logadm renames the
corresponding log file by adding a suffix
I'm a non-root user rolling a log in my home dir, why should I care
about what/s in logadm.conf, in fact, that file is 644. Here's me:
$ /usr/sbin/logadm -p now -C 5 -t '$basename.%Y%m%d' /export/home/ctran/foo
logadm: Error: /etc/logadm.conf: Permission denied
$ truss ^^
open64("/etc/logadm.conf", O_RDWR) Err#13 EACCES [ALL]
fstat64(2, 0x08046E10) = 0
logadmwrite(2, " l o g a d m", 6) = 6
: write(2, " : ", 2) = 2
Error: write(2, " E r r o r : ", 7) = 7
/etc/logadm.confwrite(2, " / e t c / l o g a d m .".., 16) = 16
: write(2, " : ", 2) = 2
Permission deniedwrite(2, " P e r m i s s i o n d".., 17) = 17
I don't want to open logadm.conf, can I do the following without any ill effect?
$ /usr/sbin/logadm -p now -C 5 -t '$basename.%Y%m%d' -f /dev/null
/export/home/ctran/foo
CT
_______________________________________________
sysadmin-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss