LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-19-2004, 09:47 AM   #1
nukeu666
Member
 
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80

Rep: Reputation: 15
cant run 'cc' as root also


the previous admin of this comp made sure that the 'cc' command couldnt be run on the comp...
it got banned for root also and i dunno where to reset the settings....
any help?
 
Old 11-19-2004, 09:49 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Code:
which cc
ls -l /path/to/cc
 
Old 11-22-2004, 09:09 PM   #3
nukeu666
Member
 
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80

Original Poster
Rep: Reputation: 15
when logged in as a normal user this comes
/bin/bash: /root/.bashrc: Permission denied
<message>

when i type 'cc' as root only the <message> comes

the root/bashrc doesnt have anything restricting 'cc'
 
Old 11-22-2004, 09:27 PM   #4
hutuworm
Member
 
Registered: Aug 2004
Posts: 130

Rep: Reputation: 15
Quote:
Originally posted by nukeu666
when logged in as a normal user this comes
/bin/bash: /root/.bashrc: Permission denied
<message>

when i type 'cc' as root only the <message> comes

the root/bashrc doesnt have anything restricting 'cc'
run cc in full path:
`which cc`
 
Old 11-23-2004, 09:01 AM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Quote:
/bin/bash: /root/.bashrc: Permission denied
^^ do you know why you get that error? --what is trying to source that file?

try (as normal user, from ~):
cat .bashrc
 
Old 11-23-2004, 07:06 PM   #6
hutuworm
Member
 
Registered: Aug 2004
Posts: 130

Rep: Reputation: 15
He don't have right permission to excute the .bashrc file.

Quote:
Originally posted by secesh
^^ do you know why you get that error? --what is trying to source that file?

try (as normal user, from ~):
cat .bashrc
 
Old 11-23-2004, 07:14 PM   #7
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
oh really? perhaps that's why it says permission denied... hmm... and i suppose you'll also tell me he doesn't have permission because it's in root's folder.... thanx.

but my point was to direct attention to the fact that he has a script trying to source that file, and that is the problem...
 
Old 11-23-2004, 07:25 PM   #8
hutuworm
Member
 
Registered: Aug 2004
Posts: 130

Rep: Reputation: 15
Yes, when user login, it will excute /etc/profile & /etc/bashrc & ~/.bash_profile & ~/.bashrc in default, if the user's shell is bash.
 
Old 11-24-2004, 07:35 AM   #9
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
ok, my sarcasm is apparently lost on you...

one problem is something is apparently trying to 'source' or 'load' root's .bashrc -- this will not work as a normal user, because they will not have access to root's folder!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to locate 'cc' utility in path SEATU Linux - Newbie 2 10-05-2005 12:22 AM
How to install 'cc' on RHL9 ryanw Linux - Software 2 01-11-2005 02:21 PM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 11:55 AM
Problem with 'cc' while building/installing gcc 3.4.0 linuxalien Programming 1 05-06-2004 03:18 AM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 AM.

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
Open Source Consulting | Domain Registration