LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2013, 07:51 PM   #1
funkymonkey89
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
permission denied on everything involving su and sudo.


Hi,

Im using fedora 10 on a g4 mac. Im having some very frustrating problems.
1st- i can no longer use the command "su" when i try it ask for my password i enter it correctly and then it says /var/log: permission denied.
Something goes when i enter "gpasswd" or even try to enter chmod command to change permission.
2nd- i can't use sudo because i cant add my username funkymonkey to sudoers because when i try i get to add it i get denied permission. Ive tried everything i can think of. Im still fairly new to this so i tried everything ive learned so far. So can aybody with so experience please help me
 
Old 08-29-2013, 08:19 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Fedora 10 reached end of life over four years ago. Consequently, it is unsupported and can no longer receive security and other updates.

It might be time to look at something else.

Regarding your problem, what is the output of ls -l /var and ls -l /var/log?
 
Old 08-29-2013, 08:32 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
This is a duplicate of the post here and should be merged, or whatever.

To OP - you are new here, but you should not post the same question multiple times in different forums per the LQ rules.
 
Old 08-29-2013, 08:41 PM   #4
funkymonkey89
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I tried ls -l/var it says it doesn't recognize command. Yea i know its out to date but its all I have. Cant really get anything else built it from scratch and until im able to update my os just trying to keep it going. Pretty much im trying to put my username in the sudoers so i can use sudo. Because fedora 10 sucks so bad they dont let you log onto root its self. You have to use su or sudo.
 
Old 08-29-2013, 08:54 PM   #5
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
ls -l/var
the way you used the command its should say not recognised... ls -l /var the correct way.

Quote:
Because fedora 10 sucks so bad they dont let you log onto root its self. You have to use su or sudo.
linux Distros since a long time has this feature, it is beacuse of PAM authentication they use and therefore GUI login to root is disabled however you can login via terminal.
so if disable PAM authentication where it says something like " !root silent" you have it done.
 
Old 08-29-2013, 08:57 PM   #6
funkymonkey89
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
How would i go about disabling the PAM authentication then. Thanks your a big help for the tip
 
Old 08-29-2013, 09:07 PM   #7
funkymonkey89
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
On ls -l /var/log it says permission denied on everything going down the list total 0

On ls -l/var it says total 68
 
Old 08-29-2013, 09:18 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by funkymonkey89 View Post
On ls -l /var/log it says permission denied on everything going down the list total 0

On ls -l/var it says total 68
ls -l/var is not valid so the total it shows is really meaningless. But I would expect it to say "Invalid option" instead.

ls -l /var is valid, but apparently /var permissions do not allow you to see inside - which is odd.

By the way, welcome to LQ - the hard way!

Last edited by astrogeek; 08-29-2013 at 09:20 PM.
 
  


Reply



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
permission denied on everything involving su and sudo. funkymonkey89 Fedora 1 08-29-2013 08:09 PM
[SOLVED] sudo giving permission denied on Linux ankgup87 Linux - General 10 02-29-2012 12:30 AM
sudo and >>: permission denied mcd Linux - Software 2 06-25-2008 03:30 PM
sudo - permission denied! yogaboy Linux - Newbie 5 12-28-2006 11:58 PM
sudo permission denied Swift&Smart Slackware 5 07-13-2006 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 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
Open Source Consulting | Domain Registration