Sponsored Content
Top Forums Shell Programming and Scripting Grep command giving different result for different users for same command Post 302947534 by jgt on Thursday 18th of June 2015 02:26:30 PM
Old 06-18-2015
The most likely explanation is that the non root user does not have either permission or authority to run the command.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

assign subst|grep|sed command result to a variable

Hi, I'm quite new to scripting and I want to modify following line of an existing script: MYVAR=`subst |grep 'L:\\\:' | sed -e 's/.*\\\//'`; What I have to do is to use the content of a variable instead of the constant expression 'L:\\\:' as the grep string to be matched. Assuming I already... (5 Replies)
Discussion started by: snowbiker99
5 Replies

2. Linux

Terminal Execution By Giving a Command

Hi Guys, I am using Red Hat Linux 5 and GNOME Terminal is available there in the Accessories menu of Applications. But I don't see any run command option which can be used to type the name of the terminal and execute it directly as I used to do it under Mandrake Linux wherein I would type... (2 Replies)
Discussion started by: indiansoil
2 Replies

3. Shell Programming and Scripting

Last Command not giving year

Hi All, i want the last login details along with year. i tried below command but not giving me the year of last login. last <$Userid> | head -1 i heard that if it is current year then it wont display the year else it will display the year. is it so? if yes then , is there any way of... (1 Reply)
Discussion started by: ani_rvce
1 Replies

4. UNIX for Dummies Questions & Answers

Last Command not giving year

Hi All, i want the last login details along with year. i tried below command but not giving me the year of last login. last <$Userid> | head -1 i heard that if it is current year then it wont display the year else it will display the year. is it so? if yes then , is there any way of... (1 Reply)
Discussion started by: ani_rvce
1 Replies

5. Linux

acroread command giving error

Hi, When I run the command acroread it is giving error ERROR: Cannot find installation directory. When I look at /usr/local/Adobe/Acrobat7.0/bin/ an exicutable file named acroread is there. When i run ./acroread from that directory it is working . What can i do so that I can give... (3 Replies)
Discussion started by: iamjayanth
3 Replies

6. Shell Programming and Scripting

Use grep result to execute next command

Hi I am trying to run 2 servers using a script one after the other. I start the first one: run.sh -c servername >> jboss_log.txt & Then I have to wait until I see Started message in the log file before I launch the other server. I can't use sleep because I am not sure how long it'll... (5 Replies)
Discussion started by: iririr
5 Replies

7. Shell Programming and Scripting

If the grep command returns any result set

my intension is to use a grep command inside the shell script and if any row is returned or not.. depending on the resultset i have to code on further. how to check this i mean.. could anyone help me out with the if condition how to use it here !! (4 Replies)
Discussion started by: gotam
4 Replies

8. Shell Programming and Scripting

Grep result from dd command

Hi, I am running following command in a bash script for testing IO and use grep to get throughput number, but it did not work, it displayed everything: dd if=/dev/zero of=/dev/null bs=1G count=1 oflag=dsync | grep bytes | awk '{print $7}' 1+0 records in 1+0 records out 536870912 bytes... (2 Replies)
Discussion started by: hce
2 Replies

9. Shell Programming and Scripting

CUT command not giving correct result inside loop

Hi, i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues. Src file(jjj.txt) -------... (8 Replies)
Discussion started by: raju2016
8 Replies

10. Shell Programming and Scripting

Linux find command seems to not transmit all the result to the '-exec command'

Hello. From a script, a command for a test is use : find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc' Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
cimtrust(8)						      System Manager's Manual						       cimtrust(8)

