CentOS 5 :: How To Add /sbin To $PATH

Nov 24, 2010

I have installed CentOS 5.5 x86-64 on my HP 6710b laptop and currently am in the middle of adjusting it to my needs (software/hardware development). As stated in the subject I can't add /sbin to $PATH. I have tried editing .bash_profile in my home directory and adding /sbin to PATH=$PATH:$HOME/bin, but it does not help. It's not a big problem, al though it would be much easier to use some commands (ifconfig for example) globaly.

View 3 Replies


ADVERTISEMENT

CentOS 5 Server :: /usr/sbin Not In $PATH - How To Add It

Feb 14, 2011

I just installed CentOS 5 last night. Former Debian user.I was having problems with commands like ifconfig and visudo. So naturally I ran locate and noticed that they where in /usr/sbin. Then echo $PATH and noticed /usr/sbin was not there.Should I add it to my $PATH?

View 3 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

CentOS 5 :: No Support For /proc/modules - No Such File Or Directory /sbin/modprobe -l?

May 19, 2009

i'm using Centos 5.3 (2.6.27.10-grsec-xxxx-grs-ipv4-64 x86_64 kernel) and i got a problem with installing apf/configuring iptables. It seems that my kernel doesn't support Loadeble Kernel Modules. I'm receiving following message when catting /proc/modules: Quote: cat: /proc/modules: No such file or directory /sbin/modprobe -l FATAL: Could not load /lib/modules/2.6.27.10-grsec-xxxx-grs-ipv4-64/modules.dep: No such file or directory

View 4 Replies View Related

General :: Meanings Of /usr/sbin, /usr/local/sbin And /usr/local/bin ?

Aug 19, 2011

Let's get clear with all bin and sbin folders(from filesystem hierarchy standard):

So the question is: Why there are so many directories and what are the meanings of /usr/sbin, /usr/local/sbin and /usr/local/bin?

Many programs are distributed through archives and we have to build them from source code. Usually they have makefile so it's quite easy. This process involves creating files in usr/local/lib, usr/local/bin... usr/local/whatever without creating specific folders for a given program.

I think it's not right because if we need to remove the program we have to manually delete every of its files if the program's creator didn't take care of it.

View 4 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

CentOS 5 :: [5.4] Editing PATH Variable?

Dec 8, 2009

I didn't find this question in the FAQ or through the Search button.I added a server application and would like to update the PATH env't variable so that I don't have to type the full path for its binaries. I'd like to make sure I do it right: Do I just need to edit /etc/profile or is there another file somewhere in CentOS that I should use instead?

View 3 Replies View Related

Server :: Setting Path Shortcuts In CentOS?

Sep 15, 2010

Is there a way to set a short cut so that you don't have to type out the full path to directories in CentOS? For example instead of typing out /var/log to get to log files, can you just type logs and have the OS know to cd to /var/log automatically?

View 7 Replies View Related

CentOS 5 :: Get Command Working Without Entering The Path?

Mar 3, 2011

For example, what I have now as a root user on CentOS 5.5:

# setsebool
bash: setsebool: command not found

I need to enter /usr/sbin/setsebool to get it working

The same is with some other commands:

# service httpd restart
bash: service: command not found

And so on. I know, that I need to add path somewhere, as I did it before on FreeBSD. But I don't know where?

View 2 Replies View Related

CentOS 5 :: Create Repo And Wrong Path In Primary.xml.gz?

May 24, 2010

I want to set up an installation server for CentOS 5.5, using PXE for boot, kickstart for package selection (one for server), and NFS for share all files needed.I've succesfully completed a fresh installation of CentOS5 from the DVD for one of my servers (virgil), and I've copied the anaconda-ks.cfg generated by the installer to my install server (beatrix).

Next, I've properly configured the /etc/dhcpd.conf , the /tftpboot/pxelinux.cfg/<IP_CODED> and the /etc/exports for NFS sharing on beatrix.Then, I've copied all the first DVD of CentOS5 content in this folder on beatrix: /opt/CentOS_install I've tried to start virgil from ethernet, and all has gone ok, with the kickstart and so on! But I've decided to apply the updates (new kernel, sudo, xorg, ...), so I've deleted the old rpms from /opt/CentOS_install/CentOS and copied the new ones (downloaded from http://mirror.centos.org/centos-5/5/updates/x86_64/RPMS/). So, I've launched the following commands to recreate the repodata:

root@beatrix:/opt/CentOS_install/ # mv repodata/comps.xml CentOS/
root@beatrix:/opt/CentOS_install/ # rm -fr repodata
root@beatrix:/opt/CentOS_install/ # createrepo -p -o /opt/CentOS_install/ -g comps.xml /opt/CentOS_install/CentOS

But when I try to reinstall virgil, an error message appears, telling me that a package (perl-DBI-...) isn't present in the media.After some debugging, I've noticed that in the /opt/CentOS_install/repodata/primary.xml.gz there isn't the correct path for the rpms. If you look at the original primary.xml, the "path" is like:path="CentOS/abcxyz.rpm" while in the generated file (with createrepo) the path is:

path="abcxyz.rpm".How can I recreate the repodata with the correct path information?

View 6 Replies View Related

CentOS 5 :: Remove Watch For File System Object At Path

Nov 5, 2010

Per the man page, to remove a watch, do the following: -W path.Remove a watch for the file system object at path.

View 3 Replies View Related

CentOS 5 :: Install Over Tftp/http Fails Due To Invalid Path?

May 2, 2011

