Stack Exchange Network

Stack Exchange network consists of 175 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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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
0answers
26 views

X11 Forwarding Terminates Without Error

I am trying to execute an application on a remote Solaris 11 machine using Xming and X11 forwarding, however when attempting to connect with X11 forwarding using plink the connection succeeds but ...
2
votes
1answer
43 views

How to install .net Mono on Solaris 11 (source code compile)?

I downloaded the last mono tar to Solaris 11 I install the required packages: # pkg install autoconf # pkg install automake # pkg install libtool # pkg install gcc When I tried to configure mono 5....
-2
votes
3answers
50 views

Grouping data based on the second column

I have a file with the following lines: 1 a 2 a 3 a 1 b 2 b 1 c 2 c 3 c 4 c 1 d I want to get the result as: a 1 2 3 b 1 2 c 1 2 3 4 d 1
0
votes
1answer
43 views

Getting find: bad option -o -name abc -o -name xyz when perform search for *.properties excluding set of directories from search [closed]

#!/usr/bin/ksh # ***************************************************************************************** # copy_properties.sh # This script copies *.properties files from all directory excluding ...
1
vote
1answer
34 views

What does “no device” mean when running iostat -En

We presume to have a faulty cable that connects the SAN to a direct I/O LDOM. This is a snippet of the error when running iostat -En c5t60060E8007C50E000030C50E00001067d0 Soft Errors: 0 Hard ...
0
votes
1answer
50 views

awk: Pipeline and “@” as delimiter

I am trying to apply two delimiter using awk which are | and @ at the same time using something like this: awk -F"[@|]" '{print NF}' But the output is always taking only one of them as separator ...
0
votes
1answer
64 views

Does BSD have priveleges or capabilities?

In Solaris, I believe that you can assign privileges to users, and in Linux you can assign capabilities to executable files. Does some or all BSD flavors have privileges or capabilities, or something ...
0
votes
1answer
55 views

Can you assign Linux capabilities to users?

In Solaris, I believe that you can assign privileges to users. I know that in Linux you can assign capabilities to executable files, but can you also assign capabilities to users?
4
votes
2answers
198 views

Does macOS and Solaris have “capabilities”?

Linux have capabilities, which are used to give a non-root process some privileges. Does macOS and Solaris also have capabilities? if not, do they have something similar to capabilities?
1
vote
3answers
55 views

Can a Solaris 11 account prefixed with # be used to login?

I have been given a list of accounts on a Solaris 11 server that contains several accounts which are prefixed with a # character: "#username". (No LDAP is being used, and all accounts are local ...
0
votes
1answer
33 views

Ipsec tunnel with solaris10..what I miss?

I want to create a two Solaris10 tunnel encrypted with ipsec.Configuration is simple: 2 solaris10 nodes,lan not encrypted,tunnel encrypted. Lan is e1000g0 and tunnel is ip.tun0 Ip "clear" for node1 is ...
2
votes
1answer
45 views

Viewing Port Info FC Solaris 11

I have a hba card with two ports (port 0) and (port 1) and I want to know how can obtaining using OS the info to mapping the wwn that I can see using fcinfo hba-port command to a port of the hba card. ...
1
vote
1answer
55 views

Solaris and smf: how to do a rc.local shutdown with smf?

With the old good SystemV scripts, if I want something before shutdown, I put a script like this in /etc/rc0.d/ K400rc.local.shutdown.sh And I edit it and put my commands which I want to run before ...
0
votes
1answer
63 views

Replace application from computer with cpu SPARC 64b to computer with cpu Intel 64b [closed]

I have application compiled on server with Solaris 8 and CPU UltraSPARC-III+ x64b and need replace it (due to server end of life) to another new machine with CPU INTEL 64b , its may be same OS or ...
1
vote
2answers
90 views

Solaris script - modified date file age

I have a bash script on a Solaris server to provide an alert if a file is in a folder location for longer than 5 minutes. if [ -f $1 ] then a=0 else a=1 However, it is throwing a lot of false ...
0
votes
0answers
30 views

Solaris - modified date file age [duplicate]

I have a bash script on a Solaris server to provide an alert if a file is in a folder location for longer than 5 minutes. It seems the -mmin command doesn't work in Solaris. if [ -f $1 -mmin +15 ] ...
1
vote
5answers
91 views

