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

In Solaris 11.3, how can I restrict an FTP user to their home directory?  I've tried setting their shell to /usr/lib/rsh, but that didn't work.

Thanks!
David
0
Get real performance insights from real users
LVL 1
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

i am in particular folder say abc.

I did ls -ltr where there are bunch of files.

i want to search all the files starting with file name xyz alone ignoring other starting with pqr etc(ignore pqr000.log.20170806.gz etc).
My search should result like

xyz123.log.20170806.gz
xyz456.log.20170806.gz
xyz789.log.20170806.gz etc



What is the command i have to use for that.

is it grep or find or something else.

when i gave grep xyz.* it did not gave any result.

how searching inside a file content is different from search outside on unix file names.

any good link on these commands? please advise
0
I download depot for update my system :
hpux_11.31_07310442.tgz

I would like to know how to do the update ?
I have to do the operations from the console ILO ?

My system information :

[root@csapqas01 ~]# uname -r
B.11.31
[root@csapqas01 ~]# uname -m
ia64
[root@csapqas01 ~]# swlist HPUX*OE*
# Initializing...
# Contacting target "csapqas01"...
#
# Target:  csapqas01:/
#

# HPUX11i-BOE           B.11.31.1209   HP-UX Base Operating Environment
  HPUX11i-BOE.OE        B.11.31.1209   HP-UX OE control script product
[root@csapqas01 ~]# model
ia64 hp Integrity rx2800 i2
[root@csapqas01 ~]# swlist HPUX*OE*
# Initializing...
# Contacting target "csapqas01"...
#
# Target:  csapqas01:/
#

# HPUX11i-BOE           B.11.31.1209   HP-UX Base Operating Environment
  HPUX11i-BOE.OE        B.11.31.1209   HP-UX OE control script product
[root@csapqas01 ~]#
0
We have an account that when someone SSHs in to it won't accept a password. If I login via Putty and su to the account I get asked for the password and when I put it in it's accepted. If I ssh to that account I'm asked for a password and it is rejected.

Hasn't been any real changes to the OS/Server but I'm not an Unix  pro. Where should I start?

Yes, I can delete and recreate it but I'd like to find the underlying issue.
0
Hi experts,
Have a schedule job which I would like to execute at 2am with crontab expression (command).

Question is How can I write it to execute only once please?

I know it defeats the purpose, but how to come up with the cmd pls

Eg. If I schedule it for tomorrow 2am, it should execute at 2 and it should never re-execute

Thanks in advance
0
OS : Windows 2003

I want to run below (in codes) command remotely on the server, for example with IP  , 10.1.1.1

  "D:\oracle\fr_home\opmn\bin\opmnctl   status"

please advice the steps  for the same
0
Hi Experts,
could you pls advise how to install 32bit unixODBC driver on 64bit Oracle Enterprise Linux using yum. software which I'm planning to install on this 64 bit server only support 32 bit driver. Hence need to install

unixODBC-2.3.1
unixODBC-devel-2.3.1

Thanks in advance
0
thanks !
0
Looking for recommendations for patching/updates management solution across multiple platforms (win, mac, ubuntu).
Around 400 endpoints across multiple office globally.  
Considering:   Servicennow, Kace from Quest, patchlink/heat.   Any other recommendations from other folks?  Endpoing and asset management management.
Thanks in advance!
0
Hi Guys,

I would like to have a opensource software to perform following tasks on zimbra.

zimbra logging
per user email send receive count per day, week, month & year.
access log success & failure & Etc..

any help greatly appreciated.
thank you.
0
Free Tool: Path Explorer
LVL 9
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Does anyone on here have any experience auditing Mac OSX and MacOS laptops specifically for PCI Compliance? If so, how did you end up logging from them to a centralized server and what did you use? I am attempting to use OSSEC to pull the logs from /var/audit/current but would /var/etc/com.apple.authd be better? Or /var/log/system.log?) The purpose of this is to satisfy PCI DSS req. 10.2.2, 10.1.5. If I use OSSEC will I need to create a custom decoder for OSSEC for using the praudit command on /var/audit/current?
0
Interestingly enough I have no problem using let's encrypt on Windows platform and figured it was going to be a breeze on *nix... Running into a slew of issues.  For one I am trying to use certbot to facilitate this.  When I issue the correct commands and webroot I see it builds the .well-known folder but it does not build the acme-challenge folder.  If I try to manually create the acme-challenge folder it deletes it after the sudo certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com command (with my domain info substituted of course) with the following error:

Detail: Invalid response from
   http://<mysite>/.well-known/acme-challenge/bM6ijKNrbr6Dcf3nzJdyhssFHrySeeLk-2VWQgAlWnQ:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>403 Forbidden</title>
   </head><body>
   <h1>Forbidden</h1>
   <p"
Super frustrated as everything in *nix is always easier, right?  Well not this time LOL.   Any suggestions would be appreciated!

-J
0
Hello,

  I would like to know if there is a way to create a Symlink-like file but with the difference that the file it points to gets executed when the link is read and the output is what I get from reading it.
  It should work on freebsd/linux.

Thanks

Best regards
0
My SCO Unix RAID 5 server have 3 HDD. Today 1st and 2nd HDD failed only 3rd HDD showing ONLINE. Is there any chance of data recovery if i install new HDD in 1 and rebuild and then the 2nd HDD and rebuild.
Is there any chance of data recovery.
0
Hi,

