PATH takes no effect when login

linux

    Next

  • 1. Newbie looking for advice on Linux distribution
    Hello, I am new to Linux and to this group. I used Linux in 2004 (Red hat), and so I do have some familiarity with the operating system. As many people are, I am now faced with having to install a new windows OS or switching to open source software. I have to use windows at my job, but I don't intend to get windows 7 for my home computer. I am a relatively advanced computer user. I'm an engineer with many years' programming experience (C, VBA, Basic, some assembly, Ladder Logic). Currently, I use programming softwares for PLCs, microprocessors and VBA, and an old C compiler. I don't use the computer for entertainment or videos. But I do use MP3s. Okay, having said all that, I would appreciate it if someone would recommend a linux distribution for me. I really don't know what the differences are. It would be a big help if someone were to recommend a distribution which would suit my needs. Thanks for your help. FB
  • 2. Issues with 7TB partition
    Hello All, I've recently built a Debian lenny box and am having an issue with my 7TB RAID 5 array. All seems good when using parted (fdisk cannot create a partition > 2TB?). I am able to create the partition, create a jfs file system, mount it, and copy files to it. Upon a reboot however the partition seems to be corrupt and cannot be mounted. The error indicates that there are no partitions on the drive. Jfsutils indicates that all super blocks are bad and that the file system cannot be be recovered. The same issue has occured on two seperate boxes with >2TB partitions. I read that I needed to compile in support for EFI GUID Partition support. I have run make menuconfig and it appears that this option is already compiled into my kernel by default. I am at a lose as to how to approach the issue at this point. Any ideas? Any one else experience this problem? More Info: Linux servername 2.6.26-2-amd64 #1 SMP Tue Jan 12 22:12:20 UTC 2010 x86_64 GNU/Linux
  • 3. GAG boot loader will not 'Write to Hard Disk'
    Having an unexpected problem getting the GAG bootloader to write itself into the /dev/sda MBR etc. area. Selecting the 'Store in Hard Disk' option in Setup, GAG says: "Disk error" I have: (1) Checked that Windows 7 does boot directly from the drive (pristine /sda MBR!) - *not* using GAG. (2) Checked that this GAG is the latest (4.10) (3) Done a complete download and install on 2nd floppy. (4) Checked that GAG does see the right drive as its 'Drive 1'. (5) Checked that there is no problem writing (using 'dd') into the 1st track of the drive. (6) Checked there is no BIOS MBR protection in effect. (7) Googled Groups to confirm others not having GAG problem with SATA drives. GAG still won't Write to Hard Disk (tried both floppies). The drive is a 640GB SATA DC WD6400AAKS-6. Motherboard = ASUS P5QL/EPU Anyone else come across this problem? -- /\/\aurice (Retired in Surrey, UK) Registered Linux User #487649 Linux Mandriva 2010.0 32-bit PowerPack (i686 kernel) KDE 4.3.2 Virtualbox 3.1.2 Firefox 3.5.7 (Replace "nomail.afraid" by "bcs" to reply by email)
  • 4. Can my ubuntu desktop access web via wirelessrouter
    hi, got two pc, XP one connect to wirless router via cable. can i run the ubuntu desktop through wireless card or dongle to web if the xp one is also connected at the same time, or is it necessary to create a network for this. thanx Don
  • 5. Protecting the Windows using Linux
    Hi, The internet connection is in Linux (Host OS). I am just eager to know if i have Windows as a guest OS on Host OS(Linux), is it less possible for Windows to get infected by virus ? If Windows crashes, is there a mechanism to recover it from Host OS(Linux) ? Also, is there any mechanism to debug windows from linux ? Any ideas ? I am planning to use Ubuntu as Host OS and Windows Vista as Guest OS and either Vmware or VirtualBox (Virtual machines). Thx in advans, Karthik Balaguru

PATH takes no effect when login

Postby Sheep » Sun, 02 Sep 2007 16:30:40 GMT

I am trying to set the path in with adding lines in .bash_profile

if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi
if [ -f ~/test.env ]; then
   ~/test.env
fi
PATH=$PATH:$HOME/bin
export PATH

Where test.env contains just a few of lines,

export TOOLCHAIN_PATH=/1234567
export PATH=${TOOLCHAIN_PATH}/bin:$PATH
echo PATH=${PATH}

The last line in test.env is to make sure the desired path is added in
every login. Actually, I got what I want when login as following text
is shown
PATH=/1234567/bin:/user/kerberos/bin:/user/local/bin:/bin:/usr/bin

However, when the prompt comes up, I type "set" to further check,
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/shane/bin

Originally, the system work fine with the setting. I don't what
changes that sucks the system.

Can anyone give me some clues on this problem?