IF construct in Solaris box to compare hh:mm:ss

I had created the below script which does the comparison between hh:mm:ss format variables. #!/bin/sh lag=00:00:00 MAX_LAG=00:05:00 echo $lag echo $MAX_LAG if [ "$lag" \< "$MAX_LAG" ] ##if [ "$...
2
votes
2answers
57 views

Solaris : Sort numerical values

I have a file with following values. keyword1 19.02 1.69.94 keyword2 19.01 1.68.118 keyword3 19.02 1.69.119 keyword4 19.01 1.68.115 keyword5 19.02 1.69.304 keyword6 19.02 1.69.39 I want these to be ...
1
vote
1answer
39 views

Bash SSH Version [duplicate]

Unable to assign the SSH version number to a variable in bash. Running the below code, the output from "uname -a" is assigned to the variable "os", however the output from "ssh -v" appears in the ...
1
vote
1answer
23 views

Solaris 11 - PAM application

I'm trying to compile an application which interacts with the PAM system on Solaris 11, however everytime I try compile the code I get "fatal error: security/pam_appl.h: No such file or directory" ...
0
votes
1answer
68 views

How to start the default browser (and/or any default application) from command line on Solaris?

I'd like to open a URL in the default internet browser from my application. My application gets compiled for MS-Windows, Linux, Mac and Solaris. One way to achieve that on Windows is using the shell ...
5
votes
2answers
259 views

Rename multiple files, add date in the middle

I want to rename all files in a folder, including a current time stamp in the name, retaining the original extension, in Solaris, like this: test1.txt > test1.date.txt I tried this, but I lose the ...
-1
votes
1answer
42 views

How many packages can one pc contain (without conflicts)? [closed]

I'm talking about one architecture, one distribution "at a time" (no multi-boot) and only packages in official repositories. If repos from different distros can be mixed, I'd like to distinguish ...
-2
votes
1answer
58 views

Top 15 Users in mount level

I need to get a list of the Top 15 users (storage) in every mount. I am able to get the mount level information but I am not able to get the top users in every mount. I can see the nested folders in ...
0
votes
1answer
103 views

How to check which process is writting on FileSystem Solaris

I need to identify what process is writing non-stop on the Disk. I tried to run prstat -t to get the list of the processes running, but I can't identify/find which process it is. running df -k , I ...
0
votes
0answers
46 views

User entries not deleting in lastlog file in Solaris

I am deleting a user in Solaris 10 and 11.  If I delete a user using the command userdel -r test1 and then check my lastlog file /export/home/ch185140/lastlog, I get output like this: 1 tj100201 ...
1
vote
1answer
161 views

usermod command not working on solaris

I am trying to add one more group in already added supplementary groups for a user. rcc is the name of the supplementary group I need to add sm254040 is the user id. when I run the command usermod -...
2
votes
4answers
104 views

Variable in Date command

I want to use a variable inside date command . GNU date is not supportable in my system. I use Sunos and when I use date with -d option it is shwoing -d as bad substitution. #!/usr/bin/ksh ...
1
vote
1answer
213 views

How to limit swap usage in Solaris?

I have an Oracle Solaris 11.3 which has 128 GB of Memory (RAM) and 80 GB of Swap. I want to limit the use of swap space (not its size just the usage). I know in more modern linux distros ...
0
votes
1answer
40 views

postinstall and postremove script not working

I am installing a package in Solaris server, my postinstallation and postremove file are kept in below path: /export/home/username/ABC/root/opt/ABC/bin I have added this path in prototype file like ...
1
vote
0answers
40 views

Uninstalling a Solaris package not working [closed]

I want to uninstall a package that I have installed. When attempting to uninstall it, I get an error "package not found". I have checked that the package exists and is available using pkginfo -i '...
1
vote
1answer
77 views

File/files that is/are responsible for password aging in solaris

What file/files is/are responsible for password aging in solaris server? Whenever a user is added, the default password aging limit is 90 days right? So is there a config file responsible for this?
0
votes
1answer
131 views

Solaris 11 change current image / “entire” package

