It looks like the level of detail you are looking for is not available in system_profiler and you may have no choice but to use the logfiles (syslog) as you were doing (indirectly via console.app).
Console.app automatically shows system.log, and other log files, so you don't need to redirect entries from console.app but you need to find the (syslog) file which console.app used.
Make sense?
Example:
You can monitor it easily using tail -f /var/log/system.log
Reference: see also the "logger" (man logger) and "syslog" (man syslog).
Please post back with the details of which log file you found had the information you need.
Hi All,
I have an expression as follows:-
a=`expr ${i} + ${j}` >> $log_file 2>&1
Here, if any of the values i or j or both happens to be empty then the "expr" returns error as
"expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Hi,
I have a script to compare 2 files.
file1=$1
file2=$2
num_of_records_file1=`awk ' END { print NR } ' $file1`
num_of_records_file2=`awk ' END { print NR } ' $file2`
i=1
while
do
sed -n "$i"p $file1 > file1_temp
sed -n "$i"p $file2 > file2_temp
diff file1_temp... (5 Replies)
Hi there,
We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default?
Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just... (0 Replies)
Hello, currently we are executing a .sh from terminal.
The current .sh looks like this:
#!/usr/bin/env bash
/Users/user/my.app/Contents/MacOS/my &
--
Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
#!/bin/ksh -x
cd /tmp/tj
ftp -n servername.com << DONE
user username password
as
put test.log
quit
close
DONE
echo "testing..."
sh -x scriptname, and it shows all, but username, as, put, quit, close, DONE.
how can i see those ? (1 Reply)
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built... (2 Replies)
Discussion started by: slwiley
2 Replies
LEARN ABOUT PHP
mac_seeotheruids
MAC_SEEOTHERUIDS(4) BSD Kernel Interfaces Manual MAC_SEEOTHERUIDS(4)NAME
mac_seeotheruids -- simple policy controlling whether users see other users
SYNOPSIS
To compile the policy into your kernel, place the following lines in your kernel configuration file:
options MAC
options MAC_SEEOTHERUIDS
Alternately, to load the module at boot time, place the following line in your kernel configuration file:
options MAC
and in loader.conf(5):
mac_seeotheruids_load="YES"
DESCRIPTION
The mac_seeotheruids policy module, when enabled, denies users to see processes or sockets owned by other users.
To enable mac_seeotheruids, set the sysctl OID security.mac.seeotheruids.enabled to 1. To permit superuser awareness of other credentials by
virtue of privilege, set the sysctl OID security.mac.seeotheruids.suser_privileged to 1.
To allow users to see processes and sockets owned by the same primary group, set the sysctl OID
security.mac.seeotheruids.primarygroup_enabled to 1.
To allow processes with a specific group ID to be exempt from the policy, set the sysctl OID security.mac.seeotheruids.specificgid_enabled to
1, and security.mac.seeotheruids.specificgid to the group ID to be exempted.
Label Format
No labels are defined for mac_seeotheruids.
SEE ALSO mac(4), mac_biba(4), mac_bsdextended(4), mac_ifoff(4), mac_lomac(4), mac_mls(4), mac_none(4), mac_partition(4), mac_portacl(4), mac_test(4),
mac(9)HISTORY
The mac_seeotheruids policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project.
AUTHORS
This software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc.
under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BUGS
See mac(9) concerning appropriateness for production use. The TrustedBSD MAC Framework is considered experimental in FreeBSD.
While the MAC Framework design is intended to support the containment of the root user, not all attack channels are currently protected by
entry point checks. As such, MAC Framework policies should not be relied on, in isolation, to protect against a malicious privileged user.
BSD October 6, 2005 BSD