Unix OSSponsored by Flatiron School

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

We have a request from applications team to grant their non-privileged Solaris and AIX ids to be
able to execute their Shell scripts (which contains lines to run binaries) :
  sudo /gl/_ctron_/start1292
  sudo /gl/_ctron_/start1291

Q1:
Is there any way not to grant them sudo & root and yet still allow them to stop/start the services?
Or if we grant sudo, restrict them to run only those specific scripts & their sudo can't do anything else?

Q2:
Any way we can use SGID or SUID sticky bits to grant them without giving them root/sudo privileges?
0
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Is there any unix script or shell script  which can fetch all the DB objects from a particular schema along with the proper extension such as (.pks, .pkb etc) to my local system.
0
Currently writing a management menu interface for managing printers on our HP UX system.

Scripts are written in Korn Shell.

The following command
lpstat -pTERRYTST

Open in new window

returns the following:-

printer TERRYTST disabled since Apr 10 08:36 -
        new printer
        fence priority : 0

Open in new window


I need to be able to search the response for keywords to identify states.

So I need to fill a variable with 1 if the printer is disabled, another variable with 1 if its new.

No idea how to complete this in Korn Shell scripting as am very new to the language.

Help! :)
0
0509-150   Dependent module libcrypto.a(libcrypto.so.0.9.7) could not be loaded.
1
I have a system AIX with 6.1.00 tl9 is necessary install fix for sendmail-cve-2014-3956 ?

The problem exists only if I go to the internet world?
0
Hi,

I want to run a .Bat file (using Cygwin) programmatically without user intervention.
Just now it runs through the bash prompt but interactively.

Regards
Allan
0
I need to extract a bunch of zip files, but I have requirements.

The zip files are scattered in various folder like this

  • base_folder/
  • base_folder/batch_1/batch_1_1.zip
  • base_folder/batch_1/batch_1_2.zip
  • base_folder/batch_2/batch_2_1.zip
  • base_folder/batch_2/batch_2_2.zip
  • base_folder/batch_2/batch_2_1.zip
  • base_folder/big_batch/batch_a/batch_a_1.zip
  • base_folder/big_batch/batch_a/batch_a_2.zip
  • base_folder/big_batch/batch_b/batch_b.zip

I want to extract the files to another folder and keep the same folder structure

  • base_folder/extracted/
  • base_folder/extracted/batch_1/file_1
  • base_folder/extracted/batch_1/file_2
  • base_folder/extracted/batch_2/file_2_1
  • base_folder/extracted/batch_2/file_2_2
  • base_folder/extracted/batch_2/file_2_1
  • base_folder/extracted/big_batch/batch_a/file_a_1
  • base_folder/extracted/big_batch/batch_a/file_a_2
  • base_folder/extracted/big_batch/batch_b/file_b

I want to extract everything in the zip file except for files that have certain extensions

  • file - OK
  • file.exe - OK
  • file.xml - OK
  • file.txt - Not OK
  • file.xls - Not OK

Is this possible with a few Unix commands? If it isn't entirely possible, what is the closest I can do?
0
I need to verify on tsm the latency related to the use of a shared nfs to make backups, how can I do this test?

I state that I am not an expert tsm and I would like to have all the steps to perform this test

(*)  I already installed my nfs share on the tsm server

thks
0
tail -n5000 xyz.log

above shows last 5000 lines right


if i want to see all the 15723 lines of xyz.log what command i have to give

tail -n5000 xyz.log|grep 'ERROR WS'
how to make above case sensitive search like
tail -n5000 xyz.log|grep 'error ws'
how to make above whole word search? so that i wont see below as result ERROR aaa WS etc


please advise
0
securecrt vs putty

what additional feature or advantages or disadvantages securecrt has compared to putty or mputty.

how much is the licence cost per year or life time?

any advantages using securecrt or any other commercial better tools?

please advise
0
Free Tool: IP Lookup
LVL 12
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Need to migrate DNS from old BIND box to Windows DC Server 2016.  Anyone can point to the right direction and steps required?
Also, lots of users are on Ubuntu and Macs.  Would ipconfig /flushdns work on non-windows machines to refresh that after the cutover?
Thanks in advance.
0
winscp how to grep or search on a word say "xyz" in all the folders and sub folders
Please advise
0
Anyone knows how to import txt zone file from BIND DNS into Windows DNS?
0
Prevent color change when vim is invoked.

