Debian :: Alter The User's Environment Path?

Feb 2, 2011

what the correct way is to add '/sbin' to my users environment path which is not present when I run the command 'env'?

Code:

carlos@db1:~$ env
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.1.115 35495 22
SSH_TTY=/dev/pts/0

[code].....

I would like to add /sbin to all future user's I create with 'useradd' and including my already existing user account above. Can someone tell me the correct way in Debian to change my current user environment to have /sbin in their path as well as how to add this for all future users? I looked at /etc/profiile and there are two lines that look relivant:

Code:

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else

[code]....

I'm guessing the 2nd PATH line is for users and the 1st one is for root, right?

View 3 Replies


ADVERTISEMENT

Debian :: Setting PATH Environment Variable

May 19, 2015

I have been trying to change my PATH environment variable to no avail. I am using Jessie i386 with MATE. Using my .bashrc file works but not well because with subshells the modifications get repeated. I want the change to occur on login.

I tried modifying ~/.profile ~/.bash_profile /etc/profile and /etc/environment and one or two others but in no case did my change get picked up even after logging out and in again and even after rebooting. I searched the Internet and found each of the above places to make the change but they don't seem to work with Jessie.

Where do I make the necessary change?

View 7 Replies View Related

Debian Configuration :: Setup PATH Environment Variables?

Jan 8, 2011

I edited /etc/profile to look like:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then

[code]....

When i type env, it just shows: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin It also shows JAVA_HOME, CLASSPATH and others were set up. Trying to get updatetool in glassfish usable for any user and during any session. I did the export command in a shell, and it worked, but not after closing the session. how to do environment variables.

View 3 Replies View Related

Debian Multimedia :: HTTP Path To IP Camera Including User And Password

Jan 30, 2015

I have a ELRO C903ip.2 camera. I want to use it on zoneminder but am having trouble connecting. I have set a basic account of visitor with username and password both set as visitor.

The question is what is the syntax to the cameras ipaddress via http passing the u/n and p/w at the same time as part of the http string? I have tried the web page: [URL] .... to no avail, i must be missing something pretty obvious but just can't see it for looking.

View 2 Replies View Related

Ubuntu :: PATH Environment Variable?

Oct 20, 2010

I have just installed Ubuntu onto my machine and my question is if it automatically comes with the PATH environment variable?If so, how do I add something such as python.exe to the PATH environment variable?

View 2 Replies View Related

General :: Set The PATH Environment Variable?

Apr 25, 2011

set the PATH environment variable?

View 4 Replies View Related

Ubuntu :: /usr/games' Is Not Included In The PATH Environment Variable

Dec 6, 2010

I get this every time I try to run a game eg pacman Command 'pacman' is available in '/usr/games/pacman' The command could not be located because '/usr/games' is not included in the PATH environment variable. pacman: command not found

View 4 Replies View Related

Networking :: PATH Environment Variable To Be Updated In Apache?

Jan 21, 2011

I want to know from which configuration file , will apache take the environment variables ? In one of the test.php file , I added phpinfo() and saw that, PATH variable shows :

PATH/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/bin:/usr/java5/jre/bin:/usr/contrib/bin:/opt/freeware/mysql/bin

I want to add another path in this PATH variable. I tried to edit the /etc/environment file , ~/.profile file , stopped and started the apache server (httpd) , but still I am not able to see the PATH variable updated . Can anyone please help me out to know where should I make the changes to get the PATH variable updated ?

View 2 Replies View Related

Ubuntu :: Gnome 3 Application Not Launching Because Of Path Environment Variable?

Apr 26, 2011

I am using gnome 3 and I installed neverputt from the repos, and when I click the icon in applications, it doesn't launch. Running it from the terminal gives:

Code:
Command 'neverputt' is available in '/usr/games/neverputt'
The command could not be located because '/usr/games' is not included in the PATH

[code]....

View 6 Replies View Related

Debian Installation :: Change Ramdisk Files To Alter Repository?

Mar 14, 2011

Once I've booted my Etch install disc, are there some parameters in configuration files I can edit in the ramdisk filesystem that will allow me to install Squeeze instead? Or, even, paramters I can edit to point at the archive.debian.org repository to install Etch?

Why:

I've got a Sun Ultra10 with IDE drives (hard disk and cd drive) on which I previously had Etch installed. I recently tried to upgrade it to Squeeze, botched the upgrade, and formatted the drive. I'm now trying to install Squeeze from scratch.

When I use the Squeeze disc (debian-6.0.0-sparc-xfce+lxde-CD-1.iso), it cannot detect my IDE drives. I also have the disc I originally used to install Etch, way back when. It will boot and detect the drives, but cannot install because Etch is no longer in the repositories.

View 2 Replies View Related

Debian Multimedia :: Alter Audio Volume Whilst Playing A Game?

Oct 25, 2010

I have a Dell laptop and have multi-media buttons, some of which control the audio volume. But once a game is running like Sauerbraten, I cannot control the volume. The controls within the game are relative to the master volume, so if the volume is too low, I have to exit the game to adjust it.

View 1 Replies View Related

Programming :: Create A User For Php/MySQL Under Ms Win Environment?

Jun 30, 2010

create a user for php/MySQL under ms win environment?

View 1 Replies View Related

Ubuntu :: How To Set Python Path For Root User

Aug 11, 2010

How do I set the PYTHONPATH for the root user only? Or at least add to the python path for the root user? I need to read from the /var/log/apache2/access.log in my python script, so I need to use sudo for my script to be able to read from it.I tried setting the PYTHONPATH in /root/.bashrc but that didn't work. I don't want to use a .pth file because I don't want the directory to be on the path for all users due to import collisions.

