Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > sudo does not read 'make.conf'

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-15-2009   #1 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 292
sudo does not read 'make.conf'

Hi,
I have a strange problem with 'sudo'. In my system (if it is not universal feature) I cannot read '/etc/make.conf'. It says 'Permission denied'. I then tried to read with 'sudo' command. But even for 'sudo' it gives the same error. I then did a 'su'. With root login I could read the file.

So, my question is, is 'sudo' any less privilaged than 'su' inspite of assigning ALL=(ALL) ALL to my 'sudo' account?

I tried googling but no help with my problem. Can any of you simulate it on your gentoo system and confirm please?
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline  


Reply With Quote
Old 06-15-2009   #2 (permalink)
Linux User
 
hazel's Avatar
 
Join Date: May 2004
Location: Harrow, UK
Posts: 492
You should be able to read make.conf without using sudo. My make.conf has permissions rw-r--r--. Have you tried doing
Code:
ls -l /etc|grep make
to find out what the permissions are?
__________________
"I'm just a little old lady; don't try to dazzle me with jargon!"
hazel is offline   Reply With Quote
Old 06-15-2009   #3 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 292
No, my problem is not reading the file. My interest is to know how/why 'sudo' and 'su' behave so differently when ALL=(ALL) ALL is set for the sudo account. With that permission, sudo is same as root isn't it? How come I cannot read a file (even if system file) with sudo?
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Old 06-16-2009   #4 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
what does
Code:
sudo -l
report?
Jonathan183 is offline   Reply With Quote
Old 06-17-2009   #5 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 292
Code:
saivin@SV-V1400 ~ $ sudo -l
User saivin may run the following commands on this host:
    (ALL) ALL
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Old 06-17-2009   #6 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 292
Ok, ok, now its working. I'm able to read the make.conf with 'sudo' too. Don't know what happened. The otherday it was not opening and today its working... strange...
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:56 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2