Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 11:31 PM
12-04-2007 11:31 PM
Why
but from root user shell
then run command (su - username)
then run any command
but when I enter to computer under other user
I can not run any command ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 11:35 PM
12-04-2007 11:35 PM
Re: Why
Change the .profile by the following entry and remove your entry
PATH=$PATH:/sbin/usr
then login su or direct login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 11:38 PM
12-04-2007 11:38 PM
Re: Why
.dtprofile
...
#
# If $HOME/.profile (.login) has been edited as described above, uncomment
# the following line.
#
# DTSOURCEPROFILE=true
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 11:41 PM
12-04-2007 11:41 PM
Re: Why
>>>then run command (su - username)
>>>then run any command
>>>but when I enter to computer under other user
I did not understand ur problem :(
Please elaborate...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2007 12:16 AM
12-08-2007 12:16 AM
Re: Why
I must change variable PATH . So I changed .profile as
(PATH=$PATH:/usr/sbin:.)
But there are two cases :-
1)-Under user other than root I must
run .profile to run commands (ping,...)
2)-Login to user via root when run
command (su - username)
I can run commands (ping,...)directly
without need to run .profile
(Why ????)
Thank you,,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2007 02:01 AM
12-08-2007 02:01 AM
Re: Why
the other solution is SUDO
You can run such commands without su is sudo.
This will be very much effective to trace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2007 03:33 AM
12-08-2007 03:33 AM
Re: Why
more informative than "Why" or "Route".
> I can not run any command ?
What does this mean? What, exactly, do you
do, and what, exactly, happens when you do
it?
> [...] So I changed .profile as
> (PATH=$PATH:/usr/sbin:.)
Whose .profile? You didn't actually use the
parentheses ("()"), did you? What _is_ your
PATH in all these cases?
echo $PATH
> [...] when I enter to computer under other
> user
You mean like Telnet, and log in as a
non-root user?
ls -l .profile
What is the user's shell? (Changing .profile
may not do much for a C shell user.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2007 02:42 PM
12-08-2007 02:42 PM
Re: Why
(To me, it isn't worth doing that, so I always use the absolute path.)
>So I changed .profile as (PATH=$PATH:/usr/sbin:.)
That seems right.
>1)-Under user other than root I must run .profile to run commands (ping,...)
Of course. You must either re-login or you must source .profile to get the changes there.
>2)-Login to user via root when run command (su - username)
This (-) will read .profile. So will using login.
>I can run commands (ping,...) directly without need to run .profile
If you change .profile, you must somehow read it. But you only need to do this once, per login session.