My computer is running Windows 10 Pro 64-bit.  I connect to remote Linux Machine using telnet utility.

My shell is bash.  My terminal emulator screen has black background and white foreground.  I invoke vim <filename>.  I exit vim and return to
my terminal.  Now the terminal has changed colors.  man vim doesn't have color option that will tell me how to disable color when vim is inovked.
0
We need to upgrade the memory of one of our Unix Servers - Sun Sparc Enterprise T5120 from 8gig to 16gig.  Should we order a 16gig memory and replace the current 8gig?  
Is there any command to get the memory model  in the server?  Please advise.
0
I have version IBM WebShere MQ 6.0.2.3 , do I need to upgrade the system from AIX 6.1.9 to the AIX 7.1.4 now  the current version of QM is compatible?
0
winscp how to name the link i save to favorite

say i have link
/home/xyz/bea/logs

i want to save above link with name as production_logs_folder

I have other link as below

/home/xyz/crm/logs

i want to save above link with name as crm_logs_folder

how do i name like above so that it is easy to locate and navigate later
\please advise
0
A single-line shell command like this:
find [path] [filename pattern] -exec gzip {} \;

sometimes succeeds, and sometimes returns:
find: '[path][file_name]' No such file or directory.

How is that possible?  If the file really doesn't exist, I expect "find" to quietly do nothing.  But if it really does exists (as it does) how can bash return: "No such file or directory" and then print the exact path and file name that it claims it can't find?

We run this shell command nightly as a "host" job in OEM (Oracle Enterprise Manager) job queue on our Oracle database servers, because our management requires us to use this job scheduler, not cron or some other job scheduler.  This job always succeeds on two of the three servers we run it on, but it fails some nights, not always, on the third server.  These three servers are unrelated to each other, and have nothing in common other than they all run independent Oracle databases.

We have: Oracle Linux Server release 7.4
kernel: 4.1.12-112.14.15.el7uek.x86_64
0
I have had to disable SELinux to get an application installed ,I was wondering if anyone has ever used 'AUDIT2ALLOW' to re-tag the objects in SELINUX and re-enable SELINUX  

I have never ever worked with SELINUX before and could use any advice you can give
0
Keep up with what's happening at Experts Exchange!
LVL 12
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

log file how to copy whole content

zgrep -C20 '1234' 1234.log.gz

above gave lot of results in unix screen

how to copy whole page and paste into a text file on my C drive of the windows laptop through which i am connecting to unix box using putty?


also

i see all results like

0123456
9123488

etc

which i do not want

i want complete word search of 1234 only
how to achieve it
please advise
0
How to create a md (memory disk) file in freeBSD,

basically I want to keep / ( root ) in memory and hence I want to use memory disk ( md ). Also I want to ensure that it's like that boot over boot
0
what is curl and ping in unix.

lets say i have service called
www.xyz/webservice_operation

now if do
curl  www.xyz/webservice_operation
get the exact_name of service from above result
then use that exact name to ping
ping exact_name
then we can get ip of the service where it is running?

please advise
0
When do we need to add lun information in sd.conf ? how to identify wether HBA card is oracle branded or emulex ? What driver should be loaded into solaris 8 kernel for Emulex card ?

Recently, it took about 3-4 hours to perform re-configuration reboot post edition to sd.conf ...... how can we avoid this late booting cause , sd.conf was edited with 255 lines like :

Below contents are only indicative ***

name= x target=0 lun=0
.
.
xxxxxxx target=0 lun=255

How do i know which target the luns are coming on to  ? so i can mention them coorectly
0
How to mount  SAN Storage in Solaris 10
0
Dear All,

I have VIO VMware open stack environment integrated with NSX , we have uploaded the suse 12 sp 2 package to the VIO portal and  the ip is not getting assigned on the instance for all other Linux images it is automatically getting assigned what could be the reason are there any specific packages or changes to be done to the image.
0

Unix OSSponsored by Flatiron School

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.