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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

expect script doesn't change password on Solaris

I have this script I run from a Linux machine to change root password on remote Solaris machine reachable by ssh. All seems to be fine, passwd command asks for a password, second password, reply that ...
user avatar
  • 25
0 votes
1 answer
30 views

Unable to get PID on a Listening port for Solaris

I'm using solaris SunOS myhost4 5.11 11.4.42.117.3 sun4v sparc sun4v non-global-zone I'm sure that port 7777 is in use as the telnet is successful as below: $ telnet myhost4 7777 Trying 10.23.52.219.....
user avatar
  • 297
0 votes
1 answer
20 views

Missing directory after move to a link

I have the following dir structure zfs filesystem - /opt/test/tmp zfs filesystem - /opt/data/ I have two directory links: /opt/test2/_tmp -> /opt/test/tmp /opt/test2/_tmp2 -> /opt/data In /opt/...
user avatar
  • 701
1 vote
1 answer
36 views

What is "utility" in Solaris when referred to by the Solaris section of Oracle's CPU?

Within the Oracle CPU (Patch information) on Solaris some patches are referred to and reflect "Oracle Systems (component: Utility)." You can see it here referred to also in the CVE ...
user avatar
1 vote
0 answers
39 views

I am having trouble performing an NFS mount of a Solaris filesystem on a Ubuntu machine

I am trying to do an NFS mount of a Solaris (version 5.10) file system (on a Sun Blade 2500) on a Ubuntu (release 20.04) system (on a Dell Precision Tower 3620). My (possibly incorrect) understanding ...
user avatar
  • 11
0 votes
0 answers
32 views

give access to /home/$USER/targetfolder only to me and a partner

I'm working on a server where current users (group=domainusers gid=1002) can read, write and run ONLY our own files. Because of my kind of permissions I'm not able to run apt | adduser | addgroup | ...
user avatar
  • 48
0 votes
1 answer
51 views

What is all the possible error output in Unix's df command

i'm trying to make a monitoring script that do health check of the filesystem in every several seconds. I want to monitor the "df" command, so that i can know if there is any NAS filesystem ...
user avatar
1 vote
1 answer
48 views

SFTP from local desktop to Solaris 11 using client tools is failing

I am trying to copy files from my local drive to Solaris 11 host using WinSCP and it is failing with the below error message: Cannot initialize SFTP protocol. Is the host running an SFTP server? I ...
user avatar
  • 13
0 votes
1 answer
32 views

When was NSS (Name Service Switch) introduced in Solaris?

I was not able to find a date or a Solaris release number... Also, beside Ultrix's svc.conf system (mentionned in NSS's Wikipedia article), did other comparable systems exist in other Unices, before ...
user avatar
  • 184
0 votes
3 answers
77 views

Script to keep the latest 5 files and rest will be moved to other destination

Source path: /var/log/ Here I have 4 folders named ad1nrld,ad2nrld,icp1rmnrl,icp2rmnrl I can move all the files to the other destination named /home/spsy/logs_bkp. But I want to keep latest 5 files in ...
user avatar
  • 2,386
0 votes
0 answers
48 views

Unix command to rebuild device drivers

Would a Unix>“boot -r” command in Solaris rebuild the following device drivers? I can’t access a tape library which I suspect is due to the error messages below. Here are the Solaris error messages:...
user avatar
  • 29
0 votes
0 answers
27 views

return text for cat /proc/PID/status is in binary

I am trying to get data returned in the same format as this example i found regarding /proc: $ cat /proc/$$/status Name: bash Umask: 0022 State: S (sleeping) Tgid: 17248 Ngid: 0 Pid: 17248 ...
user avatar
  • 1
1 vote
0 answers
23 views

File locking from different therads of the same process, including for Solaris OS

I need to perform a file lock when accessing a file from C/C++ code with the following requirements: Blocking should be performed when access occurs not only from different processes, but also from ...
user avatar
  • 205
0 votes
4 answers
45 views

How to get date string from stat command?

I have this to get the timestamp of a directory: stat -c %Y directory_name What can I pipe this to, to get the date formatted like this? 20220201
user avatar
  • 769
2 votes
1 answer
37 views

How to persist verbose boot flag in Solaris 10?

Sun Solaris 10 3/05 accepts a boot parameter boot -verbose that boots the system with verbose messages enabled. How do I persist this setting so that I do not have to type it at boot time ? Example ...
user avatar
  • 195
0 votes
0 answers
26 views

What is missing from these Oracle Solaris 11.4 firewall rules to allow traffic

I am trying to reach a separate, in-house application server from our Solaris server. The only firewalls that exist between these two are the native firewalls. We have set the following rules on the ...
user avatar
  • 1
0 votes
0 answers
19 views

Get Percentage of used memory in Solaris [duplicate]

I wish to get Percentage of used memory in Solaris as non-root user. The solution proposed here does not work for me and I get error. $ /usr/sbin/prtconf 2>/dev/null | /usr/bin/awk '/Memory/ {print ...
user avatar
  • 297