I need to install a new Solaris image on our server as it used to be under a support agreement but is not anymore, and as such I'm unable to download any new packages from the (https://pkg.oracle.com/...
1
vote
1answer
77 views

What does it mean if the write() system call in Solaris returns EACCES?

We're having a weird issue in one of our Bamboo plans, which we can't replicate 'locally' (on the same machine, with the same user) It's failing to copy a file. Here's a truss log: error 14-Dec-...
0
votes
2answers
49 views

On Solaris I get good id mapping..on linux not,why?

I use an Active Directory server for authentication,Solaris works fine following this Howto. All works,and my user "user1" get the right UID assigned on Windows AD,which is 10000. On linux I follow ...
0
votes
1answer
164 views

Solaris 11.3 - Unable to install system/header

I'm (unsuccessfully) trying to get GCC installed on Solaris 11.3 but am running into a lot of issues. My current issue is that I'm unable to install the package "pkg://solaris/system/header". ...
1
vote
3answers
165 views

How to switch first name with last name in this situation?

I'm given a file with many lines like so: Vinh Tranh:438-910-7449:8235 Maple Street, Wilmington, VM 29085:9/23/63:68900 I need to change the order from Firstname Lastname to Lastname, Firstname. I'...
1
vote
1answer
42 views

Why does `xargs -n ` on SmartOS (SunOS) behave differently than other implementations?

It seems the -n option on the xargs found in SmartOS (and I assume Solaris) does not behave like any other version of xargs I've encountered. Take this example: Builtin /usr/bin/xargs (odd behavoir):...
0
votes
2answers
57 views

How to find a newly joined node has windows, Linux or Solaris operating system?

I am doing a network service topology diagram. I need to identify the newly added computer's operating system so that I could run different scripts based on OS. How could I identify the newly added ...
0
votes
1answer
25 views

How to find if partition is soft partition or not - Solaris 10

How to find if partition is soft partition or not in solaris 10?
-1
votes
1answer
42 views

How to externally copy an old UFS hard drive?

Here at work our machines are required to run off of old Sun Sparc5's (1995) all running a UFS architecture on the hard drives due to a Solaris 5.3ish base. The way they are configured it is not ...
0
votes
1answer
72 views

Determine Solaris server model inside a zone?

I'm a DBA doing some inventory and as part of it, I gather some system info. I'm wondering if it's possible to determine what hardware a zone is running on if you only have access to the zone? I ...
2
votes
2answers
100 views

Root problem in Solaris 8

I am having some troubles on my Solaris 8 computer. I don't know how this happened, but the path of the user root has changed in /etc/passwd, therefore I can't become the root user anymore. Under ...
-1
votes
3answers
172 views

Grep content for multiple files

My OS is Sun Solaris. SunOS sintscdldmu001 5.11 11.3 sun4v sparc sun4v I gave the command alter database backup controlfile to trace; and happened to forget it. When i needed the contents of the ...
2
votes
1answer
74 views

How can I write directly to a Solaris FIFO pipe over ssh?

I have a Solaris server running a process that has its input and output redirected into FIFO pipes (fifo_in, fifo_out). How can I connect to these two pipes over ssh? I would like to be able to ...
0
votes
1answer
75 views

MAXWEEKS on Solaris is equals to 13

I have a server where MAXWEEKS is set to 13 in etc/default/passwd. I know that this setting means that password will expire after 13 weeks. My question is if the user does NOT change the password, ...
0
votes
2answers
46 views

ZFS magically vanishing available storage space

Running zfs on a system, and my root partition has been shrinking with seeming no explanation. I have now run out of space and can't find where it all went. A simple df shows the following (You can ...
0
votes
1answer
111 views

syslog forwarding

I'm using Solaris and have an application that writes to a log file /app/data/log/foo_log.021118. Am I able to use syslog to forward that specific log file to a remote server? Should I put ...
0
votes
1answer
78 views

Does Solaris 11.4 support Solaris 11.3 branded zones?

My gut feeling is "no", but an Oracle salesperson told me yes. I am not talking kernel zones here btw.
0
votes
1answer
80 views

Where to find old Fortran library libF77.so.3

We have some old binaries which ran on Sun SPARC systems from around 2000, and we'd like to run them again (we do not have the source code.) I tried running the binaries on a Sun Blade 1500 with a ...