Re: PATH takes no effect when login

Postby Martin Klar » Sun, 02 Sep 2007 20:14:24 GMT



maybe a
  source ~/test.env
fix your problem.

"man bash":
source filename [arguments]
Read and execute commands from filename in the current shell environment
...


HTH Martin

Re: PATH takes no effect when login

Postby The Wizard of Oz » Mon, 03 Sep 2007 00:00:06 GMT



	Here is a possible solution...

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/opt/schily/bin:/usr/local/lib:./

export PATH
unset USERNAME

Re: PATH takes no effect when login

Postby Daniel Ganek » Thu, 06 Sep 2007 00:34:33 GMT



You're executing ~/test.env not sourcing it. Change the line to

   . ~/test.env

/dan

Similar Threads:

1.tcsetattr (on serial device) takes effect only at next application startup

I use 'tcsetattr' to change the attributes of a serial interface like ttyS1.
According to my knowledge the new parameters I set should be in effect
as soon as a call like 'tcsetattr(nfed, TCSANOW, &tty_parms)' returns.

Fact is, they are not. The old parameters seem to remain active, even though
a call to 'tcgetattr' shows the new parameters.

After stopping and restarting my application the new paramters are effective
and the application is working fine.

Is there any other routine besides 'tcsetattr' (and 'tcflush') I must call
to activate
a new set of parameters?
Do I have to close and reopen the device after a call to 'tcsetattr'?

many thanks, Felix


2.FPATH taking effect but functions not properly invoked

I have the following sample shell script called
priv_lib_prod_drone.ksh:
#!/usr/bin/ksh

set -x
if [[ ${LOGNAME} = 'privbtch' ]]
then
   export STORE_HOME=/prod/home01/store/privacy
elif [[ ${LOGNAME} = 'u96010' ]]
then
   export STORE_HOME=${HOME}
   exec 1>>${HOME}/outputlog 2>&1
fi

touch 200604231200 ${STORE_HOME}/data/privacy_drone_0423.dat
touch 200604241200 ${STORE_HOME}/data/privacy_drone_0424.dat

unset FPATH
echo "FPATH variable and PATH are not set up yet: "
echo "${FPATH} is FPATH"
echo "${PATH} is PATH"
echo "Drone files before purge is invoked:........"
ls -l ${STORE_HOME}/data/privacy_drone*

purge ${STORE_HOME}/data/privacy_drone*dat 15
echo "${?} is return code from purge function"
echo "Drone files after purge is invoked:........"
ls -l ${STORE_HOME}/data/privacy_drone*

# set FPATH
export FPATH=/prod/home01/appl/privacy/lib
export PATH=${PATH}:${FPATH}

echo "${FPATH} is FPATH"
echo "${PATH} is PATH"
echo "Drone files before purge is invoked:........"
ls -l ${STORE_HOME}/data/privacy_drone*

purge ${STORE_HOME}/data/'privacy_drone*' 15
echo "${?} is return code from purge function"
echo "Drone files after purge is invoked:........"
ls -l ${STORE_HOME}/data/privacy_drone*

Expalnation of the script:
Lines 16 - 26 Try to invoke the function "purge" without setting FPATH
Lines 28 - 40 Invoke function "purge" after setting FPATH and PATH.

purge is a function to delete all files older than "n" days where n is
the parameter to the function.
u96010@jake:/prod/home01/appl/privacy/lib-> ls -l
total 70
-rw-r-xr--   1 privprod   privbtch      5146 May  4 15:20 cstmarchive
-rw-r-xr--   1 privprod   privbtch      7515 May  4 15:20 fn_check_date
-rw-r-xr--   1 privprod   privbtch      2196 May  4 15:20 ftpctrl
-rw-r-xr--   1 privprod   privbtch       762 May  4 15:20 purge
-rw-r-xr--   1 privprod   privbtch      7562 May  4 15:20 xfrdata
-rw-r-xr--   1 privprod   privbtch      8311 May  4 15:20 xfrsignal

u96010@jake:/prod/home01/appl/privacy/lib-> cat purge
##########################################################################
#
 #
# File:         purge
 #
# Synopsis:     purge target_dir purge_days
 #
# Description:  Purge files in target_dir directory that are older than
 #
#               specified purge_days.
 #
# Return:       0       Successfully purge the files
 #
#               1       Failed to purge old files
 #
##########################################################################
function purge
{
    /usr/bin/find $1 -mtime +$2|/usr/bin/xargs rm -f
    if [[ $? -ne 0 ]]
    then
        return 1
    else
        return 0
    fi
}

When the job priv_lib_prod_drone.ksh is invoked as one user the script
is working as expected.
But if the script is executed as user privbtch, the script does runs as
follows -- trace file:

