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)

0
votes
0answers
8 views

solaris 10- disable outbound ssh connection for specific user [on hold]

can we have inbound ssh enabled for the user and after the user is logged in on our solaris box ,he/she should not be able to do ssh to other servers from solaris box ? .
1
vote
1answer
27 views

How replace disks on an existing striped zpool?

I have the following zpool: pool: mypool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM mypool ONLINE 0 ...
3
votes
2answers
43 views

DNS on SUNOS 4.1.4 / Solaris

On SUNOS(not solaris) the dns works only with nis enabled(sic!) I have did so modified yp Makefile and added B=-b and put # on next B ypinit -m OK route add default 10.0.0.1 OK ypwhich ok ypcat ...
0
votes
3answers
31 views

what is the equivalent of du -s --si * in a Solaris box?

I have a Solaris box that is blowing up right now because a disk is very close to filling up. I need to know what subdirectory on that disk is hogging up the space, but Solaris doesn't like du -s ...
-4
votes
0answers
25 views

Tips for school project [closed]

i am supposed to write a software for "Programming in Unix" subject at my Uni. It should include a reasonable number of syscalls (processes, networking, threads...). The scale of the project should be ...
3
votes
3answers
77 views

how to monitor a unix directory and if any new file in directory it will be copied to another directory

I want to monitor a unix(Solaris 10) directory and if there is any new file i want to copy immediately. Tried: I have shown inotifywait and incron package in linux for it but i don't know whether it ...
3
votes
0answers
12 views

Changing LDAP server preference on Solaris 10

I've recently inherited a new environment running Solaris 10 and I was looking for information on how to change the LDAP server preference on an LDAP client, namely through modifying the ...
3
votes
2answers
86 views

How to use cp -u on a Solaris system which does not support the -u option?

I am new in here. I am facing problem in Solaris system.I want to copy only when the SOURCE file is newer than the destination file or when the destination file is missing. As you know, this feature ...
3
votes
3answers
37 views

Using find in Solaris 10 to search a single directory but not its subdirectories

I'm trying to use find on Solaris 10 to list the contents of one directory, excluding subdirectories from the search. I tried a command based on the solution suggested by sdaau: find /tmp -type d ! ...
0
votes
0answers
14 views

Unable to mount NFS share in Solaris Local zone

I am trying to mount one NFS share in my Solaris Local zone.But I am getting error like below. showmount -e hostname showmount: hostname: RPC: Rpcbind failure - RPC: Timed out. I tried to ping the ...
4
votes
1answer
45 views

Finding out binary's compiling computer name

We have recently in our workplace stumbled upon a really old binary file that originates from unknown old computer. However in order to run this binary we need to get some local resources and ...
3
votes
1answer
30 views

What is the purpose of the uucico shell on HP-UX, Solaris, and possibly other Unix varieties?

For my work, I review Unix and Linux server configurations for compliance with security guidelines. So I'm not a Unix admin myself, but I work with Unix servers on a regular basis and am fairly ...
1
vote
1answer
36 views

Read ahead setting on Solaris

How to get the current read ahead setting on Solaris? On Linux it can be retrieved like this: # echo $(($(blockdev --getra /dev/sda)*512/1024)) (Assuming that blockdev always returns the read-head ...
1
vote
1answer
45 views

Disable null password for root user on Sunsolaris machine?

Currently i am using a SunSolaris machine: bash-3.00# uname -a SunOS labxxxx 5.10 Generic_144488-17 sun4u sparc SUNW,Netra-240 bash-3.00# When i try to set null(blank) password for root, it let me ...
2
votes
3answers
33 views

Where to check ntp related logs on Sun Solaris?

Can you please guide, where on solaris i can check NTP related logs? If there is any issue related to NTP on solaris, which is the right place to check for the root cause? Thanks
3
votes
1answer
26 views

Where do I find prebuilt binutils and compilers for obsolete operating systems?

I just obtained a Sun SPARCstation 20 and installed SunOS 4.1.4 on it. I'd like to build some software on it with something a little more modern than its stock pre-ANSI C compiler, and without the ...
-1
votes
1answer
13 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 ...
-1
votes
1answer
27 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
1answer
73 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 ...
3
votes
1answer
90 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
22 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
20 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
0answers
81 views

VMware Tools in Solaris 11 VM doesn't mount the host filesystem

I've installed Solaris 11.3 (from Oracle - sol-11_3-live-x86.iso) as a guest OS in my VMware Fusion (Ver 7.2) and then tried to install and build VMware Tools. Everything was fine besides two ...
2
votes
1answer
38 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
37 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
81 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
94 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
56 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
68 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 ...
1
vote
1answer
36 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
0answers
48 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: # ...
2
votes
1answer
140 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
53 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 ...
1
vote
5answers
114 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 ...
2
votes
1answer
41 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
2answers
18 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
23 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
151 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
22 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 ...
0
votes
1answer
29 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 ...
3
votes
1answer
58 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 - ...
2
votes
0answers
17 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
38 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
0answers
29 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 ...
-2
votes
1answer
44 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
4answers
43 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 ...
0
votes
1answer
51 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 ...
3
votes
1answer
90 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 ...
1
vote
1answer
39 views

Using shared serial modem

I'm trying to use on Solaris box modem connected to Linux box via serial port. Sharing is made from socat. Server command(linux): socat tcp-l:54321,reuseaddr,fork ...