login, path and ~/.profile
From: Benedict Verheyen (benedict.verheyen_at_sjki.be)
Date: 09/30/05
- Previous message: Rick Pasotto: "Re: gnome upgrade in testing"
- Next in thread: Jan T. Kim: "Re: login, path and ~/.profile"
- Reply: Jan T. Kim: "Re: login, path and ~/.profile"
- Reply: Jon Dowland: "Re: login, path and ~/.profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Sep 2005 08:50:05 +0200 To: Debian Linux Distro Users Discussion <debian-user@lists.debian.org>
Hi,
i was looking to change the prompt of a UML and while i was at it i
noticed something in regards to the path that is set.
When logging in these files are processed (used echo to find out)
/etc/profile
/etc/bash.bashrc
~/.bash_profile
~/.bashrc
This might differ on your system as I:
* source /etc/bash.bashrc from /etc/profile
* source ~/.bashrc from ~/.bash_profile
When doing su, these files are executed
/etc/bash.bashrc
~/.bashrc
As for my questions:
1. Why isn't ~/.profile run?
2. I'm setting up an UML that i debootstrapped so root is the only way
to log on for the moment. When i apt-get i get errors in the end because
the /bin /sbin paths aren't set so certain tools aren't found.
Is it better to leave the path like this security wise or should i just
add the /bin and /sbin directories?
The ~/.profile file contains a decent PATH but as this file doesn't seem
to get executed, the path isn't set.
On a side note: i found out this way that su sets a path and that it can
be customized with ENV_PATH and ENV_SUPATH definitions in /etc/login.defs
Thanks
Benedict
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Rick Pasotto: "Re: gnome upgrade in testing"
- Next in thread: Jan T. Kim: "Re: login, path and ~/.profile"
- Reply: Jan T. Kim: "Re: login, path and ~/.profile"
- Reply: Jon Dowland: "Re: login, path and ~/.profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: login, path and ~/.profile
... > noticed something in regards to the path that is set. ... The su command
does not launch a login shell, ... To get a root login shell, ... I don't
have any experience with UML (and I just guess you mean "User ... (Debian-User) - Re: Advise on CASE tools for VisualStudio (Modelmaker for Delphi equivalent ?)
... With VS.NET 2005 you have a nice class viewer, but no other UML views (it ...
Rational XDE is a very nice tool, but comes with a big price tag. ... Regards, ...
(microsoft.public.dotnet.languages.csharp) - Re: Advise on CASE tools for VisualStudio (Modelmaker for Delphi equivalent ?)
... With VS.NET 2005 you have a nice class viewer, but no other UML views (it ...
Rational XDE is a very nice tool, but comes with a big price tag. ... Regards, ...
(microsoft.public.dotnet.general) - Re: Visio For Enterprise Architect UML 2.0 Support
... If is there someone from MicroSoft, are you gonna add support for UML 2.0? ...
Fernando ... >> Best Regards, ... (microsoft.public.visio.general) - Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
... interested in dirty pages only for the correctness issue, ... Not if we restricted
it to root and mlocked tmpfs. ... Restricting to root doesn't buy you much, ...
UML _will_ want to get ... (Linux-Kernel)