LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 08: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, 09:19 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,665
Blog Entries: 12

Rep: Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894
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, 09:32 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,017
Blog Entries: 1

Rep: Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110
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, 09: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, 09: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: 664

Rep: Reputation: 80
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, 09: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, 10: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, 10:18 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,017
Blog Entries: 1

Rep: Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110
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 10:20 PM.
 
  


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


All times are GMT -5. The time now is 10:39 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