Salut,

Malheuresement , ça marche pas ,
pour un user A,
$echo $PATH donne
/usr/bin...
mais moi je veux ,$PATH + /usr/local/bin

j'ai changer /etc/default/(login|su) et voila un extrait de login et su

login

#ident  "@(#)login.dfl  1.11    00/10/19 SMI"
#
# Copyright (c) 1989-2000 by Sun Microsystems, Inc.
# All rights reserved.

# Set the TZ environment variable of the shell.
#
#TIMEZONE=EST5EDT

# ULIMIT sets the file size limit for the login.  Units are disk blocks.
# The default of zero means no limit.
#
#ULIMIT=0

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console

# PASSREQ determines if login requires a password.
#
PASSREQ=YES

# ALTSHELL determines if the SHELL environment variable should be set
#
ALTSHELL=YES

# PATH sets the initial shell PATH variable
#
PATH=/usr/bin:/usr/local/bin/:/disk2/oracle/product/9.2.0/bin:/usr/sbin:

# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin

# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.
#
#TIMEOUT=300

su

#ident  "@(#)su.dfl     1.6     93/08/14 SMI"   /* SVr4.0 1.2   */

# SULOG determines the location of the file used to log all su attempts
#
SULOG=/var/adm/sulog

# CONSOLE determines whether attempts to su to root should be logged
# to the named device
#
#CONSOLE=/dev/console

# PATH sets the initial shell PATH variable
#
PATH=/usr/bin:/usr/local/bin:/disk2/oracle/product/9.2.0/bin:

# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin

# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all su attempts.  LOG_NOTICE messages are generated for su's to
# root, LOG_INFO messages are generated for su's to other users, and LOG_CRIT
# messages are generated for failed su attempts.

...

> Le mar 13 décembre, [EMAIL PROTECTED] a écrit :
>
> > j'ai mais le path dans /etc/profile mais ça marche pas ..
>
> vi /etc/default/(login|su)
>
>





----------------------------------------------------------------
----------------------------------------------------------------
Ce Message est envoye par le serveur de messagerie de l'universite de Tlemcen


_______________________________________________
Solaris_fr liste de diffusion en français pour Solaris, sur toutes architectures
[email protected]
http://x86.sun.com/mailman/listinfo/solaris_fr

Répondre à