usermod -f does not take effect

unix

    Next

  • 1. Virtualizzazione
    La virtualizzazione dello strato hardware ?introdotta su Solaris 10 mediante i containers. E' possibile istanziare Solaris 8 o Solaris 9 all'interno di un containers, ottenendo i benefici della virtualizzazione senza dover effettuare l'upgrade del sistema operativo e quindi dei package applicativi sopra installati? AS
  • 2. /var/sadm/pkg
    If /var/sadm/pkg is inadvertently evacuated, is the machine effectively headed for a reinstall? .
  • 3. Solaris 10 patch 122856-01 breaks e-mail
    E-mail sending stopped working on some of our Solaris 10 workstations last week, after they had been brought up to date on patches. It turned out that patch 122856-01 (SPARC) had replaced /etc/mail/submit.cf with a generic version that submits to a local SMTP server. Our customized version submits directly to our campus mail server. We don't run SMTP servers on client workstations. Restoring our version of submit.cf and restarting the client daemon fixed the problem. This patch appears to have the ability to rename existing copies of sendmail.cf and submit.cf, but this didn't happen in our case. We had no warning that our configuration file had been replaced. I'm assuming that most sites update sendmail configuration files. The effects of this patch will be widespread. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
  • 4. compare application performance on solaris 8 and Ubuntu
    Hi all, I ran the completely same application on Solaris 8 and Linux(Ubuntu) respectively. But the execution on Linux is significantly faster than that on Solaris (about twice faster than on Solaris). the hardware information is: Solaris: 900 MHz UltraSPARCC III Cu with 1Gb RAM Linux: Intel(R) Pentium(R) M processor 1.20GHz,512 memory Could anyone tell me the possible reason for this please? Thank you very much.

usermod -f does not take effect

Postby sandra.haas » Tue, 27 Jan 2004 22:04:15 GMT

Hi,

I`m trying to automatically deactivate logins, that stayed inactive
for more than 40 days under sol8.
In order to test the option for max days inactivity, I changed the
login attributes for one testuser with
% usermod -f 1 <login>
and even added one new testuser with
% useradd -f 1 ... <login>
to be able to see whether there are differences between the two
commands concerning the -f option.
But now way, the passwords havn been locked (of course I once logged
in as testuser(and testuser2)...).
The values for the max days were correctly written to the /etc/shadow
file, using the admintool, the value is displayed in the correct
field.
I read, that there may be problems using NIS/NIS+ - but in this case
we don use it.
Has anybody an idea how to get these logins locked after the specified
days?
Thanks a lot!!

sandra

Similar Threads:

1.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

2.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


3.PATH takes no effect when login

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?

4.Apache 1.3 [unix]: Directives not having effect

Hi.

I've been experimenting with Apache for the past few days.  I've made
a few changes but they aren't having the desired effect.

1. When entering the site, the user automatically sees index.htm page.
   My Sol: DirectoryIndex index.htm

2. A page in a sub dir is blocked to everybody except a particular IP.
   <Directory /home/rpandyan/apache/htdocs/block>
      Order Deny,Allow
      Deny from all
      Allow james.virtual.com
   </Directory>

3. I have password protected a few pages also but that also isn't
working.
   <Directoy /home/rpandyan/apache/htdocs/hidden>
      AuthType Basic
      AuthName "Restricted Files"
      AuthUserFile /home/rpandyan/apache/passwd/passwords
      Require user James
   </Directory>

Note: I have made all changes to the httpd.conf file for efficienty
purposes.
      The Listen directive works [I see the test page]

If anybody knows what I need to do, please let me know.
Thanks.

5.Ping from cron not having same effect as ping from console

I'm running a RedHat Enterprise 2.1 server as a group development
platform.  We're having some network problems which are being worked
on, but right now I need a workaround.  The problem is that this
server drops off of the network a couple of times a day.  I've found
that if I just ping another server from that server it comes back on
the network, everybody can see it and everything is fine.

To keep the server on the network I set up a cron job to ping another
server every two minutes.  I can see this ping running every two
minutes with "ps -e | grep ping".  However, the machine still drops
off of the network.  When the server drops off of the network I wait
until I see the cron ping as above and then verify that it is still
off of the network.  So the cron ping doesn't get the machine back on
the network.  Then I do a ping from a console and the server comes
back on the network.

For some reason the cron ping doesn't have the same effect that a ping
from the console does.  The crontab ping entry is by the same user
that I am logged in as when I do the ping from the console.

Anyone have any suggestions?  Why does a ping from the console have a
different effect than a ping from cron.

6. Why #pragma pack() not take effect?

7. dark corners where sh -e is not in effect

8. Why IFS did not effect?



Return to unix

 

Who is online

Users browsing this forum: No registered users and 24 guest