Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

Share tech news, updates, or what's on your mind.

Sign up to Post

hi,

In solaris, how can I identitfy a disk is local or SAN or NAS.

i am using df -h command but not able to differentiate.

please advice what is the correct way to find it.

thanks
0
On Demand Webinar: Networking for the Cloud Era
LVL 10
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

I have a system that keeps coming with "Panic: Exit - cannot exec /etc/init (PID 1); status 0x0000200"

The system with the error stated above halts with the standard hit any key to re-boot.
I've read that many actions can be taken.  Here's what I want to accomplish :

Preserve the programs and data already on the existing system by repairing it, in-place, on the existing PC.
If that does not work can I install SCO Unix on  a new drive then attach an image of the existing drive, original drive copied on another drive,  and run the application?  I spend alot of time in windows so I know that is normally not possible there since the drive letters create an issue.  I wonder if that is the case in Unix.  I just don't know.

I would prefer to fix in place.  So, is there a solution?  Thanks
0
Hi,

I have a folder called

home/system/xyz

now xyz has many sub directories  like abc , def
now abc has directories like lms, pqr etc

xyz is currently owned by me. problem is others cannot see xyz and its all subdirectories for possible issues on the server settings.
now i want to give ownership to xyz directory to ADMIN user say  crm and password say p@ssword so that all the team mates who has ADMIN crm  access can view and modify any directories and files within xyz no matter how deep they are.
how to give access to this one?
0
Experts - I’d like to create a Linux/Unix read-only-root role for Auditors, InfoSec and Tech Ops, so they can examine a system without risk of breaking anything.
-      Using sudo or Centrify, we can grant the privileges to run some commands as root, e.g.  ls, cat, cksum and tail –f
-      I don’t want to allow root privileges for e.g. find, view or more/less, as they can be used to modify a system

Creating the role is easy; Making it easy to use is harder
-      `sudo cat filename |less` would work fine – the `cat` is run as root, the `less` as the unprivileged user. I can create a little script utility called something like “Auditors_less” to remove the need to remember the syntax.
-      `dzdo cat filename > ~/my_copy_of_filename` would work for the same reason, and give them a local copy to work with. Call it “Auditors_cp” or just “Acp”
(`dzdo` is the Centrify equivalent to sudo)

Replacing the functionality of `find` is the part I can’t figure out. The output of `find` gives the full path to a file. `find` also allows you to select on ownership, permissions etc., but that part could be replaced by
`dzdo ls -l |grep {pattern}`

So a scriptlet that takes a starting directory as input and produces output in the form
/path/to/file      : ls –l output of file
would be great, as grep can filter the output, e.g. for globally writeable files/directories

I’ve found similar questions on formatting `ls -lR` output on stackoverflow.com, but no usable answers – general opinion seems to be…
0
Experts - I am in the process of configuring Solaris LDAP Client for 389 DS. I have created a profile as below -

dn: cn=shades, ou=profile,dc=my,dc=domain,dc=com
credentialLevel: proxy
serviceAuthenticationMethod: pam_ldap:tls:simple
defaultServerList: ldap.my.domain.com ldap2.my.domain.com
authenticationMethod: tls:simple
defaultSearchBase: dc=my,dc=domain,dc=com
objectClass: top
objectClass: DUAConfigProfile
cn: shades
serviceSearchDescriptor: passwd:ou=People,dc=my,dc=domain,dc=com?sub
serviceSearchDescriptor: shadow:ou=People,dc=my,dc=domain,dc=com?sub
serviceSearchDescriptor:
user_attr:ou=People,dc=my,dc=domain,dc=com?sub
serviceSearchDescriptor:
audit_user:ou=People,dc=my,dc=domain,dc=com?sub
serviceSearchDescriptor: group:ou=Group,dc=my,dc=domain,dc=com?sub

When I am running below script to initiate -

#ldapclient init -v -a profileName=shades -a domainName=example.com -a proxyDN="cn=proxyagent,ou=profile,dc=example,dc=com" -a proxyPassword="password" ldap.my.domain.com
Parsing profileName=shades
Parsing domainName=example.com
Parsing proxyDN=cn=proxyagent,ou=profile,dc=example,dc=com
Parsing proxyPassword=<password>
Arguments parsed:
        domainName: example.com
        proxyDN: cn=proxyagent,ou=profile,dc=example,dc=com
        profileName: shades
        proxyPassword: <password>
        defaultServerList: <ldap.my.domain.com>
Handling init option
About to configure machine by downloading a profile
Can not find the shades …
0
Hi,

I'm currently running Solaris and need to convert the following syntax from FreeBSD Gpart to Solaris Format.  I know Solaris has Gpart as well but will this format work on Solaris or does it have to be converted?  Also to note I'm not a Solaris, Linux, Red Hat, guru so please write out exactly what the syntax is or in detail how to go about this.  Also if someone could reference an article or let me know what the following means "-s  ,   -b   ,    -l    ,    -a  "

gpart create -s gpt disk1
gpart create -s gpt disk2

gpart add -t freebsd-zfs -b 2048 -a 4k -l log0 -s 500MB disk1
gpart add -t freebsd-zfs -b 2048 -a 4k -l log1 -s 500MB disk2

gpart add -t freebsd-zfs -a 4k -l cache0 disk1
gpart add -t freebsd-zfs -a 4k -l cache1 disk2

zpool add LumiPool log mirror gpt/log0 gpt/log1
zpool add LumiPool cache gpt/cache0 gpt/cache1

Thanks
0
Hi,
how to transfer
site booksmarks to shared bookmarks in winscp

please advise
0
Hi,

