(pour les archives) man su:
[...] DESCRIPTION su is used to become another user during a login session. Invoked without a username, su defaults to becoming the super user. The optional argument - may be used to provide an environment similiar to what the user would expect had the user logged in directly. [...] sur google.com, j'ai tape: difference su "su -" unix premiere page: http://www.itworld.com/nl/unix_sys_adm/01232002/ [...] The basic difference between the "su" and "su -" command, as most of you probably know, is simple. When the hyphen is used as an argument, not only do you adopt the identity of the particular user, but you adopt his working environment as well. The user's "dot files" are read and processed. Since root often has a much more restrictive environment than normal user's, you can expect a much more restrictive search path and a paucity of aliases simplifying or modifying the way that familiar Unix commands are issued. Therefore, when you "su -" to the root account, you acquire the more carefully controlled and generally conservative environment. [...] En francais: il execute l'environnement pour le root (les .cshrc/.bashrc et les /etc/profile ou /etc/csh.cshrc avec les conditions pour root). Voila! E. -- Eric LeBlanc [EMAIL PROTECTED] -------------------------------------------------- UNIX is user friendly. It's just selective about who its friends are. ================================================== On Thu, 24 Apr 2003, David CABATON wrote: > Je viens de m'apercevoir que la commande "su" et "su -" sont differentes.... > > J'ai cherch� de la doc sur le net, j'arrive pas � comprendre, tout le > monde ne dit pas pareil.... > > Votre avis SVP pour m'eclairer... :) > > > Merci / David > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >

