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.

learn more… | top users | synonyms (1)

-1
votes
1answer
17 views

Solaris 10: how to run correct tcp wrappers?

I want to deny ftp access on solaris10 For experiment i use only one host Tcp wrapper is enabled inetadm -l ftp | grep tcp_wrappers default tcp_wrappers=TRUE /etc/hosts.deny ftpd: 192.168.0.2 in....
2
votes
2answers
8k views

Set global environment variables at boot in Solaris 11

I am wanting to create a file in Solaris, so that I can export a few "items" whenever the machine is started up. i.e. I want to export ORACLE_HOME and ORACLE_SID and some other directories, of my ...
1
vote
1answer
105 views

How to print the total available space percentage on a specific file system in both linux and solaris?

I've searched for an answer to this question and I found that this command: df /dev/sda1 | awk {print '{(100 -$5 )}' | tail -1 | sed '/s/$/%/g' does the job pretty well on my linux system but I ...
-1
votes
1answer
55 views

Solaris 10,print only banner

I have a remote printer by cups on linux server. BSD,Hp-ux and linux works fine,on solaris 10 i have this problem,print the banner only,not the text of file. I have configured the printer like this ...
1
vote
2answers
3k views

changing timezone in Oracle Solaris 11.2

I'm confused: what is the right way to change TZ on a freshly installed Solaris 11.2? I have found these, but am unsure which to use: Reconfiguring Date and Time Before and After an Installation ...
1
vote
1answer
44 views

Cannot obtain address via DHCP

I recently upgraded this box from Solaris 11.2 to Solaris 11.3. After that I cannot get an interface to obtain an IP address from within a non-global zone. From the global zone I have the following ...
0
votes
1answer
63 views

Solaris 11 /var used significant space, but I cannot see it on filesystem

I have a mirrored rpool: NAME USED AVAIL REFER MOUNTPOINT rpool 72.1G 1.22G 39.5K /rpool rpool/ROOT 67.9G 1.22G 31K legacy rpool/...
3
votes
1answer
118 views

Finding empty directories recursively

How can I find every empty directory, let's say, on the /home/.../Desktop. Because I am on Solaris, I can't use the find . -empty -type d command. Is there any other way?
0
votes
0answers
66 views

Unable to setup ipv6 on solaris 11.3

I am having some difficulty after moving to Solaris 11.3 and setting up IPv6 addressing. The interface I am using is net2. I have created an IPv4 address already on this. So to do this I would have ...
0
votes
0answers
29 views

vxlist volume and vxlist disk stuck on Solaris 10

On Solaris 10 i have installed symantec storage foundation for lvm. Enable all daemons,create volumes and groups ok but if i want to see the size of disk and volumes with vxlist volume or vxlist ...
0
votes
1answer
478 views

How can I continue past this point in installing Solaris 11 under VMware Fusion 5.0.4 on Mavericks?

I have a Mac running VMware Fusion 5.0.4 on OSX Mavericks, and I do not seem to be able to get past a certain point on installation on either of two installers I tried. A (text) window comes up, ...
2
votes
1answer
58 views

How to know log the full script name executed by user?

I want to log the full name of the script executed by the user including the options/arguments he provided to that script. I was able to achieve some success using basename and whoami but it does not ...
0
votes
1answer
44 views

inconsistency between format and probe-scsi-all outputs

my platform: SPARC T4-1 Generic_150400-24 sun4v sparc sun4v 1 of the disk is seems different in the output of format when I am on console cli even though relevant disk seems same as others in the ...
6
votes
3answers
9k views

How to delete a range of mails in Solaris using the 'mail' command?

I have some 1k+ mails in an inbox (old cronjob stdout), how to delete them in bulk? I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client. Inline help and ...
0
votes
1answer
90 views

please support for use awk and regex

I have a file with | separator and I need to print first field $1 and other fields, I need to print part which match the regular expression \[(.*?)\>. cat x.txt |nawk -F"|" '{print $1"|"match ...
2
votes
3answers
151 views

Random number generation in Solaris?

What is the best way to generate random numbers in Solaris? I can not seem to find a good answer for this. Most results do not work in my environment. There is a variable or command RAND that seems ...
1
vote
1answer
170 views

Find the hostname or IP of a remote ssh session in Solaris

If I am logged into a Solaris server from my Windows laptop via putty using ssh, how, on the server, can I determine my Windows laptop IP or hostname?
0
votes
0answers
154 views

Solaris Bash script if condition command + store in variable?

I am trying to make two functions in bash. One function that loops through a directories' contents and makes an md5 hash for each file storing them in an .md5 checksum file in the same directory. The ...
4
votes
5answers
3k views

Can not find link to download OpenSolaris source code

I want to understand how OpenSolaris ptools(process tools) works. How exactly pstack, pmap, pargs etc works, but I can't find any link to its full source code. I can only find an online version of ...
0
votes
0answers
104 views

useradd cannot execute / not owner error

I have Solaris 9. When running useradd as root i have this error. #/usr/sbin/useradd ksh: /usr/sbin/useradd : cannot exceute Then tried change shell csh and sh but to no avail. csh: # /usr/sbin/...
2
votes
1answer
296 views

Solaris 11.3 upgrade - rpool changes after upgrade disappeared after restart

I have a test server running Solaris 11.2 (on HP Proliant Gen8 Microserver hardware). On October 31st I upgraded the system to Solaris 11.3 as described in Solaris documentation article Updating a ...
1
vote
1answer
74 views

lofiadm: password via script

I have a server running OmniOS and on top of that napp-it to manage ZFS. Every now and then I need to send data to the ZFS file systems. I do this using a bash script and rsync. Following the ...
2
votes
1answer
59 views

Solaris 11_3 Installation on LDom via “telnet localhost 5000”

I am new to the Unix section here in my company and now I got the task to install Solaris 11 on a new LDom. Reading the documentation, I was able to create and configure the primary domain and I was ...
1
vote
5answers
130 views

How can I rename a file on unix using characters in filename?

I have a bunch of files in a unix directory that look like the following: filename_1234567.txt I need to rename them by copying the last three characters of each filename to the front of the ...
1
vote
2answers
23 views

get command line perl command to report what changes it's made

I am using the following command (on Solaris) to remove the protocol from a bunch of files. find . -name "*.txt" -exec perl -pi -e 's/http//g' '{}' \; Is there a way to have a verbose output so ...
0
votes
0answers
31 views

Solaris server is rebooting again and again

I am working on Solaris 10 and I am trying to boot the system from ok> But it's been constantly rebooting again and again and throwing panic errors I went to lom> to find answer but no clue
4
votes
3answers
168 views

How to match a pattern, delete the pattern and also the next and the previous line on Solaris 10

How can I match a pattern, delete the pattern and also the next and the previous line on Solaris 10? I'm hiting the wall because Solaris does not come with GNU sed. Given the following file content: ...
1
vote
1answer
2k views

Solaris 10, pkgtrans command

What is the difference between these two commands? 1. pkgtrans /cdrom/cdrom0/Solaris_10/Product /var/spool/pkg/stream.pkg all 2. pkgtrans -s /cdrom/cdrom0/Solaris_10/Product /var/spool/pkg/stream....
1
vote
2answers
260 views

Where can I get SUNWsan package for Solaris?

The package is not available in the installation DVD, nor internet (MOS, Google, etc.). Where could I get it?
0
votes
1answer
64 views

How to clean up response files for Solaris packages?

Looking for advice on best way to determine unused entries (or alternatively, used entries) within response files for Solaris packages. Reason is that there are some response files that have suspect ...
1
vote
1answer
23 views

How to make program which will react on button pressing (such as “more” on 'q') [closed]

I' m trying to realize, how does work pg\more\less utilities. For example, cat somebigfile | more. More now in interactive mode. His fd table is: 0 (read pipe from cat) 1 (stdout) 2 (stderr) I can ...
3
votes
2answers
6k views

slow ssh login to a remote machine

I am experiencing slow ssh login from a machine to a remote machine. The verbose of ssh is shown below in two broken blocks. ssh freezes for 15 seconds in the below shown block. [root@zabbix ~]# ssh -...
0
votes
1answer
40 views

Patching a Solaris flar archive

I have a Solaris flar archive of an old Solaris 10 environment, now I'm not allowed to update the running system in any way so would like to be able to: Extract the flar archive somewhere (without ...
0
votes
1answer
148 views

pkgadd -d gives illegal option error on SUN Solaris 10

I'm trying to add a package in SUN Solaris 10, using the following command: pkgadd -d SomePackage.pkg This throws the following error: /usr/sadm/install/bin/pkginstall: illegal option -- o usage: ...
3
votes
1answer
72 views

GDB hangs forever on Solaris

GDB seems to hang everytime when I try run command from gdb prompt. When I ran ps, there are two gdb processes that have been spawned and pstack reveals the following - 15:47:02:/home/stufs1/...
1
vote
0answers
27 views

Various environments and weird less behaviour [closed]

I am playing with I/O redirection and have problem with less behaving differently in two environments. Both environments are Solaris-based and are of the same version. I am executing program in two ...
0
votes
0answers
53 views

dladm show-phys shows speed 0

we have a M6-32 and I need to know which speed is running each interface. When I issue the dladm show-phys I have this strange behaviour: LINK MEDIA STATE SPEED ...
0
votes
2answers
219 views

Telnet check in bash script

I want to run the following commands in bash script form in Solaris 10: $ telnet localhost 25 debug quit How do I handle this?
0
votes
5answers
212 views

List only the count of all files/directories for the directory tree of present directory

I want to list the number of directories under each subdirectory tree of the present directory. As there are too many directories, I can't go into individual directories and check. I would like to ...
-2
votes
1answer
53 views

SSH thorough 3 systems to transfer the Data

We have 3 Systems here, I need to transfer data from the Data Server to the test vm the only way is through the jump-host. this daily process take long time. How do I automate this thing for daily ...
1
vote
2answers
174 views

umask permission - where it works, where it doesn't - ftp vs scp

Src = SJOAM Dest = sjoam2 Connecting to a ftp server, get a file from it. On ftp server side. [oracle@SJOAM ~]$ ls -l total.zip -rwxrwxr-x. 1 oracle oinstall 412 Aug 8 09:03 total.zip On ...
2
votes
4answers
32k views

How can I list all user names on Solaris 10?

I forgot a user that I created on solaris 10, so now I would like to list all user names on my server. Is it possible (I am root user)? What command I should use if possible? Somewhere on the net ...
0
votes
0answers
36 views

How to verify the syntax of a new ipf.conf file?

From what I have read it might be ipf -n -f newipf.conf. But will it catch all errors? Or are there errors possible in the configuration file, which will occur only, when the ioctls are actually ...
7
votes
3answers
4k views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
1
vote
4answers
59 views

Symlinks according to directory depth

I have the following directory structure that I need to create, and while doing so, I need to also create the zip files which are symlinks. /a/2015-08-17/a.zip /a/2015-08-17/a_b/a_b.zip /a/2015-08-...
3
votes
1answer
256 views

Solaris 10, change partition size

I have a ultra 10 with solaris 10. I would like to increase the size of the / partition (by reducing /export/home). I'm rarely working with solaris. Some "hands on" advice would be great :) df -h ...
0
votes
1answer
56 views

find by name or by grep

find . -perm -u+x,g+x,o+x -type f -exec grep -i -l -H -E '#!/bin/bash|#!/bin/sh' {} \; 2>/dev/null 1>/$user_scripts I am tasked with finding any script that could exist for N users in 4 ...
1
vote
2answers
250 views

How do I get the date from two weeks ago using Solaris' date?

Linux uses: date -d "2 weeks ago" +%b which is equivalent in Solaris?, I searched online, but nothing.
4
votes
1answer
1k views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on Sunos 5.8 SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color #...
0
votes
1answer
124 views

RBAC user cannot execute useradd on Solaris 10

I am trying to create a user in Solaris 10 using RBAC who can execute the useradd and userdel commands. But for some reasons after i create the profile, role and user, this user gets a permission ...