**********************************************************************************************************
+ set -x
+ [[ privbtch = privbtch ]]
+ export STORE_HOME=/prod/home01/store/privacy
+ touch 200604231200
/prod/home01/store/privacy/data/privacy_drone_0423.dat
+ touch 200604241200
/prod/home01/store/privacy/data/privacy_drone_0424.dat
+ unset FPATH
+ echo FPATH variable and PATH are not set up yet:
FPATH variable and PATH are not set up yet:
+ echo  is FPATH
 is FPATH
+ echo
/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/
bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/u
sr/local/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resm
on/bin:/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.
is PATH
/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/op
t/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/loca
l/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:
/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.
is PATH
+ echo Drone files before purge is invoked:........
Drone files before purge is invoked:........
+ ls -l /prod/home01/store/privacy/data/privacy_drone_0423.dat
/prod/home01/store/privacy/data/privacy_drone_0424.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 23 12:00
/prod/home01/store/privacy/data/privacy_drone_0423.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 24 12:00
/prod/home01/store/privacy/data/privacy_drone_0424.dat
+ purge /prod/home01/store/privacy/data/privacy_drone_0423.dat
/prod/home01/store/privacy/data/privacy_drone_0424.dat 15
/prod/home01/appl/privacy/bin/priv_lib_prod_drone.ksh[23]: purge:  not
found
+ echo 1 is return code from purge function
1 is return code from purge function
+ echo Drone files after purge is invoked:........
Drone files after purge is invoked:........
+ ls -l /prod/home01/store/privacy/data/privacy_drone_0423.dat
/prod/home01/store/privacy/data/privacy_drone_0424.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 23 12:00
/prod/home01/store/privacy/data/privacy_drone_0423.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 24 12:00
/prod/home01/store/privacy/data/privacy_drone_0424.dat
+ export FPATH=/prod/home01/appl/privacy/lib
+ export
PATH=/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/op
t/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/
sbin:/usr/local/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/o
pt/resmon/bin:/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.:/prod/home01/appl/p
rivacy/lib
+ echo /prod/home01/appl/privacy/lib is FPATH
/prod/home01/appl/privacy/lib is FPATH
+ echo
/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/
bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/u
sr/local/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resm
on/bin:/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.:/prod/home01/appl/privacy/
lib is PATH
/prod/home01/appl/privacy/lib is FPATH
+ echo
/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/
bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/u
sr/local/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resm
on/bin:/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.:/prod/home01/appl/privacy/
lib is PATH
/opt/oracle/product/8.1.7.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/op
t/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/loca
l/bin:/opt/omni/bin:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:
/usr/sbin/diag/contrib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:.:/prod/home01/appl/privacy/lib
is
PATH
+ echo Drone files before purge is invoked:........
Drone files before purge is invoked:........
+ ls -l /prod/home01/store/privacy/data/privacy_drone_0423.dat
/prod/home01/store/privacy/data/privacy_drone_0424.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 23 12:00
/prod/home01/store/privacy/data/privacy_drone_0423.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 24 12:00
/prod/home01/store/privacy/data/privacy_drone_0424.dat
+ purge /prod/home01/store/privacy/data/privacy_drone* 15
+ echo 0 is return code from purge function
0 is return code from purge function
+ echo Drone files after purge is invoked:........
Drone files after purge is invoked:........
+ ls -l /prod/home01/store/privacy/data/privacy_drone_0423.dat
/prod/home01/store/privacy/data/privacy_drone_0424.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 23 12:00
/prod/home01/store/privacy/data/privacy_drone_0423.dat
-rw-rw-r--   1 privbtch   privbtch         0 Apr 24 12:00
/prod/home01/store/privacy/data/privacy_drone_0424.dat

************************************************************************************************************

If I run the same script as user u96010 (a different user that runs the
same script) the functions are invoked properly:
**********************************************************************************************************
FPATH variable and PATH are not set up yet:
 is FPATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/b
in/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/hpnp//b
in:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/netw
orker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib
is PATH
Drone files before purge is invoked:........
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
1 is return code from purge function
Drone files after purge is invoked:........
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
/prod/home01/appl/privacy/lib is FPATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/b
in/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/hpnp//b
in:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/netw
orker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib:/prod/home01/appl/privacy/lib
is PATH
Drone files before purge is invoked:........
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
0 is return code from purge function
Drone files after purge is invoked:........
0
0
1
1
+ touch 200604231200
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
+ touch 200604241200
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
+ unset FPATH
+ echo FPATH variable and PATH are not set up yet:
FPATH variable and PATH are not set up yet:
+ echo  is FPATH
 is FPATH
+ echo
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin
:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/
hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/o
pt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib
is PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/b
in/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/hpnp//b
in:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/netw
orker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib
is PATH
+ echo Drone files before purge is invoked:........
Drone files before purge is invoked:........
+ ls -l /prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
+ purge /prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat 15
./priv_lib_prod_drone.ksh[23]: purge: cannot execute
+ echo 1 is return code from purge function
1 is return code from purge function
+ echo Drone files after purge is invoked:........
Drone files after purge is invoked:........
+ ls -l /prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
+ export FPATH=/prod/home01/appl/privacy/lib
+ export
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt
/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bi
n:/opt/hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/con
trib:/opt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib:/prod/home01/appl/priva
cy/lib
+ echo /prod/home01/appl/privacy/lib is FPATH
/prod/home01/appl/privacy/lib is FPATH
+ echo
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin
:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/
hpnp//bin:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/o
pt/networker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib:/prod/home01/appl/privacy/lib
is PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/b
in/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/pred/bin:/opt/dlm/sbin:/usr/local/bin:/opt/omni/bin:/opt/hpnp//b
in:/usr/local/bin:/opt/OV/bin/OpC:/opt/openspool/runtime-sw/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/netw
orker/bin:/opt/graphics/common/bin:/opt/OV/bin:/etc/pipc/bin:/prod/home01/appl/privacy/lib:/prod/home01/appl/privacy/lib
is PATH
+ echo Drone files before purge is invoked:........
Drone files before purge is invoked:........
+ ls -l /prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
-rw-r-----   1 u96010     madss            0 Apr 23 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
-rw-r-----   1 u96010     madss            0 Apr 24 12:00
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat
+ purge /prod/users/crmsdev/u96010/data/privacy_drone* 15
+ /usr/bin/xargs rm -f
+ /usr/bin/find /prod/users/crmsdev/u96010/data/privacy_drone_0423.dat
/prod/users/crmsdev/u96010/data/privacy_drone_0424.dat -m
time +15
+ [[ 0 -ne 0 ]]
+ return 0
+ echo 0 is return code from purge function
0 is return code from purge function
+ echo Drone files after purge is invoked:........
Drone files after purge is invoked:........
+ ls -l /prod/users/crmsdev/u96010/data/privacy_drone*
/prod/users/crmsdev/u96010/data/privacy_drone* not found

************************************************************************************************************

Could you please let me know why the functions are not invoked when a
user privbtch invokes the fucntion?


Thanks,
Kishore

3.su login: takes long time

Hi,

Does anybody know what would cause "su -" with the password to take
20-30 seconds for authentication? Where it used to be less than a
second?

It's like something is looking outside the box, times out, and finally
says it's okay, you're okay? I can su with no problem, it's just that
half a minute must transpire before I'm authenticated.

Thanks in advance,
Kelli

4.Trusted Path login on VTY0

  Is there any way to enable the Secure Attention Key on a p5 LPAR?  As
  best I can tell, the TCB treats /dev/vty0 as a network terminal, not a
  local console.

  The LPAR I'm testing on has 5300-05 installed, with TCB enabled.
  "tcbck" gives valid output.  "sak_enabled = true" is set as default
  in /etc/security/login.cfg and  "tpath" is set to "on" in
  /etc/security/user.  When I telnet to the LPAR from another AIX box,
  I can "send sak" from the telnet> prompt and it does the right thing,
  which seems to indicate that the SAK is correctly configured.

    I've tried connecting from the WebSM VTerm running in Windows,
  Linux, and another AIX box, and from the HMC command line via vtmenu.
  At the login prompt, Ctrl-x,Ctrl-r produces no visual output, but
  apparently prepends unprintable characters to the login name, as login
  always fails with an invalid login name or password.  Ctrl-x,Ctrl-r at
  a command line just echoes ^X^R.

  I've also tried setting:

  /dev/console
  	synonym = /dev/vty0
  
  in /etc/security/login.cfg, to no effect.


-- 
   Doc Shipley
   MDR Consulting, Inc.	
   Austin, Texas

5.how to enable PATH setting when login

Hi,

I  have just setup a new PATH in my login, but it doesn't have effect
every time when I login or su -.

The PATH I tried to add is
PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/
ccs/bin:/usr/local/bin

I put this new PATH in /.dtprofile, /etc/default/login and /etc/
default/su, but none of them is readed by the login process.

Here is the passwd file:
# cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh

What should I do to make the new PATH enabled when I login through su
or ssh?

Thanks
Sam

6. Setting PATH within .login

7. how to enable PATH setting when login Options (solaris 5.10 - sparc)

8. [PATCH] pmac_zilog: insert correct failure path for device numbers being taken



Return to linux

 

Who is online

Users browsing this forum: No registered users and 63 guest