This is a discussion on Where could $PATH be set? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> The system admin at work asked me today if I knew where $PATH for a user could be set ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| The system admin at work asked me today if I knew where $PATH for a user could be set on Solaris. I'm not 100% sure of the facts, but I think the problem is that some users have as part of their $PATH something relating to /usr/local (i.e. a non Sun path) but he was unable to find where it was being set. (He inherited a Solaris system, set up by someone else). There is no .profile, .cshrc or any other dot files. /etc/default/login does not contain /usr/local nor does /etc/profile. Is there any other way the path can be set? The shell was the restricted shell (rsh). I could have some of the facts wrong, but just a list of each and every place a path could be set would be useful. dave k |
| |||
| On Wed, 18 May 2005 23:11:37 +0100, Dave wrote: > The system admin at work asked me today if I knew where $PATH for a user > could be set on Solaris. > > I'm not 100% sure of the facts, but I think the problem is that some > users have as part of their $PATH something relating to /usr/local (i.e. > a non Sun path) but he was unable to find where it was being set. (He > inherited a Solaris system, set up by someone else). > > There is no .profile, .cshrc or any other dot files. > > /etc/default/login does not contain /usr/local > nor does /etc/profile. > > Is there any other way the path can be set? > > The shell was the restricted shell (rsh). > > I could have some of the facts wrong, but just a list of each and every > place a path could be set would be useful. > > dave k man restricted_shell |
| |||
| Scott Packard wrote: > On Wed, 18 May 2005 23:11:37 +0100, Dave wrote: > > >>The system admin at work asked me today if I knew where $PATH for a user >> could be set on Solaris. >> >>I'm not 100% sure of the facts, but I think the problem is that some >>users have as part of their $PATH something relating to /usr/local (i.e. >>a non Sun path) but he was unable to find where it was being set. (He >>inherited a Solaris system, set up by someone else). >> >>There is no .profile, .cshrc or any other dot files. >> >>/etc/default/login does not contain /usr/local >>nor does /etc/profile. >> >>Is there any other way the path can be set? >> >>The shell was the restricted shell (rsh). >> >>I could have some of the facts wrong, but just a list of each and every >>place a path could be set would be useful. >> >>dave k > > > man restricted_shell > > Thanks, although it did not help. I was not aware the man page could be found that way, but did determine that man -s 1m rsh found it. But I could still see no other place mentioned where the user's path could have been set. |
| ||||
| On Fri, 20 May 2005 08:14:03 +0100, Dave wrote: > Scott Packard wrote: >> On Wed, 18 May 2005 23:11:37 +0100, Dave wrote: >> >> >>>The system admin at work asked me today if I knew where $PATH for a user >>> could be set on Solaris. >>> >>>I'm not 100% sure of the facts, but I think the problem is that some >>>users have as part of their $PATH something relating to /usr/local (i.e. >>>a non Sun path) but he was unable to find where it was being set. (He >>>inherited a Solaris system, set up by someone else). >>> >>>There is no .profile, .cshrc or any other dot files. >>> >>>/etc/default/login does not contain /usr/local >>>nor does /etc/profile. >>> >>>Is there any other way the path can be set? >>> >>>The shell was the restricted shell (rsh). >>> >>>I could have some of the facts wrong, but just a list of each and every >>>place a path could be set would be useful. >>> >>>dave k >> >> >> man restricted_shell >> >> > Thanks, although it did not help. I was not aware the man page could be > found that way, but did determine that man -s 1m rsh found it. > > But I could still see no other place mentioned where the user's path > could have been set. So, the man page says it can't be set, after .profile is read. I'll assume it is also set within the system-wide /etc/profile. Well, if you are very sure that you have no $PATH changes within ..profile|/etc/profile and you've pulled your hair out trying to find where it's being changed and can't find it, then the only other obvious thing is the person whom first set up this system and restricted shell for you didn't do it correctly. Read the man page very closely and trace the exact steps for the restricted shell's invocation. You'll probably find a mistake somewhere. Or, the man page is wrong and you'll have to file a bug with Sun. Regards, Scott |
| Thread Tools | |
| Display Modes | |
|
|