In the sudoers file, how can I use multiple Tag_Specs on the same line.
Normally if I don't want to ask for a password I will do something like this:
who where = (aswhom) NOPASSWD: commands
I want to use the SETENV tag so that users can preserve environment variables.
I am writing a shell script, to read a file which has key=value pair and set those variables as environment variables. But I have a doubt, if I do source file.txt will that set the variables defined in that file as environment variable or I should read the file line by line and set it using export command ?
Is source command in this case different than export?
From the lfs doc:
The exec env -i.../bin/bash command in the .bash_profile replaces
the running shell with a new one with a completely empty
environment, except for the HOME, TERM, and PS1 variables. This
ensures that no unwanted and potentially hazardous environment
variables from the host system leak into the build environment.
Just to clarify: I know we can set environment variables with export command like
export JAVA_HOME=/usr/lib/jvm/..
For environment variables, we need to use '$' sign in starting and we can not explore the path further using 'tab' key.
I have OSX 10.8.2 with ZSH as my shell and iTerm as a terminal (don't know if the last thing is relevant).
All, I need to set environment variables in my ~/.profile since I am running a program (QtCreator) that doesn't start a bash shell.
I cannot for the life of me get it to work though. QtCreator will not show any of the environment variables I defined under "System Environment."
Could anyone offer any advice?
Hi, I'm installing 12.04 on a new machine. I've been using 8.04. In 8.04 I accessed my windows manager (either gnome or fvwm) from the command line, using startx. In this setup I was able to set a number of environment variables, which were utilized in my startup script. But 12.04 boots to a GUI, which is nice, but I can't set my environment variables.
Is there a way to change the network proxy settings from a C program that runs in a terminal window?
I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment.