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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-19-2004, 09:47 AM
|
#1
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Rep:
|
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?
|
|
|
11-19-2004, 09:49 AM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
Code:
which cc
ls -l /path/to/cc
|
|
|
11-22-2004, 09:09 PM
|
#3
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Original Poster
Rep:
|
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'
|
|
|
11-22-2004, 09:27 PM
|
#4
|
Member
Registered: Aug 2004
Posts: 130
Rep:
|
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`
|
|
|
11-23-2004, 09:01 AM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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
|
|
|
11-23-2004, 07:06 PM
|
#6
|
Member
Registered: Aug 2004
Posts: 130
Rep:
|
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
|
|
|
|
11-23-2004, 07:14 PM
|
#7
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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...
|
|
|
11-23-2004, 07:25 PM
|
#8
|
Member
Registered: Aug 2004
Posts: 130
Rep:
|
Yes, when user login, it will excute /etc/profile & /etc/bashrc & ~/.bash_profile & ~/.bashrc in default, if the user's shell is bash.
|
|
|
11-24-2004, 07:35 AM
|
#9
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 01:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|