NAME
cimtrust - Add, remove or list X509 certificates in a PEM format trust store. SYNOPSIS
cimtrust -a [ -U certuser ] -f file -T ( a | e | s ) cimtrust -r -i issuer ( -n serialnumber | -S subject ) cimtrust -l [ -i issuer [ -n serialnumber | -S subject ] ] cimtrust --help cimtrust --version Remarks The cimtrust command requires that the cimserver is running. This command operates on a truststore on the local system only. DESCRIPTION
The add option of the cimtrust command adds an X509 certificate file of a specified type to the truststore. The certuser specifies the username to be associated with the certificate in the file. If no certuser is specified, the certificate may not be used to authenticate a user. The remove option of the cimtrust command removes the X509 certificate(s) matching the specified issuer and either serialnumber or subject from the truststore. The list option of the cimtrust command lists the X509 certificates in the truststore. The list can be filtered by issuer and either seri- alnumber or subject. Certificates in the trust store may be revoked by adding a Certificate Revocation List to the CRL store. For more information on CRL opera- tions see the cimcrl(8) command. Options cimtrust recognizes the following options: -a Adds a certificate to the truststore. If the specified file does not contain a valid X509 certificate an error mes- sage is returned and no action is taken. If the X509 certificate already exists in the truststore, an error message is returned. -r Removes certificate(s) from the truststore. If the truststore contains multiple certificates matching the specified issuer and subject, all the matching certificates are removed. If no certificate exists for the specified issuer and either serialnumber or subject , an error message is returned and no action is taken. -l Displays the X509 certificates in the truststore. -f file Specifies a PEM format file containing an X509 certificate. -U certuser Specifies a username to be associated with the specified certificate. The username specified should be a valid sys- tem user on the target system. -i issuer Specifies the issuer name of the certificate. -n serialnumber Specifies the serial number of the certificate. -S subject Specifies the subject name of the certificate. -T ( a | e | s ) Specifies the type of a certificate. The type must be one of the following: authority (a): root/intermediate authority certificates. Certificates of this type are added to the trusted certifi- cate store. The certuser is optional for authority certificates. If no certuser is specified, the certificate may not be used to authenticate a user. authority issued end-entity (e): Certificates of this type are not added to the trusted certificate store. The cer- tuser is required for authority issued end-entity certificates. Self-signed identity certificate (s): Certificates of this type are added to the trusted certificate store. The cer- tuser is required for self-signed identity certificates. --help Displays the command help message. --version Displays the CIM Server version. EXIT STATUS
When an error occurs, an error message is written to the standard error stream and a non-zero exit status value is returned. The following exit status values are defined: 0 Success 1 General error 2 Connection failed 3 Connection timed out 4 Certificate already exists 5 Certificate does not exist 6 Invalid system user EXAMPLES
Add the X509 self-signed identity certificate in the cert.pem file and associate it to certuser guest. This certificate will be added to the trusted certificate store: cimtrust -a -U guest -f cert.pem -T s Add the X509 authority root CA certificate in the ca.pem file with no certuser association. This certificate will be added to the trusted certificate store but may not be used to authenticate a user: cimtrust -a -f ca.pem -T a Add the X509 authority issued end-entity certificate in the user.pem file and associate it to certuser pegasus. This certificate may be used to authenticate user pegasus but will not be added to the trusted certificate store: cimtrust -a -f user.pem -U pegasus -T e Remove the certificate matching the specified issuer and serialnumber from the trust store: cimtrust -r -i "/C=US/ST=California/L=Cupertino/O=Smart & Secure/OU=Secure Software Division/CN=dev.admin.ss.com" -n 01 Remove the certificate(s) matching the specified issuer and subject from the trust store: cimtrust -r -i "/C=US/ST=California/L=Cupertino/O=Smart & Secure/OU=Secure Software Division/CN=dev.admin.ss.com" -S "/C=US/ST=Califor- nia/L=Cupertino/O=Smart & Secure/OU=Secure Software Division/CN=dev.admin.ss.com" List all the X509 certificates in the trust store: cimtrust -l SEE ALSO
cimserver(8), cimcrl(8), cimconfig(8). cimtrust(8)
All times are GMT -4. The time now is 01:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy