Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

128

.bash_profile and .bashrc are specific to bash, whereas .profile is read by many shells in the absence of their own shell-specific config files. (.profile was used by the original Bourne shell.) .bash_profile or .profile is read by login shells, along with .bashrc; subshells read only .bashrc. (Between job control and modern windowing systems, .bashrc by ...


47

.profile .profile is for things that are not specifically related to Bash, like environment variables PATH and friends, and should be available anytime. For example, .profile should also be loaded when starting a graphical desktop session. .bashrc .bashrc is for the configuring the interactive Bash usage, like Bash aliases, setting your favorite editor, ...


39

% reg.exe delete HKCU\Software\Microsoft\Office\15.0\Outlook\Profiles\Outlook /f % reg.exe add HKCU\Software\Microsoft\Office\15.0\Outlook\Profiles\Outlook This will delete the default profile called Outlook, and then recreate it with no settings. Then when you re-run Outlook, it will launch the wizard.


27

According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells. So, what is a login or non-login shell? When you login (type username and password) via console, either sitting at the machine, or remotely via ssh: .bash_profile is executed to configure your shell before the initial ...


6

begin the shell script with: #!/bin/bash -l This causes bash to start as a login shell, which means it will read /etc/profile and ~/.bash_profile.


6

To generate a new profile along with renaming the user profile folder, you also need to remove the profile from the registry. This is found in HKLM/software/Microsoft/windows nt/current version/profilelist Scroll through until you find the correct username. Delete this string and then log back onto the computer with the account and it will create a new user ...


4

We have found that redirecting as many folders as possible greatly reduces the amount of data that ends up the profile. I would be reluctant to redirect appdata though, you may want to test that. Personally, I think that a terminal server that will need to support many users needs to have a huge C:\ partition. This is especially true if not redirecting ...


4

Your question doesn't make a whole lot of sense in its current form. From what I can ascertain, you have roaming profiles or mandatory profiles configured and a profile that works on XP doesn't work on Windows 7. This is because Windows 7 (and Vista and Windows 8 as well) use a new profile structure. You cannot use XP-era profiles with Vista, 7, or 8 ...


3

Likely the user who created the workstation image forgot to remove their profile before sysprepping. This is even more likely the case since the time it was created is the exact same on all machines.


3

Reset the key under HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\ for first run from False to True.


3

Using bind only makes sense in a interactive shell. In somescript.sh check if the shell is interactive and only run bind if it is. For example, if [ -n "$PS1" ]; then bind -x '"\e[M":'$'"ls -l"'; fi


3

~/.zprofile is only sourced when zsh is run as login shell, e.g. when logging in on the console or via SSH. It will not be sourced by zsh when opening a new terminal or starting a new zsh session from within a running session. Anything you need in all interactive sessions, should be set in ~/.zshrc. Anything you need in all zsh sessions, including scripts, ...


2

You should seriously consider Homebrew


2

AD's LDAP does indeed already have fields for all of those things you're asking for. You just have to write a webpage that can query and display in the fashion you want. Although what you're showing in that screenshot is something from SharePoint, which if you already have, why build your own?


2

I use: Orca - http://www.orcaware.com/orca/ Munin - http://munin-monitoring.org/


2

Set SHELL on your crontab: SHELL=/bin/bash * * * * * # your_job


2

Since I asked this question we've moved off 2003 and are using User Profile Disks with 2012r2 (they were introduced with 2012): The simpler way is user profile disks. User profile disks store user and application data on a single virtual disk that is dedicated to one user’s profile [...] User profile disks provide an easy way to store the user settings ...


2

The default Ubuntu ~/.bashrc will overwrite any earlier values of PS1 which is what you're seeing. You could make PS1 read only declare -r PS1=... but this will cause the default ~/.bashrc to emit -bash: PS1: readonly variable which may not be desirable. You can edit /etc/skel/.bashrc to remove the lines that set PS1 so that new users will not get ...


2

Solved: It's CATALINA_OPTS not JAVA_OPTS. The HOWTOs are wrong. Reference: Tomcat Docs Regarding Profiler


2

You may have a scheduled task set to run as that user on all the machines at the same time. The task could have been set up by Group Policy perhaps?


2

If your workstations are domain joined and you have access to modify group policies then all of this can be specified in GPO; Computer Configuration | Policies | Administrative Templates | System | User Profiles Alternatively you should look at delprof2 (https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/), this will do what you need. ...


2

This is actually intended behavior; ksh automatically logs all function definitions in the history file. This option can be turned off with the "nolog" option: set -o nolog


2

When a temporary profile is created, is it just a copy of the "Default" profile folder? If so, can I simply add the file I need to the default profile folder, and have new temporary profiles get a copy of that file? Yes. Tested and verified on Win 7 SP1. For future work I'd strongly encourage setting up a test environment. even if you're short on ...


2

I would use Mandatory profiles which don't require a profile to be setup during every logon. They also have the added benefit of not saving anything between sessions.


1

You can check out Google Chrome for Business http://www.google.com/intl/en/chrome/business/browser/ This support document from Google, may help better guide you and answer any additional questions. http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=187948


1

As your goal is to prevent the system volume of your sever from filling up, I'd suggest the following as an alternative to restricting profile sizes (which I'd always try to avoid if possible) Configure roaming profiles with folder redirection. This will off load the bulky storage areas (Desktop, My Documents) to a file share on another server. With roaming ...


1

Of course you can build your own. They built their own, right?


1

The temporary user profile is loaded whenever the user's own profile cannot be loaded - i.e. due to permission problems or disk space issues. However, there is no need to abuse the temporary user profile to get a locked-down user configuration. Making a user's profile mandatory would prevent any changes to be saved as well, but still allow the administrator ...


1

Had the same problem. See http://social.technet.microsoft.com/Forums/windowsserver/en-US/95c8635c-76fa-47ff-a03c-a44d1e9a599b/server-2008r2-the-user-profile-service-failed-the-logon-user-profile-cannot-be-loaded?forum=winservergen. The solution listed on Microsoft Technet was to check that all privileges on files and folders in c:\users\default were correct. ...


1

Are you just trying to fix the mail profile? Navigate to Control Panel and then click the "Mail" icon. From there do "Show Profiles" and what I would do is click "Add...". Create a new profile with the information to your mail server and then click "Always use this profile" and select the new profile from the drop down menu.


Only top voted, non community-wiki answers of a minimum length are eligible