Hi,
How does the PATH and MANPATH environment variable get set?
I want to add "/opt/SUNWspro/bin" to the search path for all the users. Where can I access this variable.
I know in my home directory, depend on which shell I use, there are files such as .profile and .cshrc which I can edit to... (3 Replies)
Installed a program, need to set the system up so that when the executable is entered, it finds the path to the executable. In Windows, set under system properties, advanced, environmental variables. How do I do this with Unix? Specifically using Solaris 9. I have tried:
env... (3 Replies)
hi,
I have one environment variable like path in my system.But in my program i need to change that path .suppose it has a value "config" now i need to chage it as "config1" or something else.i need to use that variable for complete project.It means at first it will use the old path but after... (4 Replies)
hi all
i have joined new to the group.
i have set an variable in my bashrc file.
.bashrc
PROGHOME=/home/braf/braf/prog
export PROGHOME
but while using it in my shell script its path is not taken and i had to explicitly give the export command to set the path.
in my script... (8 Replies)
Hi,
I am quite new to Linux. And I have doubt how to set new environment variable with value to a C executable.
Let say I have a environment variable $Hack ;
I would like to load a value for this variable; so that when the C executable is executed, the $Hack would set the variable value.
... (4 Replies)
I am working with solaris 9 sunBlade150 Box.
I Installed a program, need to set the environment variable so that when the executable is entered,it finds the path to the executable.
The documentation for the software says: Set the appropriate environment variable:
Connect to server failed;... (8 Replies)
hi,
i am new to perl:
os : Linux
i wrote simple perl script to select from table i am getting this error and how to set ORACLE_HOME environment variable :
script:
#!usr/bin/perl
use DBI;
use Mail::Sendmail;
#use Date::Calc;
use MIME::QuotedPrint;
use HTML::Entities;
use POSIX... (2 Replies)
Hi,
i have the following env variable. currently i am exporting variable in the same script file. but i need this is in a text file and the scripts need to export this variable from the text file.
can you please suggest me. is it possible.
export... (6 Replies)
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Hello,
What will be the effect of environment variable, when mulitple sessions are opened by same login?
Following code snippet is part of a shell script.
Environment : HP-UX B.11.31 U ia64
For Example
EXECUTION_DIR=`pwd`/
EXECUTION_DIR_RT=${EXECUTION_DIR}RT/
export... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT OSX
ncdestroy
NCDESTROY(1) BSD General Commands Manual NCDESTROY(1)NAME
ncdestroy -- Destroy kernel NFS credentials
SYNOPSIS
ncdestroy [-v] [-P] [path [path...]]
DESCRIPTION
ncdestroy invalidates the caller's kernel GSS credentials for any of the specified path's associated NFS mounts. If no paths are specified
then all the caller's associated credentials for all NFS file systems are destroyed.
When a nfs file system is mounted using a GSS mechanism (currently only Kerberos is supported) through the ``sec='' option or by the export
specified on the server, the resulting session context is stored in a table for each mount. If the user decides to finish his or her session
or chooses to use a different credential, then ncdestroy can be called to invalidate those credentials in the kernel. New credentials can be
obtain (typically by calling kinit) and those credentials can be used when accessing the mount.
The options are as follows:
-v Be verbose and show what file system is being operated on and any resulting errors.
-P If the trailing component resolves to a symbolic link do not resolve the link but use the current path to determine any associate NFS
file system.
EXAMPLES
If leaving for the day:
$ kdestroy -A
$ ncdestroy
Lets say a user does
$ kinit user@FOO.COM
And through the automounter access a path /Network/Serves/someserver/Sources/foo/bar where the mount of /Network/Servers/some-
server/Sources/foo was done with user@FOO.COM.
$ cat /Network/Servers/someserver/Sources/foo/bar
cat: /Network/Servers/someserver/Sources/foo/bar: Permission denied
The user realizes that in order to have access on the server his identity should be user2@BAR.COM. So:
$ kdestroy -A
$ kinit user2@BAR.COM
$ ncdestroy /Network/Servers/someserver/Sources/foo
Now the local user can access bar
NOTES
In the above example the user destroyed all credentials so the only credential to choose was new credential user2@BAR.COM. However, if
accessing the server with user@FOO.COM was done by getting a cross realm TGT to obtain the service ticket nfs/some.server.fqdn@BAR.COM, then
it won't be necessary to use kdestroy. The GSS infrastructure will prefer to use credentials in the same realm as the service.
DIAGNOSTICS
The ncdestroy command will exit with 1 if any of the supplied paths don't exist. If all paths exist or no paths are given the exit status
will be 0.
SEE ALSO kinit(1), kdestroy(1), mount_nfs(8)BUGS
There should be an option to kdestroy to destroy cached nfs contexts.
BSD December 10, 2012 BSD