New answers tagged

2

As is often the case on Solaris, /usr/bin/egrep is a legacy implementation that isn't POSIX-compliant, while /usr/xpg4/bin/egrep is a POSIX-compliant implementation and has little if anything beyond POSIX. Unless you're running legacy Solaris applications from the pre-POSIX days, make sure that /usr/xpg4/bin is before /usr/bin in your $PATH. GNU tools ...


0

Use the sharenfs property. e.g. zfs set sharenfs=on filesystem From the solaris zfs man page (http://docs.oracle.com/cd/E19253-01/816-5166/6mbb1kqo8/index.html) sharenfs=on | off | opts Controls whether the file system is shared over NFS, and what options are used. A file system with a sharenfs property of off is managed through traditional ...


0

Start with the application logs (if available). Then check the system logs (ie. /var/adm/messages, /var/cron/log if launched by cron, /var/svc/log/ in case of service etc.). If the process is maintained by SMF, check svcs -xv and appropriate logs. Also have a look if coreadm is configured to create core dumps for crashing processes. Note that core dumps are ...


3

My advice is keep things simple. Don't write a whole script when there is a ready-made tool that already does what you want. du is the tool for reporting on disk usage, and find is the tool for finding files. Use them together. find dirname* -mindepth 1 -maxdepth 1 -type d -exec du -hs {} \; -maxdepth and -mindepth are GNU extensions; to handle this ...


0

The quick way around this is by doing: xhost +manun but you probably should just logout (as root) and start the X session as "mamun" then you would not have these problems. And running X as root can have security problems and is generally frowned upon.


0

Able to fix the problem. Checked the logs - dmesg ; I changed the default gateway on /etc/resolv.conf Added nameserver


3

Solaris will ask you for privileged user credentials when entering single user mode. In Solaris 11 the root user is by default a role and you can not use it to logon, even within single user mode. If you lost your user credentials you can recover from this by the following procedure: Reboot from Solaris 11 installation media Choose option 3 to enter a ...


0

I found a new problem, after changing the subnetmask and gateway, it worked well. but today morning, found that server was not reachable, logging to console shows the {0} OK. why does the server goes to this state? IS there way to check logs for this cause?


1

For speed and simplicity, I would pipe the command output into wc -l as Munir suggests. If you really want to use awk, just print the number of records in the END block: awk 'END { print NR }'


0

Perhaps I do not fully understand your question but I read it as if you want to check if all the installed interfaces are configured or not. To see installed interfaces, you can use dladm show-link|grep -v "LINK"|awk '{print $1}' on both to get a list of interface links. You can use this list as input to retrieve the desired ifconfig output: for NIC in ...


-2

You first need to call ifconfig -a plumb to get all potential interfaces plumbed before you can check the list. Note that ifconfig -a only lists plumbed interfaces, while ifconfig -a plumb really applies to all interfaces - even those that are not yet plumbed. Note that you cannot configure unplumbed interfaces. Regardless on whether you like to call ...


-1

Given that you get the error Not a directory, it is obvious that the symlink in the tar archive is lib/jre/ -> lib/jre1.8.0_46 which is different from what you tell us in your text. If gtar does not complain about that link, it is broken. Unfortunately, you did not give sufficient information about your constraints. We need to know: what type of ...


0

To make changes permanent: Ensure default gateway is configured in /etc/defaultrouter The netmask is configured in /etc/netmasks And /etc/hostname.bge0 is configured with the static IP address


0

The SunOS wc output matches the definitions of SYSVr4. I cannot see any real divergence to the POSIX standard. Even the build-in wc from ksh93 matches the SunOS output and a recent Solaris 11 even uses the wc library implementation from ksh93 with no change in the output. If your scripts have problems with the output from one or another wc implementation, ...


4

Check the file /etc/hostname.bge0, the configured IP address could be in there. By default the hostname is listed in that file and the name is looked up in /etc/inet/hosts. From the found entry, the IP address is used together with the corresponding netmask from /etc/inet/netmasks. If a network entry can not be found, the default for the the class type (A, B ...


2

Actually, the behavior I see for Linux (and OSX) matches SunOS reasonably well, with some differences for the number of digits. HPUX follows the description in POSIX, which shows no leading blanks in the format: "%d %d %d %s\n", <newlines>, <words>, <bytes>, <file> You can imitate SunOS's format using awk #!/bin/sh wc () { ...


2

Solaris 10 has a Common Criteria evaluation at EAL4+ of the Labelled Security Protection Profile. That separation is provided by Zones. Zones were designed to provide exactly this separation when deployed in the Trusted Extensions configuration. The original question describes a pretty much classic use case for a Solaris Trusted Extensions and there are ...


4

There are with no doubt security mechanism in place to isolate non-global zones from each other as this is actually how zones were implemented by design. Excerpt from Introduction to Oracle® Solaris Zones A process assigned to a zone can manipulate, monitor, and directly communicate with other processes that are assigned to the same zone. The ...


1

The answer is kinda yes and kinda no. Zones rely on the same kernel running on the hosting LDOM or the physical server. If he kernel gets breached, all of them are hosed. But as far as server roles are considered, you can say that they are isolated, provided you did your networking setup due diligence real well. In an ideal world, you do not resort to this ...



Top 50 recent answers are included