From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,bf14dfca52162b92 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny03.POSTED!3485a766!not-for-mail From: Bob Harris Newsgroups: comp.unix.tru64 Subject: Re: shell error References: <433c0237$0$6347$4fafbaef@reader2.news.tin.it> User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) Message-ID: Date: Thu, 29 Sep 2005 23:57:57 GMT NNTP-Posting-Host: 151.199.19.197 X-Complaints-To: abuse@verizon.net X-Trace: trndny03 1128038277 151.199.19.197 (Thu, 29 Sep 2005 19:57:57 EDT) NNTP-Posting-Date: Thu, 29 Sep 2005 19:57:57 EDT Xref: g2news1.google.com comp.unix.tru64:330 In article <433c0237$0$6347$4fafbaef@reader2.news.tin.it>, "fabrizio" wrote: > Dear users, > I need to configure the keyboard map as italian key map > so I put in: > > /etc/profile the string > xmodmap /usr/lib/X11/keymaps/ > > When I log in as root all is ok > but when I change user with: > > su - > > it show me the following error: > > -sh: xmodmap not found > > even if xmodmap is in the PATH. > > Someone knows why? > > thanks, > Fabrzio But it is not in the users path until after the user's .profile runs runs which should be after /etc/profile runs. Just modify the xmodmap command to include the full path to the command and then you are not dependent on path info