0 votes
1 answer
23 views

need RAM & SWAP Memory monitoring Threshold

I wish to setup monitoring alerts upon used memory percentage. I had setup 0-80% used RAM as Green (good) 81-90% as yellow(acceptable) 91-95% as orange(warning) 96+ as Red(critical) However, i see ...
user avatar
  • 297
0 votes
0 answers
96 views

Solaris 10/ZFS: Can't change new disk label so I can attach to existing rpool

# uname -a SunOS blade 5.10 Generic_147147-26 sun4v sparc SUNW,SPARC-Enterprise-T5220 Two new disks, first is c1t10d0: # cfgadm -al |grep c1 c1 scsi-sas connected ...
user avatar
2 votes
0 answers
162 views

Linux NFS mount on Solaris: Operation not supported on transport endpoint

Filesystem exported from Linux box, mounted on a Solaris box. On the Solaris box, certain operations fail on this filesystem. In particular: $ touch z1; install --mode 0444 z1 z2 install: setting ...
user avatar
  • 21
3 votes
1 answer
64 views

zfs send performance

I'm having an odd performance issue when trying to backup my zfs filesystems. I can tar the contents of a zfs filesystem at 100+ MB/s, but zfs send trickles the data at maybe 5 MB/s. The filesystem ...
user avatar
  • 701
0 votes
1 answer
567 views

get days before password expires in Solaris

I wish to know the number of days "remaining" before my account password expires in Solaris. I'm using chage command in linux to get this information. passwd -S <userid> works to get ...
user avatar
  • 297
0 votes
1 answer
132 views

rsync not working even when the destination file exists

I wish to get a file /export/home/remoteuser/stopforce.sh from remotehost7 to localhost /tmp directory. I fire the below command to establish that the file exists on the remote host: [localuser@...
user avatar
  • 297
0 votes
0 answers
126 views

How to copy files and folders from one hard disk to another

I have an SPARC 5 workstation with 80pins SCSI hard disk which is 2GB capacity and i want to transfer it to a much bigger capacity which is 36GB. Partition my 36GB into 6 slices then tried to use dd ...
user avatar
0 votes
1 answer
65 views

In Solaris UNIX what is a mountpoint and what makes a mountpoint different than a regular file system?

I don't really know the significance of a mountpoint in UNIX Solaris or what a mountpoint is used for, could someone explain this, what do I have to know about a mountpoint as an administrator?
user avatar
  • 29
0 votes
1 answer
789 views

sending csv file via unix

I am sending an email with content, subject and attachment on a Solaris system. Some users are receiving the mail ok with CSV file and everything, and some users are receiving a content in base64 ...
user avatar
1 vote
0 answers
15 views

Adding periodical ZFS snapshots as SMF service (svc) in OmnioOS Community Edition

I'm very much a novice and an amateur when it comes to Solaris-based operating systems, but I've played around with both Solaris and OpenIndiana. Anyway, I'm currently toying with OmniOS Community ...
user avatar
0 votes
1 answer
203 views

How do I change destination directory owner when using rsync?

I'm trying to rsync to a remote server, how can I change the owner for this directory? Putting down some information below, so it is more clear. The directory owner on the server over which I'm ...
user avatar
  • 3
0 votes
1 answer
151 views

Migrate shells Solaris ksh to Red Hat

We have hundreds of shell scripts running on a Solaris 11.3 server. System shell is ksh93 $ ls -l /bin/sh lrwxrwxrwx 1 root root 13 Apr 12 2018 /bin/sh -> sparcv9/ksh93 All the ...
user avatar
1 vote
1 answer
97 views

Using Linux to read DDS-2 tape written under Solaris

I'm dealing with a couple of DDS-2 tapes, the owner of which says they were written long ago on a Solaris workstation, but I'm trying to read them in a Linux environment, since with other tapes I've ...
user avatar
0 votes
1 answer
30 views

Use two variables in a command - Solaris

I am trying to summary some information in Solaris CDom but get stack in a point. I have a xlsx file that have in a column a server name and in the other column a LUN id that is attach to that server. ...
user avatar
1 vote
2 answers
557 views

Date and time zone offset not working correctly

I'm facing a strange behavior of date command when using time zone offset on Solaris. >echo $TZ MET >date Wed Mar 31 11:41:45 MEST 2021 >TZ=MET+24 date Tue Mar 30 09:42:06 MET 2021 >TZ=...
user avatar
  • 123
1 vote
0 answers
24 views

Use specific IP from list of multiple IPs as the source IP for a Solaris host

My solaris server host webhost has many IP addresses a few are listed below. $ ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0....
user avatar
  • 297
3 votes
0 answers
60 views

Calculating Free Memory using kstat vs vmstat vs mdb

In attempting to calculate the free memory under Solaris 10, I noticed I get different results using vmstat versus kstat or mdb. The basic commands: /usr/bin/kstat -p unix::system_pages:freemem | cut -...
user avatar
  • 131
2 votes
1 answer
340 views

Understanding TZ(Time Zone) variable in Unix

I was trying to find older dates using TZ="GMT+NoOfHours" date. To my surprise, it was absolutely working as expected when NoOfHours >= 0 to NoOfHours <=167(returning date older by 1-7 ...
user avatar
  • 154
0 votes
0 answers
72 views

How to sort command name + arguments output of ps in solaris

Below is my sample output of ps command in solaris myuser 26856 0.0 0.1 1716368 118576 ? S Feb 18 2:17 /web/bea/platform1221/jdk1.8.0_221/bin/java -Djava.security.manager -Djava.security....
user avatar
  • 297
-1 votes
2 answers
243 views

Print all entries in file after (and including) a specific time

This is my date format in my file: [1/24/21 9:19:20:183 MYT]. I want to print all entries marked with timestamps from this moment onward to the end of the file. How can I do this using sed?
user avatar
0 votes
2 answers
173 views

Solaris 11 and samba4 in non-standard dir, works all except finger

The Oracle packaged version of samba gave me some problems(error with krb5 and no join with AD samba4 server). So I recompile by myself using IPS the latest version of samba(4.3.13). After 30 minutes ...
user avatar
  • 10.9k
1 vote
1 answer
71 views

Solaris client ldap and Samba4 AD ldap server: some strange things

I have configured Solaris to use ldap users. The ldap server is Samba4 DC, the client is Solaris 11.4. I have "join" the server with this command ldapclient manual \ -a credentialLevel=...
user avatar
  • 10.9k
0 votes
1 answer
89 views

Need cp -ax alternate for Solaris

On my Linux host; this cp command helps copy files and folders both while preserving the timestamp and permissions cp -ax <source file/folder> <destination> Need similar command for SunOS ...
user avatar
  • 297
0 votes
1 answer
340 views

Solaris 11: zfs smb share works only as guest

I'm on Solaris 11.4 I create a zfs fs zfs create rpool/share and I set for sharing via smb zfs set share=name=zfssmb1,path=/rpool/share,prot=smb,csc=auto,guestok=false rpool/share When I try to ...
user avatar
  • 10.9k
0 votes
0 answers
51 views

Get the lock status of an account on Solaris

I do not have root privileges. I wish to get the lock status of a given account say mwss I'm on Sun Solaris uname -a SunOS myhost 5.11 11.4.27.82.1 sun4v sparc sun4v Below is the output from shadow ...
user avatar
  • 297
1 vote
1 answer
98 views

Howto move an existing Solaris11 installation to a new disk

I want to move an existing Solaris 11 (x86) installation from hdd to a new ssd. Because the ssd is smaller then the hdd, a simple copy with dd is not possible.
user avatar
  • 41
1 vote
1 answer
22 views

Solaris11 and ips, how to set or substitute the old checkinstall script?

On the old good solaris 10, I used this script to create a totally automatized package for openssh(I prefer to update sshd by myself, personalize it, etc..) This script works fine on my homelan(can ...
user avatar
  • 10.9k
0 votes
1 answer
249 views

Unable to extract entire tar to a particular directory in solaris

I wish to extract /tmp/moht/104.tar to /tmp/moht/ directory ls -ltr /tmp/moht/104.tar -rwxrwxr-x 1 meadmin meadmin 933498880 Jan 5 07:03 /tmp/moht/104.tar I tried the below commands, but it ...
user avatar
  • 297
0 votes
1 answer
208 views

recursively delete all files+folders except a specific one file in solaris

The below command recursively deletes all but 104.tar file under /tmp/CURRENT folder. find /tmp/CURRENT/ -type f ! -name '104.tar' -exec rm -rf {} + It however, does not recursively delete any sub-...
user avatar
  • 297
4 votes
0 answers
153 views

zfs on linux device names

I'm a native Solaris guy and as I look into more Linux use, I'm a little confused about a theme I'm seeing in some posts about ZFS on linux. The posts refer to the use of device names when defining a ...
user avatar
  • 701
0 votes
1 answer
228 views

how to copy .bashrc file for several users? on solaris

I used this script #!/bin/bash X='$( cat etc/passwd | cut -f1 -d: )' #All-users For X in /export/home/*/.bashrc ; do echo "$HOME/.profile'" >> $X $X 2>/dev/null done source $X ...
user avatar
  • 1
0 votes
0 answers
190 views

grub - error: no such device on all disks/partitions

In an environment with Solaris 11.4 the S.O is not able to boot. I've research this problem other blogs and all them say to set the root and prefix for a appropriate partition after check the correct ...
user avatar
  • 317
0 votes
0 answers
49 views

how move an user from 1 OU to another OU in IBM LDAP

Does anyone have an idea how to move a user from 1 OU to another OU in IBM SDS LDAP? Using command or via LDIF file? From Ou= Staff To OU=System ID: testuser1
user avatar

1
2 3 4 5
24