[Bug 18574] Re: /etc/environment lacks man page.
** Changed in: manpages (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Oops, dumpling. Sorry. I have no write access to revert me changes. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
The point here is that /etc/environment is a pam_env(8) thing. The pam_env(8) page documents /etc/environment, but users can't easily discover that information. There needs to me a man page "link" , environmen(5), that points to pam_env(8). I filed this report to get that fixed: https://fedorahosted.org/linux-pam/ticket/55 ** Bug watch added: fedorahosted.org/linux-pam/ #55 https://fedorahosted.org/linux-pam/ticket/55 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Also, given a file /etc/foo then one would expect foo to be the name of the man page; not bar. Thus environment(5), not environ(7). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
No, environ(7) documents the "char **environ" symbol that program can expect to find and that contain environment variables. That's not connected to environment(5) that describes a file format for a file that contains environment variables, e.g. are comments allowed. Other problems stated by this bug would also not be fixed by saying environ(7) is the solution, e.g. is /etc/environment owned by a package yet. Can someone with the rights please set this back Triaged. ** Changed in: manpages (Ubuntu) Status: Invalid => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
The valid page is environ.7, which exists. LANGUAGE variable is not described by environ.7, but it’s an other problem treated in the bug : #311558. ** Changed in: manpages (Ubuntu) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/18574/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
I've done a little reading and it appears /etc/environment is indeed a configuration file for Linux-PAM man PAM("PAM" must be in capitals "pam" is something else) Also had a look at Linux-PAM System Administrators Guide http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_env.html which states that pam_env.so passes the lines in /etc/environment So when is the pam_env.so loaded? PAM configuration is in /etc/pam.d/ or /etc/pam.conf (the latter is ignored if the former is present) My Ubuntu system (10.4 upgraded from 6.4) uses /etc/pam.d/ Of the files in this directory atd, cron, gdm, gdm-autologin, login & su require pam_env.so so, going by the names of these config files, I'm guessing that pam_env.so, which loads /etc/environment, is run when gdm is started and at login, perhaps even when cron and atd are run? I can confirm that /etc/environment is read and the variables set at login and/or su login, but I don't have time right now to test cron or atd, and don't know how to test gdm or gdm-autologin Hope this helps answer the original question somewhat but I agree it would be nice to know how to execute pam_env.so manually. One limitation to /etc/environment though is that it is NOT a shell script - it is a config file - and therefore putting the following doesn't work: scripts_path='/mnt/config/scripts' start_stop_scripts="$scripts_path/start-stop" script_logs="$scripts_path/script_logs" this results in echo $script_logs $scripts_path/script_logs rather than echo $script_logs /mnt/config/scripts/script_logs For this reason I'll probably just put source /mnt/config/scripts/myenvar at the end of /etc/bash.bashrc even though https://help.ubuntu.com/community/EnvironmentVariables says it's not recommended. Then include all my custom global variables in /mnt/config/scripts/myenvar P.S. I can see why Debian has decided to separate out local variables from /etc/environment as it's not very intuitive to set environment variables through an authentication system. I hope the trend continues and we'll eventually get a standard set of configuration files that all (or at least all compliant) programs reference. :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. https://bugs.launchpad.net/bugs/18574 Title: /etc/environment lacks man page. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Confirmed same output in Maverick. lsb_release -rd Description:Ubuntu maverick (development branch) Release:10.10 apt-cache policy manpages manpages: Installed: 3.24-1ubuntu1 Candidate: 3.24-1ubuntu1 Version table: *** 3.24-1ubuntu1 0 500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages 100 /var/lib/dpkg/status -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
still in lucid $ dpkg -S /etc/environment dpkg: /etc/environment not found. $ man environment No manual entry for environment -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 18574] Re: /etc/environment lacks man page.
On Tue, Sep 14, 2010 at 07:37:27PM -, rusivi1 wrote: > Does this issue occur in Lucid? Goodness me. Is it so hard to check for the presence of a man page before asking the reporter? Please don't ask for confirmation of bugs you can check for yourself. status triaged ** Changed in: manpages (Ubuntu) Status: Incomplete => Triaged -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Thank you for posting this bug. Does this issue occur in Lucid? ** Changed in: manpages (Ubuntu) Status: Confirmed => Incomplete -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Still in 9.10 Karmic Koala. In addition, LD_LIBRARY_PATH can't get loaded from /etc/environment since Jaunty, see bug #366728 -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
In a discussion on a Java application, there was a tip on checking the /etc/environment file (https://bugs.launchpad.net/ubuntu/+source/freemind/+bug/212588). I have the file, but have never changed it myself. It is not owned by a package. I don't dare to change it manually. What if my changes are bad? Perhaps not now, but later on, when my changes are inconsistent with some future policy? I need to know the proper way to change the file; which environment variables that are OK to put there and which are not. In which circumstances was the file written to begin with? -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
still in jaunty Note: OpenBSD does not consider missing man pages on configuration files to be minor, which is why I continue to enjoy sysadmin under OpenBSD more so than Ubuntu. This is a sysadmin papercut: a minor defect that could be easily fixed which griefs nearly everyone who has to figure out a permanent place to put JAVA_HOME from what I can tell reading the forums. >From https://help.ubuntu.com/community/EnvironmentVariables /etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings. Does not explain when this file is read, as per the original bug report. And another thing. My preferred shell is zsh, not bash. It would be nice if some of the docs were less bash specific. -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
still in hardy -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
Interesting part from /usr/share/doc/belocs-locales-bin/NEWS.Debian.gz: > * Locale variables are now stored in /etc/default/locale and no more >/etc/environment. The reason is that Debian Policy forbids modifying >configuration files of other packages, and /etc/environment is a >configuration file for PAM. >Make sure to remove old definitions from /etc/environment, this file >is no more modified for the reason explained above. So the owner should be pam. locales should not be stored there, but this is still neccessary (e.g. for gdm). Still in gutsy. -- /etc/environment lacks man page. https://bugs.launchpad.net/bugs/18574 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
And feisty. -- /etc/environment lacks man page. https://launchpad.net/bugs/18574 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
And Edgy. -- /etc/environment lacks man page. https://launchpad.net/bugs/18574 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 18574] Re: /etc/environment lacks man page.
This is still an issue on 6.06. ** Changed in: manpages (Ubuntu) Status: Unconfirmed => Confirmed -- /etc/environment lacks man page. https://launchpad.net/bugs/18574 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs