LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-12-2005, 07:55 AM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,580

Rep: Reputation: 55
/sbin path


what line in user .profile do I put to make a PATH to /sbin for user.

Jim
 
Old 11-12-2005, 08:07 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,608
Blog Entries: 15

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
There is no required place for it but I'd suggest putting PATH variable near the beginning so that if you call any commands later in .profile they'll already be in the PATH. Note that case is significant in Unix/Linux so you must put it as "PATH=" rather than "path=".

Note that PATH is initially set in /etc/profile which is read by all users. The .profile in your home directory is used to supplement or replace those settings. Typically within the .profile rather than doing: "PATH=/bin:/usr/bin:/sbin" you'd do something like "PATH=$PATH:/sbin". The first syntax would make it replace whatever /etc/profile had put in PATH and the latter would make it ADD to what was in PATH already. (Afer defining a variable you reference it with $ prepended to the name so "PATH=" defines it but all references afterwards must say "$PATH" rather than just PATH.)

You can find out what your PATH is currently set to by typing:
echo $PATH

Finally if you're using bash (which is default shell for Linux) you may have some settings in .bashrc as well as .profile.
 
Old 11-12-2005, 08:21 AM   #3
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,580

Original Poster
Rep: Reputation: 55
Thanks , that was what I was looking for.

jim
 
Old 11-12-2005, 09:12 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,608
Blog Entries: 15

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
No problem. Glad I could help.

Quote:
Me and my HoundDog "Redneck Linux"
Can you or your dog really be a redneck if you're north of the Mason-Dixon line?
 
Old 11-12-2005, 09:32 AM   #5
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,580

Original Poster
Rep: Reputation: 55
Evidently your not aware of all the transplanted southerns living in the north, working in the manufacturing plants.
Didn't you know there are more West Virginia's living in Akron, Ohio than in West Virginia.
I don't where you live, but there are a awfully lot of people living in big cities on the right and left coast that really need to get out and see
the rest of America, we are the most diversified nation in the world.
For instance my Hound Dog is a Kentuckian and my family are Virginia's living in Indiana, can you beat that ?

Jim
 
Old 11-13-2005, 08:53 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,608
Blog Entries: 15

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
It was meant as a joke. The little sticking out tongue smiley should have been a clue.

Odd that you mention West BY GOD Virginia - I lived in Wheeling for 10 years.

I was born in MD and have lived and worked in FL, AL, TN, TX, NC & GA not to mention the island of Grenada in the West Indies. I take regular road trips so have visited all but 5 states not to mention flights to St. Thomas and Puerto Rico (US Possessions) and have also been outside the US to Bermuda, Mexico, Canada, Germany and even lived 5 weeks in India. I'd say all that qualifies as "getting out and seeing".

By the way the post shows I live in Atlanta just as yours shows Indianappolis. I don't really believe the South has more rednecks just making a joke based on the stereotype as I mentioned. I agree this is a wonderfully diverse country and I enjoy my periodic pilgrimages to see other parts of it even if folks find my accent quaint from time to time. (Funny thing is everywhere outside the South they think I have a Southern accent but here they think I have a Northern one - I've even been asked if I was English once apparently because I was able to form a sentence properly.)
 
Old 11-13-2005, 11:37 AM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,580

Original Poster
Rep: Reputation: 55
I knew that, The way I came across , I'am sure you thought I was serious, but I was joking also.
You know most people don't know where the MasonDixion line is. North of Md.
Have a great day.

Jim
 
Old 11-13-2005, 12:32 PM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,608
Blog Entries: 15

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
OK Mickey. Interestingly enough Wheeling and most of the northern panhandle of WV is above the MasonDixon line but most of the state is below it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin path jstephens84 Fedora 3 11-16-2005 12:14 AM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
$PATH for root to /sbin mickeyboa Fedora 6 01-15-2005 11:07 AM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM
/sbin path not included alaios Linux - Software 3 03-13-2004 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration