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.
1,180
questions
-1
votes
1
answer
74
views
what is "dd if=/dev/zero of=/storage2/test4.img bs=1M count=256" usage?
I would be thankful if someone can explain me what does following command exactly doing:
dd if=/dev/zero of=/storage2/test4.img bs=1M count=256
0
votes
1
answer
39
views
tar multiple files starting with same pattern then spaces in between the file name
I am trying tar files from a directory which has files starting with same pattern then multiple spaces in between. e.g.:
ABCDEFGH Mar 09 20:02:00 2023 log.TXT.0
ABCDEFGH Mar 09 20:05:00 2023 log.TXT.0
...
1
vote
1
answer
15
views
Solaris 11: how to hide pids of other users?
On the glorious SCO Unix (remind C2 security..)
was possible to hide pid of other users to "oth
er".
For example, user Jane see Jane's processes, u
ser Mike see only Mike's processes, etc.....
0
votes
1
answer
27
views
Solaris 11.4 Corefile Issues
I've been working with my client for some time now to try to determine some strange behaviours with core file generation on their Solaris SPARC systems.
Their current version of Solaris is 11.4-11.4....
0
votes
1
answer
32
views
Solaris 11 and nfs idmapping
A simple problem
With Solaris 11 I create a nfs share
zfs set share.nfs=on rpool/public
my Linux client mount it..
mount solaris2:/var/public /mnt/share
I want to give write access to myuser, i know ...
0
votes
1
answer
15
views
Solaris 11-CBE and pci-e Serial adapter
I have installed this serial adapter on Solaris 11.4 (CBE)
prtconf report it
prtconf -vdup|ggrep -i serial -A 11
model: '16850-compatible serial controller'
pcie-bdf: ...
1
vote
1
answer
21
views
Help with Folder permission problem with Oracle DB 7 and Solaris 7
I was wondering if anyone else has come across this issue with Solaris 7 and Oracle Database 7, I set the permissions of the folder as such chown -R oracle:dba /opt/oracle
but when trying to install ...
0
votes
1
answer
27
views
Snoop on Solaris, how to avoid "ether" packets?
This filter works fine
snoop -vvx port 5858 and not port 22
But I see some "ether" headers
ETHER: ----- Ether Header -----
ETHER:
ETHER: Packet 16 arrived at 13:01:37.43271
ETHER: ...
-1
votes
1
answer
39
views
What are b and e in Solaris paritioning?
I'm on Solaris 11, disk using EFI and GPT but with classical bios
0 BIOS_boot wm 256 260.00MB 532735
1 usr wm 532736 5.46TB ...
0
votes
1
answer
33
views
Solaris11: is possible to create an encrypted root and unlock it via usb?
On Linux is possible: with luks+ext4 or luks+btrfs there are a lot of how-to's on web.
Is also possible using ZFS.
On Solaris 11 is possible something like this?
Using a passphrase on boot is ok only ...
0
votes
0
answers
17
views
password MAXDAYS not working with solaris 11.3
I am enforcing password complexity rules for solaris 11.3 and solaris 11.4
Changed file
/etc/default/passwd
change these parameters in above file
MAXDAYS=60
MINDAYS=1
WARNDAYS=7
HISTORY=3
MINDIFF=1
...
1
vote
1
answer
54
views
How to install a package in Solaris 11 from file?
How to install a package in Solaris 11 from file (not from the package repository)?
I am trying to install a .pkg file on a Solaris 11 SPARC machine, however, I get errors:
# pkg install mysql-...
1
vote
1
answer
213
views
rsync fails to work with -o StrictHostKeyChecking=no option
Below rsync works and helps copy remote directory to localhost
/bin/rsync -rv myremoteuser@myremotehost:/tmp/Deployments/ /web/playbooks/automation/getfiles/tmpfiles/4/E5EA787E/myremotehost/
Once i ...
0
votes
2
answers
166
views
Unable to pull directory from remote host to local using rsync
My issue is a a small part of a bigger problem i m trying to resolve.
The issue started with rsync command that was very complex and constructed by ansible and does not work ... reported here:
https://...
-1
votes
1
answer
70
views
Need to find contents of Solaris zfs snapshot
I have zfs snapshot and I want to view the contents of particular snapshot. This is for Solaris 10.
0
votes
1
answer
753
views
How to add user with sudo privileges in Solaris
How would I add a user with sudo privileges in Solaris 10 and Solaris 11?
1
vote
1
answer
22
views
how to get the network throughput in sun solaris 10
I have the result of the netstat command, but am not able to figure out the throughput of the network from the server.
We are running some operations to copy to the cloud and we like to know the ...
0
votes
0
answers
24
views
remove all files in one go with filenames having whitespaces [duplicate]
On my solaris, I have thousands of files and some of the files have leading, trailing and whitespaces in the middle of the filenames.
For example: ls -l '-CERT-UAB School of Dentistry - Ora_5551061....
0
votes
0
answers
74
views
USB external drive is recognized in solaris 11
New external USB drive is formatted (Fat32) and useable on one Solaris x86 unix computer. Move it to another unix computer (same make and model) and it does not recognize the usb drive. All ports are ...
-1
votes
1
answer
111
views
How to get user creation details
Kindly assist to to get user creation details (date and time) and users login details in Solaris 10
0
votes
2
answers
58
views
How to get total size of folder
In Solaris server how can i get total size of this output? Could you help me? I need to learn total size of last 1 day file
root@test:# find . -mtime -1 -type f | xargs du -sh
226M ./10/01.tar
209M ...
0
votes
0
answers
34
views
Inconsistency between selang showgrp and id -a command output
On an etrust enabled Solaris 11 server, I see inconsistency in the output of selang showgrp and getent group commands.
User 'user1' exists in LDAP. New LDAP netgroup is created, added user 'user1' to ...
0
votes
1
answer
38
views
selang command: Looking for 'unix' parameter clarification
We have an etrust enabled Solaris 11 host. I was looking at one of the scripts created by our Engineering team which has below command lines.
selang -s -c "ng grp1 owner(etrust) ***unix*** ...
1
vote
1
answer
421
views
Solaris 11 Not Able To Install PKG File
I am trying to install a .pkg file on a Solaris 11 Intel machine and am faced with the following error:
pkg install: The following pattern(s) did not match any allowable packages. Try
using a ...
0
votes
1
answer
68
views
Filtering the ICMP packets on Solaris using IP-addresses from the table
I'm currently working with Packet Filter on Solaris machine, trying to create a rule that would filter out all ICMP packets of particular type and code. Here is my rule line:
block out quick proto ...
0
votes
1
answer
244
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 ...
0
votes
1
answer
101
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.....
0
votes
1
answer
27
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/...
1
vote
1
answer
92
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 ...
1
vote
0
answers
401
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 ...
0
votes
0
answers
35
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 | ...
0
votes
1
answer
463
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 ...
1
vote
1
answer
174
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 ...
0
votes
1
answer
56
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 ...
0
votes
3
answers
372
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 ...
0
votes
0
answers
133
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:...
0
votes
0
answers
88
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
...
1
vote
0
answers
260
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 ...
0
votes
4
answers
290
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
2
votes
1
answer
101
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 ...
0
votes
0
answers
176
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 ...
0
votes
1
answer
163
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 ...
0
votes
0
answers
191
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 ...
2
votes
0
answers
558
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 ...
3
votes
1
answer
123
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
520
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@...
0
votes
0
answers
395
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 ...
0
votes
1
answer
138
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?
0
votes
1
answer
2k
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 ...