View 6 Replies View Related

General :: Existence Of USER Environment Variable In The Shell?

Jan 28, 2010

I heard (although I can't find any sources for proof) that the USER environment variable may not be set in a old Unix shells (maybe even some obscure shells as well). What is the probability that it won't be set?

View 2 Replies View Related

General :: Set Environment Variables For A Particular User On C Shell Configurations?

Jun 2, 2011

I have been give a task of replicating one of our production systems to create a test system. I have been restricted to use c shell to set up its environment variables. I am new to this my questions is how do i set environment variables for a particular user on c shell e.g ORACLE_HOME and ORACLE_SID permanently for a particualar user i know in bash you edit the .bash_profile file. What do i do for c shell?

View 2 Replies View Related

OpenSUSE :: Checking For Javah In User's PATH... Not Found?

Jun 26, 2010

I try to install some scientific software from source and get the following warning, when I run ./configure:
...

checking for javah in user's PATH... not found
checking for javah in known locations... not found
configure: WARNING: Invalid JNI include dir, exit!

[code]....

View 5 Replies View Related

Ubuntu :: Bash Script, Take User Input Then Use It As A Path?

Jan 29, 2011

I'm trying to make a script to make it quicker to encode videos.

Code:
#!/bin/bash
echo "Type the path of the video file"

[code]....

View 9 Replies View Related

General :: Getting The Option To Show The Full User Path

Jan 21, 2010

- When using SU - , I need the option to show the full user path (root user, home dir, etc..), not just root@name. Is there one?

-If not in sudoers file, how can a user get in to edit a file for example. Is that possible?

-Does service ssh restart disconnect users?

View 6 Replies View Related

Red Hat :: Setup User's PATH Env When Sudo Command In RHEL5 ?

Dec 16, 2008

In RHEL5, the PATH of root is /sbin and /usr/sbin...., the PATH of common user has not /sbin or /usr/sbin, how to give the /sbin and /usr/sbin to a common user when he run command which sudo?

View 3 Replies View Related

General :: Network Login Brings In User Environment To Any Machine

Mar 3, 2010

In this article about Sun, the author talks about how using a Sun network meant that you could log onto any computer on a network and all of your personal tools and settings would be there. Is it possible to set up something like that with a Windows network? How about Linux?

View 2 Replies View Related

General :: How Important Is 'CLUE' / Command Line User Environment?

Oct 16, 2010

I have read many articles by eminent Linux users who laugh off, when they are asked "is a command line knowledge necessary"?. They go on to say that Linux Distros have evolved so much that the GUI is sufficient! I use my Win.desktop for 1)checking the news, 2)checking my e-mail, 3)writing a blog, 4)Listening to music, and 5)since i am a consultant physician, with specialization in diabetology,keeping up with the trends by visiting a few professional websites! So, my needs are few!Which Distribution would you suggest to a completely Linux-ignorant person,and that's me!

View 14 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.

[Code]...

1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

OpenSUSE :: Cron Doesn't Load User Path Variable

Oct 15, 2010

I set up some scripts n crontab and I found that the scripts are failing because cron seems not to load my user PATH variable. Is there any way to tell cron to load my PATH variable?

View 2 Replies View Related

Ubuntu :: Broken Path To User Shell - Can't Complete Login

Jun 9, 2011

I inadvertently typed the wrong path when changing my user login shell and now every time I log in I get a message stating that it can't find the shell and boots me off the system. It will then redisplay the login prompt. I'm running Ubuntu Server x64 in VMware Workstation.

View 1 Replies View Related

Red Hat / Fedora :: Permanently Adding File Location To User Path?

Aug 20, 2010

I have added the smbd file location to the path of root. I can now execute it from any location. I noticed after reboot of the machine (RHEL 5) that this file location is no longer in the path. How do I make this permanent?

View 1 Replies View Related

CentOS 5 Networking :: How Do I Set Sbin In Default Path For Non Root User

Jun 25, 2009

I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.

View 10 Replies View Related

OpenSUSE Hardware :: Can't Load User's Graphical Environment After Nvidia Driver Installation

Jul 20, 2011

I have my first problem with drivers in Linux! I installed openSuSE 11.4 x86 on my computer (Intel Dual-Core 2,5 Ghz; Nvidia 7300 GS) and after installing graphical drivers (proprietary) I can't load the system. All I have is a progress bar of user's profile loading and playing the startup sound. I already installed openSUSE 11.4 x86_64 version on this computer and there was no problem with drivers.

View 8 Replies View Related

Software :: Pass To Shell Environment As Regular User / Will It Apply To Builds Ran Under Sudo?

Jan 17, 2011

If I pass to my shell environment as a regular user will it apply to builds ran under sudo?I posted a thread similar to this regarding a build with TOR; however, this is applicable to all programs.

View 6 Replies View Related

General :: Write A Shell Script Which Will Read The Directory Path As Input From User?

Nov 28, 2010

I am new to writing shell scripts. So, please bare with me. I am currently trying to write a shell script which will read the directory path as input from user and will traverse the Dir tree to find all available audio and video files. I have tried to write as much as I could but I don't know where I am making mistake as I get some files to be audio file which are actully tar balls. On the second note there are some files which video but script shows them to be audio. And, some video files are completely skipped. I am giving the shell script below so that you can see. I am using two external files as source which I am attaching.

Code:

#!/bin/bash
#Let's load the extensions that we want to search for
vdExt=$(cat vdExtList)
adExt=$(cat adExtList)

[code]....

View 5 Replies View Related

General :: How To Alter Mic Settings

Oct 16, 2010

I am using Messenger on Acer Aspire One and i only just realized that when i am on web cam/ video call people can hear me.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved