Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [solaris]

Solaris is a Unix operating system originally developed by Sun Microsystems (currently owned by Oracle) as a rebranding of SunOS 4.1.x in 1991.

0
votes
1answer
31 views

mv command is moving to the parent of the provided argument

Let's say I have a working directory: /home/userID/workingDirectory I type a mv command that will affect the parent directory of the current working directory and the working directory itself: mv .*...
0
votes
2answers
53 views

Searching for files within subdirectories?

I have a tree of parent folder and subfolders. The subdirectories have similar names. I would like to search for files stored in the sub-directories. How can I do that? For example: Parent-...
1
vote
1answer
19 views

I'm trying to output password statuses for RedHat. Is there an equivalent of “password -s” in RedHat?

Like the title says, I'm trying to output password statuses for RedHat. For my Solaris machine, I was able to run: for i in `more shadow | awk -F: '{print $1}'`; do passwd -s $i; done And that ...
0
votes
1answer
51 views

return: can only `return' from a function or sourced script

I have a test script that is producing the following on Solaris 9 running on SPARC: $ cat test.sh #!/usr/bin/env bash [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 0 || return 0 $ ./test.sh ./...
1
vote
1answer
52 views

Script for verifying service [on hold]

I am trying to get this to run and am having no luck. I am trying to see if 2 services exist. If they exist and they are disabled, it should return pass. If not then fail. #!/bin/bash # echo "...
0
votes
0answers
11 views

How do I compile mod_auth_kerb-5.4 on Solaris 10

I am trying to compile a new version of mod_auth_kerb-5.4 to match a new version of Apache2.4 on Solaris 10 I run: LIBS="-L/opt/local2/lib -lkrb5" ./configure --with-krb5=/opt/local2/lib --with-krb4=...
0
votes
2answers
47 views

How to extract number from the below string which is the output of a command?

I want to extract message number which we get on executing command mailx -H. I want the message numbers of unread and new messages only. I tried with the below command: mailx -H|grep '^ [UN]'|cut -c ...
1
vote
2answers
48 views

How to extract lines from source file with reference file, add to the result file? [duplicate]

I have a question and cannot figure out. It is Solaris. the over simplified source & reference files. s.txt source file: dn: cn=task,cn=Groups,dc=domain changetype: modify add: uniquemember ...
3
votes
3answers
481 views

Solaris won't update because ddt-incorporation is using a self-signed certifcate

I'm trying to update my Solaris 11.3 x86 system. The system hasSun/Oracle software on it, including Sun Developer Studio and Sun SSH server. It does not have other software on it, and I don't have ...
3
votes
0answers
43 views

Is there a reason why the value of a wchar_t retrieved by mbtowc() is not the UNICODE value?

If I convert the character 'ö' from a UTF-8 locale (where is is represented by the two octetts 0xC3 0xB6) to a wchar_t, I get a wchar_t value that is 0xF6. This applies to Linux and Solaris. If I ...
0
votes
0answers
18 views

Trouble installing Oracle Developer Studio

ALL, root@solaris:~# df -k Filesystem 1024-blocks Used Available Capacity Mounted on rpool/ROOT/s11.3qa_example_backup 511967232 5085980 495960478 ...
1
vote
0answers
30 views

Passing environment variables via sudo on solaris 10

I need to execute a command via sudo on Solaris 10, and I need to pass two environment variables to the command. This must be done in /bin/sh, not bash, not ksh. This is possible on Linux, serveral ...
0
votes
1answer
25 views

Problem installing Solaris Studio

I was following instructions here, but unfortunately, trying to do the last command: $ pkg contents -m sunpro-incorporation | grep 0.175 didn't yield anything. NOTE: I'm trying to install it on ...
1
vote
1answer
37 views

Equivalent of “ssh-keyscan -H” in Solaris 10/11

I'm creating a Perl program that adds the specified host in root's known_hosts file. The program works in AIX and Linux, but not in Solaris and sadly, I can't find its equivalent command. Sample line:...
0
votes
0answers
30 views

Difference between /opt and /export/opt on Solaris 10 [duplicate]

I am new to Solaris / Unix world and I noticed that if I delete a folder, example: ls /export/opt/Java i386/ sparc/ rm -r /export/opt/Java/i386 This change is also reflected in /opt/Java: ls /...
1
vote
2answers
42 views

Upgrading Solaris zone to solaris 11 [closed]

We have solaris zones running in Sparc T5 server Currently a solaris zone run Solaris 10 OS version. $uname -a SunOS zone01 5.10 Generic_150400-30 sun4v sparc sun4v Going further, we would like ...
0
votes
1answer
140 views

How to permanently Set/change the Limits in Solaris 10 system wide

I received email from oracle to change the limit on solaris 10 server to make oracle application work, unfortunately i have no experience in Solaris, so need assistance Values will be like below ...
1
vote
3answers
103 views

How much swap space does Solaris 11.3 need to run a compiler?

I have a desktop with a Core i5 3rd gen and 4 GB of RAM. I am using the machine to test building some free software projects I contribute to. The machine serves no other purpose. I allocated 4 GB ...
0
votes
0answers
63 views

Solaris 11.3 and SSHD privilege separation

I'm working on a OpenSSH server installation on Solaris 11.3. When I build OpenSSH 7.7p1 from source and install it make dies at the end after installing the components: $ sudo gmake install ... /...
0
votes
1answer
83 views

Shell - Find the latest file which matches a given pattern

I have the following files. root@VMBOX:/client# ls -lrt /client/*/ver* /client/*/*/ver* -rw-r--r-- 1 root root 0 Jul 5 18:54 /client/folder299/version_1 -rw-r--r-- 1 root root 0 Jul 5 18:58 /...
1
vote
2answers
71 views

Can't create a swapfile for Solaris 11.3

My compiles are failing on Solaris 11.3 due to out of memory kills. The box is an UltraSPARC workstation with 600GB drives and 8 GB of RAM and a fresh OS install. It is absolutely befuddling there's ...
0
votes
1answer
54 views

pkg set-publisher: One or more client key and certificate files have expired

I have an older Solaris 11.3 box. The box has my old key and certificate on it and they are expired. It is causing pkg update to fail: pkg update: One or more client key and certificate files have ...
0
votes
1answer
87 views

pkg set-publisher fails on Solaris 11

I'm trying to install Sun/Oracle Studio on Solaris 11. We have a free developer account on the Sun Developer Network. I have the developer key and certificate. I scp'd them to the UltraSPARC ...
2
votes
1answer
42 views

How do I avoid colour channel issues with 24-bit colour remote X11 with older Solaris?

When using CDE on older Solaris systems (2.5.x) remotely using XDMCP with TrueColor visuals, on-screen pixmaps are missing the blue channel and have the red and green channels swapped. This means ...
1
vote
1answer
55 views

Solaris 11 manifest-import does not automatically import my manifest

I have a manifest XML file. When I copy my XML to /var/svc/manifest/ and restart manifest-import service sudo svcadm restart svc:/system/manifest-import, the service does not appear in my service list....
-1
votes
1answer
66 views

chmod very slow on NFS [closed]

Is there any way I can speed up chmod on an NFS server? I am running chmod on a number of files each time a script is run. It is almost immediate when run locally, but when targeting the NFS server ...
1
vote
0answers
43 views

How to install php7 on solaris 10 with Oracle Instant client

I am trying to install php7 with oracle on Solaris 10. The oracle instant-client-basic and instant-client sdk was downloaded from oracle The instant client-basic was unzipped and this creates the ...
0
votes
2answers
30 views

truss on Solaris showing FDs closed that aren't opened

I'm confused. One of our DBAs is reporting an issue with LDAP connection errors. I figured I'd start tracing that from truss to see exactly what it's connecting to, but what I'm seeing makes no ...
0
votes
2answers
119 views

Whats the difference between /tmp and /swap and /system/volatile in Solaris 11

My Solaris 11 df output has different swap entries root@hostname:/# df -h | egrep "tmp|swap" /tmp 108G 5.1G 103G 5% /tmp swap 150G 119G 31G ...
1
vote
1answer
51 views

Why does =~ operator give a syntax error on Solaris while comparing with a regular expression

I used this following piece of code appcount_range="^[1-$APP_COUNT]$" until [[ $APP_OPTION =~ $appcount_range ]] do echo "INVALID CHOICE! Please enter a valid option:" ...
10
votes
2answers
1k views

Are there any alternatives to the `find` command on linux for SunOS?

The find command on Linux has a lot of options compared to the find command on SunOS or Solaris. I want to use the find command like this: find data/ -type f -name "temp*" -printf "%TY-%Tm-%Td %f\n"...
0
votes
0answers
18 views

Best recovery options from snapshot

I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I'...
1
vote
4answers
524 views

how to find lastlog details in solaris

please advise the equivalent command of linux lastlog in solaris, need to write a script to find the the users last login date and time in solaris servers. Linux its very easy to fetch using lastlog ...
3
votes
0answers
66 views

How to force OmniOS (illumos) “format” properly recognize disk geometry?

I have a FreeBSD-initialised 8-disk vdev, all 10TB WD RED, now on a server with OmniOS r151026, connected via LSI 3008 HBA. At POST, the card shows all disks with right geometry (I can post picture ...
3
votes
1answer
137 views

How to install php7 on solaris 10 with OpenSSL 1.0.1

I am trying to install php7 on Solaris 10. OpenSSL 1.0.1 was installed from https://www.opencsw.org/packages/libssl1_0_0/ To check for the installed ssl I did pkginfo -i | grep -i "ssl" and I ...
0
votes
2answers
185 views

How to build a gcc-4.9.0 successfully on solaris 10 sparc

I am trying to build a gcc-4.9.0 on solaris 10 sparc. gmp was successfully built and install at /application/gmp-6.0.0a mpfr was also successfully built and install at /application/mpfr-3.1.2 ...
5
votes
2answers
456 views

How to correctly extract a .tar.gz with md5.sum on solaris 10

I am trying to extract a gcc-4.9.0.tar.gz downloaded from one of the gcc mirror site. In order to check the md5 signature on it before I gunzip it I did digest -a md5 -v gcc-4.9.0.tar.gz which ...
0
votes
0answers
42 views

file ending .gz0 - which program does this?

On my Solaris 10 boxes, I have compressed log files with the ending .gz0. gunzip cannot unzip them, however if I change the ending to .gz, gunzip will unzip them, and these files appear to be empty. ...
0
votes
2answers
83 views

Export specific folders from .tar

i have a test.tar in the folder /dir1/dir2/ and i want to extract folders from my test.tar into the directory /dir1/dir2/. The structure of my test.tar ist test.tar |tdirX/ |tdirY/ |tdirZ/ and so ...
1
vote
2answers
347 views

One time query to sync time with NTP server

I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers. Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?
11
votes
8answers
1k views

Display blank lines by cat command

I have a list of files.txt, below: -rw-rw-r-- 1 root dev 11 May 16 12:18 20_SumActive.txt -rw-rw-r-- 1 root dev 11 May 16 12:18 22_SumActive.txt -rw-rw-r-- 1 root dev 7 May 16 12:18 24_SumActive....
1
vote
1answer
28 views

How can I set up aliases using bash in Solaris 5.10

Environment: SunRay terminal, running on Solaris 5.10 host. SHELL=/bin/bash Goal: set up some aliases for long commands Trying a simple alias: alias p='pwd' I've tried to add this alias to ....
1
vote
2answers
499 views

Generate random password with special characters on Solaris

I am trying to generate a 10-character random password in Solaris servers. The examples give around the web are for Linux and mostly not working in Solaris.
0
votes
1answer
288 views

Unix - ps to check if script running

I'm running a script which is meant to process a few utilities in order to recover some data. This script is situated in a directory where the users can place their file that needs to be recovered. ...
-1
votes
2answers
122 views

Block HTTP traffic on solaris 11 IP Filter firewall

I have an http server on my Solaris 11 system and I want to block all http requests from other systems. Eventually I will allow access, but for now I cannot figure out how to block access to port 80, ...
1
vote
1answer
44 views

OpenCSW and IPS on same Solaris 11 system?

Is there any danger running both IPS and OpenCSW side by side on a single Solaris 11 system? I assume there should be no conflicts since both package managers use different repositories and ...
0
votes
1answer
26 views

sftp real time warning in solaris

Suppose I have two solaris servers, A and B, and I am connecting from one server to another using sftp. Suppose B tries to connect to A using SFTP. Then How to detect in A the sftp request sent by ...
0
votes
1answer
372 views

Is Solaris 11.4 beta a text-only distro?

Watching a few Youtube videos about installation of Solaris 11.4 beta I got an impression that they get a text mode console login and that's about it. There is no Live CD/USB image on Oracle's site, ...
-2
votes
1answer
236 views

/sbin/sh:ping:not found [no such file or directory] but the file exist

How should I solve this problem, /sbin/sh:ping:not found [no such file or directory] but the file do really exist. When I find the file using command which it stated not found too. But files do ...
0
votes
1answer
105 views

Two local address listening on same port?

How is it possible that netstat -a | grep 8081 shows this: localhost.8081 *.* 0 0 49152 0 LISTEN *.8081 *.* 0 0 49152 ...