LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-02-2003, 01:36 PM   #1
jacksonscottsly
LQ Newbie
 
Registered: Nov 2003
Distribution: gentoo
Posts: 19

Rep: Reputation: 0
error "su: permission denied sorry."


alrightyaok ljklkjl;kjlkjlkjsdfdf

alrighty...I've been having problems using the su command on my laptop (running gentoo 1.4f). Everytime I su and return, it prompts for the password (which i type in properly) and then i get a silly little error message saying "permission denied. sorry." Now, i searched the forums and could come up with nothing, other than adding my username into the wheel group (at /etc/group, i believe) and changing permissions. Well, i tried changing permissions, no luck... tweaking got me nothing but the inability to even execute su, so i chmoded back to -x-rx-rx-r or something like that. I also tried adding my user to /etc/group. I changed the a line from "wheel::10:root" to "wheel::10:root,me (where me is my username)...which did SOMETHING...it changed my error from "permission denied. sorry." to "authentication failure. sorry." So, great...progress? I dunno. Regardless, keep in mind that I am not even doing this through a console program from some windowmanager (although, it does the same thing in eterm through enlightenment) I am using commandline straight up. Root login works fine. User login works fine. su just wont do it's job, though. please help me if possible, thanks.
 
Old 11-02-2003, 03:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What's the output of
Code:
ls -l `which su`
?

Cheers,
Tink
 
Old 11-02-2003, 11:27 PM   #3
jacksonscottsly
LQ Newbie
 
Registered: Nov 2003
Distribution: gentoo
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Tinkster
Code:
ls -l `which su`
?
output:
Code:
-r-wr-xr-x   1 root   root   24304  Oct 26  00:23   /bin/su
Does that help you/me?
 
Old 11-02-2003, 11:35 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It clarifies that belonging to group wheel
won't do anything for you...

Cheers,
Tink
 
Old 11-03-2003, 01:47 AM   #5
core
Member
 
Registered: May 2003
Location: Berlin
Distribution: Slackware 9.1 Kernel: 2.6.4
Posts: 60

Rep: Reputation: 15
Quote:
Originally posted by jacksonscottsly
output:
Code:
-r-wr-xr-x   1 root   root   24304  Oct 26  00:23   /bin/su
Does that help you/me?
well not you, not him, but me....

su needs the SUID bit set.. so you gotta chmod it correctly..


as root: chmod u+s /bin/su

should be solved then..
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
"permission denied" error when cron job executes jillu Linux - Newbie 11 11-02-2004 01:19 PM
"permission denied" when I try to send raw data to the sound device. Travis86 Linux - Hardware 2 10-29-2003 09:08 AM
NTPD & "permission denied error" ghight Linux - Software 10 02-21-2003 01:14 PM

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

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