I have a problem installing CentOS 5.5 over lan. I set up a dhcp3 server and it works, client got an ip. I set up a tftpd-hpa server and it works, client can boot the install image of CentOS 5.5 I set up an apache server and it seems to be impossible... In the installation marathon I clicked through the menu to the choice of the web server where my installation files are available. I enter the ip 192.168.138.1 and the path CentOS-5.5 and CentOS tells me "Unable to retrieve http://192.168.138.1//CentOS-5.5/images/stage2.img" . Thats right because the two slashes are not right. Where the hell come the two slashes from???

I edited my httpd.conf like this:

<Directory /tftpboot/CentOS-5.5>
Options Indexes
AllowOverride None
</Directory>

[Code]....

View 4 Replies View Related

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

Oct 8, 2010

I use this command:

Code:

find ./ -atime +360

to figure out the files that haven't been accessed since 360 days. The command above will return results like this:

Code:

/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc

I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:

Code:

mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext

But I want the executed command to create this path

Code:

/old-files/uploads/2010/02/

If it doesn't exist.

View 6 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

Jul 17, 2009

Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server

View 2 Replies View Related

General :: Forcing An Absolute Path Where A Relative Path Is Expected

Feb 21, 2011

I have a program that takes a relative path as input appends it to a some path string to get the actual path.

Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.

If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.

Is there some path string syntax that I am not aware of but can achieve this?

View 2 Replies View Related

General :: Deleted Path Variable - How To Return To The Original Path Value

Apr 26, 2011

Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.

View 3 Replies View Related

Red Hat / Fedora :: Appending A Path To PATH Variable Permanently?

Oct 21, 2010

how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.

View 2 Replies View Related

General :: Change Windows Path To Unix Path?

Sep 14, 2009

I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup

View 7 Replies View Related

General :: Change Absolute Path To Relative Path?

May 31, 2011

Current script:-

prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?

[code]....

How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?

View 7 Replies View Related

SUSE / Novell :: Add Path To $PATH Variable?

Apr 19, 2009

I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.

View 2 Replies View Related

CentOS 5 :: Connect To The Ftp Server - Error "buffer Overflow Detected ***: /usr/sbin/vsftpd Terminated Error:Could Not Connect To Server"

Sep 24, 2011

every time I try to connect to the ftp server I setup i am recieving this error Response:*** buffer overflow detected ***: /usr/sbin/vsftpd terminated Error:Could not connect to server

View 1 Replies View Related

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

Programming :: Can I Get Absolute Path Without Giving A "path" But Inode Number By C

Aug 13, 2010

Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?

like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com

View 7 Replies View Related

Fedora :: 12 And VMTools - The Path "" Is Not Valid Path To The Gcc Binary

Mar 23, 2010

running Windows 7 64bit with VMware Workstation 7.01-build 227600. I have some knowledge of Linux, I have installed f12 and have updated the system as of 03/22/2010. All updates completed successfully.

1) How do I install VMTools on the f12 (after mounting the CD/DVD tool package)

2) How do I update the gcc files it says are dependencies?

Here's what I get on installation:Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel

and then I am prompted for this input from the install script:

Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

and this is where I get stuck. How do I get around this or satisfy the requirements for the install?

View 5 Replies View Related

Software :: Change From /sbin/sh To /bin/bash For 'root'?

Feb 19, 2011

As I login as root, the bash is /sbin/sh. So I have problem to run script under /ect/rc3.d/myScript

So I want to change the bash from /sbin/sh to /bin/bash.

View 2 Replies View Related

Debian :: Htop Showing 50+ Processes Of /usr/sbin/console?

Jun 16, 2011

This might be nothing but when booting a computer directly into the console (tty), and running htop, I expect the list of running processes to be very short, but it turns out I have more than 50 instances of /usr/sbin/console-kit-daemon --no-daemon running (see screenshot below). Is this normal?

View 2 Replies View Related

Debian Configuration :: /sbin/ifconfig: No Such File Or Directory

Aug 2, 2010

I am using Debian Lenny as my server to host multiple databases.

Whenever, I used to add a new database, I used to add an IP address like eth0:test in the /etc/network/interfaces file.

Today when I tried to do the same, I got an error when I tried to start the interface by typing "#ifup eth0:test". I also tried to do in this way "#ifconfig eth0:test up" but both of then yielded the same error saying "/sbin/ifconfig: no such file or directory".

The path is valid and the files are also present there. There are ifup, ifdown, if and ifconfig files in the /sbin directory. I also checked the permissions which is root:root. But still I cannot find the problem.

View 9 Replies View Related

Fedora :: Yum Update Produces /sbin/grubby Error

Jul 14, 2010

I got this upon installation of the new kernel:

Code:

And then, on the Cleanup phase:

Code:

My question is, am I going to have issues on reboot, and if so, is there anything I can do to prevent them?

I'm a bit loose on what, specifically, grubby does other than what yum info tells me:

Code:

View 8 Replies View Related

OpenSUSE :: Unable To Run The Command '/usr/sbin/ipblock Start_gui

Apr 29, 2011

System responds (i'm translating from Italian):

"Unable to run the command '/usr/sbin/ipblock start_gui"

I checked directory /sbin, but there is no track of this "Ipblock star_gui". I have a Suse 11.4 updated system.

View 1 Replies View Related

OpenSUSE Install :: /sbin/boot:no Such File Or Directory

Feb 1, 2010

I have a problem when booting my pc.I uninstaled bootchart and since then kernel goes to panic..saying /sbin/boot:no such file or directory..I followed the Repair Installed System from my dvd but it fails at the end and it just reboots the system..Is there any way to baypass this problem without reinstalling the OS?

View 9 Replies View Related







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