how to teach winscp remember password. Every time entering password is pain for me. please advise
0
We tried to get google analytics included in a joomla website.  Had it in there from before, so just tried via plugin to insert a new google id code.  Broke website.  I tried commenting out the line- didn't work.  I tried defining the variable in configuration.php - didn't work.  Restored site from backup, but that didn't fix it.  This is for a small non-profit website.  We also recently upgraded joomla versions.
Thank you,
Laura
0
I have a server hp-ux with :
[root@csapdev01 ~]# swlist -l bundle|egrep -i "qpkbase|qpkapps|hwenable11i|feature11i"
  FEATURE11i            B.11.31.1209.383a Feature Enablement Patches for HP-UX 11i v3, September 2012
  HWEnable11i           B.11.31.1209.383a Hardware Enablement Patches for HP-UX 11i v3, September 2012
  QPKAPPS               B.11.31.1703.429a Applications Patches for HP-UX 11i v3, March 2017
  QPKBASE               B.11.31.1703.429a Base Quality Pack Bundle for HP-UX 11i v3, March 2017

With SAP installed, i want know the version of SAP kernel for verify there is patches (sap) which must be installed ?

Thks
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

We all know in VIOs we login through padmin account, when we login through that account and fire alias command I am getting an entry as alias r='fc -e -', but when I looked into the .profile file under /home/padmin I am not able to locate it's entry.

The same goes with /etc/profile, /etc/environment.

Could any one tell me where the entry made for all the alias entries other than the ones defined under /home/padmin/.profile?

Regards,
Praveen S A.
0
Hi Guys,

I need assistance please.

I previously asked a question about locking .sh_history file.
Got help and its locked now.

But now I have a new issue.
I got assigned an RBAC role (FSAdmin). When I am not in that role i can not access the .sh_history file at all, cant even view it, which is what i want, but as soon as I switch to the RBAC role that was assigned to me, I can access the file and modify it.

How do i fix this issue.
Would appreciate your help on this.
Thanks in advance.
1
Hello ,

Is there any way to check the netfilter queue is full ? how much cpu does it eating ?

Thank you
0
Hi,

I have user called xyz under that folder there is folder call test under that there is folder called abc, def, hij etc

i want to search to search in all above folders and subfolders for a particular keyword say " nullpointerexception " how t do that .
please advise
0
hi,

winscp how to sudo as admin?
I currently logged in as my user say xyz but i am not able to delete particulr folder/directory. I have to login or pseudo as admin user say rrr to that. how to psedo in the winscp to rrr user?pleaseadcise
0
Hi,

winscp how to compare 2 different unix users say xyz and abc by opening xyz on left hands side and abc on right hand side. As of now on the left hands side i was able to open my windows laptop folder structure like C drive etc and on right hands side i am able to open one unix user like abc or xyz etc. please advise
0
How to send a text/csv file from Redhat Linux server to a Windows 7 server using sftp and curl?  I was told that we do not have a sftp daemon on the Windows 7 server yet but would this work:

#!/bin/bash
# ===========================================================================
#
# Export report  
#
LOCALPATH="/tmp/data/"
USER="sftpuser"
PASS="password"
FTP="IP Address"
MODE="w"

FILENAME="test.txt"      
curl --disable-epsv --sftp-create-dirs -B -T  $LOCALPATH$FILENAME sftp://$USER:$PASS@$FTP/ServerDirectory/$FILENAME
0
hi

on the unix box various users like xyz, abc etc.

Looks like disk space is running out of server and i need to cleanup.

How to know how much user xyz occupying size and how much abc user is occupying size. please advise
0
Hi,
I looged in as xyz user and trying to delete a file in the server domian directory which was created by user say John. how to psuedo to john and delete that file.

what is unix psuedo commandd and how it wrks in unix world. please advise
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I am testing a free bsd nic performance. But i could not activate the irq balancer . Any body know how ?


Screen-Shot-2017-08-04-at-15.09.35.png
0
Hi,

In unix using vi how do i copy paste from one file say abc.ccfg to xyz.ccfg.

in windows i simply say on abc.ccfg select all then control c then go to xyz.ccfg say control v .

Thats all i have to do.

VI editor is something i hate.

not at all use friendly.

even moving cursor is big thing there.

any good shortcuts and tips, links on using vi.
0
How to insert .CSV flat file data into Oracle tables using shell script?
0
hi,

How to expand putty to full screen?

also i hae 20 server instances configured  named connection1, connection2 etc till connection20


when i connect it should say connection1 at the top than meaningless ip address etc at the top  of putty window. can i configure somewhere to do that?

also how to change text and background colors. please advise
0
Hi I have a  data like below format

Site	Variable	Units	Model	29/00Z	29/06Z	29/12Z
CQT	500mbHeight	dm	MASS	588.4	589 	588.9
CQT	500mbHeight	dm	NAM	589.4	589.5	588.2

Open in new window


How can i transpose as one below (like repeat first 4 columns for transpose of each row after 4th column
CQT	500mbHeight	dm	MASS	29/00Z	588.4
CQT	500mbHeight	dm	MASS	29/06Z	589
CQT	500mbHeight	dm	MASS	29/12Z	588.9
CQT	500mbHeight	dm	NAM	29/00Z	589.4
CQT	500mbHeight	dm	NAM	29/06Z	589.5
CQT	500mbHeight	dm	NAM	29/12Z	588.2
CQT	500mbHeight	dm	NAM	29/18Z	589.6

Open in new window

0
what is difference between below commands


$ cd xyz

it says no such file or directory

even
$ cd /xyz
says no such file or directory

where as when i say

$ cd /xyz/
it goes to xyz directory though

what is use or importance of /  and / at the beginning and end?

please advise
0

Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.