In putty vi editor vi unix how to see later pages and change colors for bettwer view.

i open big property file not able to see what is at bottom.

how to search in vi editor for some text sat xyz.

setting i went i changed colors , font etc not reflecting.

what is best setting to give for better view

when i opened
abc.properties in vi
it says 536L, 28390C
what is L what is C
how to know how many lines there how many it is showing etc
can i use winscp free version for production servers viewing property files?
please advise
0
Hi,

I am fed up with putty with basic options.

Any better tools or IDEs to check logs or to grep unix/linux boxes.

Where  i can download secure ftp and how much is fees?
any advanced putty IDE there
any good free IDE accepted by industry.

please advise
0
We have some alarms lights  in the front of the server panel.  How could i get a diagnostic list of all the current failures in the server.  Please provide detail steps.
0
I run cat /dev/null /var/adm/lastlog and recovered space under FS but /var still showing pretty high, this is happening in Solaris 10 global zone.

Please advise how to recover space under /var in this case or do I need to restart some daemon to reclaim space under /var. Please reply.
0
what the heck is delta rpm and why use it , cant I just update or upgrade with yum update or something like that ?

thanks
0
Optimize your web performance
LVL 1
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Hi expert

How to upload SSL to openLdap server?
0
I have xlc compiler version 8 and perl 5.10 running on AIX 7.1. I have been able to install DBI.pm module successfully, but now am in need to install DBD::ORACLE module. The oracle version is 12 (64bit)

perl Makefile.PL runs fine for the DBD::ORACLE module, however the "make" command is throwing below error:
I attempted to fix the issue by changing the object mode value, but that end up giving a different type of error.
Can you advise on the solution ?

#make
        rm -f blib/arch/auto/DBD/Oracle/Oracle.so
        LD_RUN_PATH="/u01/app/oracle/product/12.1.0/client_1/lib:/u01/app/oracle/product/12.1.0/client_1/rdbms/lib" ld  -bhalt:4 -G -bI:/usr/opt/perl5/lib/5.10.1
            /aix-thread-multi/CORE/perl.exp -bE:Oracle.exp -bnoentry -lpthreads -lc -lm -L/usr/local/lib Oracle.o  dbdimp.o  oci8.o /lib/crt0_64.o -bI:/usr/lib/iocp.
            exp  -o blib/arch/auto/DBD/Oracle/Oracle.so     -L/u01/app/oracle/product/12.1.0/client_1/lib/ -lclntsh -lclntshcore -lld -lm -ldl -lc -lm -lpthreads -
            lodm
            -lbsd_r -lld -lperfstat -lm -lpthreads
ld: 0711-736 ERROR: Input file /lib/crt0_64.o:
        XCOFF64 object files are not allowed in 32-bit mode.
make: The error code from the last command is 8.

#bootinfo -K
64

#ORACCENV='cc=xlc_r'; export ORACCENV

#export OBJECT_MODE=64
#make
        rm -f blib/arch/auto/DBD/Oracle/Oracle.so
        LD_RUN_PATH="/u01/app/oracle/product/12.1.0/client_1/lib:/u01/app/oracle/product/12.1.0/client_1/rdbms/lib" ld  -bhalt:4 -G …
0
I recently upgraded AIX from 6.1 to 7.1, which resulted in perl getting upgraded from 5.8 to 5.10 as well and in process i no longer have a dbi.pm module under perl 5.10.

I have been unable to find binary version for dbi.pm for perl 5.10 so i am trying to compile it but running into an issue with it.
I am using steps of running perl Makefile.PL, make, make test, make install to compile.
I am able to successfully run perl Makefile.PL from the dbi.pm directory that i saved in /tmp from cpan.org, but when i run the "make" command, i get following error.

Skip blib/lib/DBI/ProfileData.pm (unchanged)
        xlc_r -q32 -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.636\"  -DXS_VERSION=\"1.636\"  "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE"   Perl.c
/bin/sh: xlc_r:  not found
make: The error code from the last command is 127.

I do have xlc compiler installed.
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler
  vacpp.cmp.core             8.0.0.0  COMMITTED  IBM XL C/C++ Compiler
  vacpp.cmp.core             8.0.0.0  COMMITTED  IBM XL C/C++ Compiler
  xlC.aix61.rte             12.1.0.3  COMMITTED  IBM XL C++ Runtime for AIX 6.1

/usr/vacpp/bin/xlC -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: …
0
Hello,

I have installed a module on the puppet master server,  how do I make client to pickup those modules and execute?
0
I have a file with a character that translates into 272 when I do:
od -xc

The character looks like an A with a caret on top with a degree sign to the right. I am attaching an image of the character as well. I have tried sed, perl and tr and none of them are working.

For example:
sed -e 's/'$(echo "272")'/ /g' input_file > output_file

This does not work.

Any suggestions?
Image.jpg
0
I am creating a shell script to check if cron jobs are enabled/disabled and send a mail notification for the same (with job name).

#!/bin/sh

crontab -l > /app/file.txt
App_Home=/app
ctab='$APP_Home/file.txt'

while IFS= read -r value; do
entry=`$value | awk '{print $1}'`
echo $entry
if [[ $entry == "#" ]]
then
  echo " Entry $value is disabled "
elif [[ $entry == '#*' ]]
then
   echo " Entry $value is disabled "
else
   echo " Entry $value is enabled "
fi
done < $ctab

Open in new window


However, the above code is failing with the error message (#*: command not found).
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.