LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-23-2004, 12:12 PM   #1
noahsatellite
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
Angry su command fails with permission denied


When logged in as myself, if I open up a term and try to su, i enter the password for root and it gives me permission denied. The same password, though, if used to log in anew as root works. I can't pin down exactly when this happened, but i think it might have to do with dropline-installer, as that changed quite a few settings (doh) on my comp.

Thanks,
Noah
 
Old 05-23-2004, 12:21 PM   #2
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
In /etc/group you will need to add your user to the wheel group.
 
Old 05-23-2004, 12:23 PM   #3
rottie
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Which permition does the su command have on your system?
ls -l /bin/su
(or whatever location it's at, if it's not there you can find it with "whereis su")

It should be something like:
-rwsr-xr-x 1 root root 21112 2003-10-21 16:41 /bin/su

Maybe the "set user ID upon execution" thingie (s) is not set anymore.
 
Old 05-23-2004, 12:28 PM   #4
rottie
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Quote:
Originally posted by fur
In /etc/group you will need to add your user to the wheel group.
Hmm.. in my system I'm not in the wheel group but I can still use "su".
 
Old 05-24-2004, 02:04 PM   #5
noahsatellite
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Talking THANKS FUR

Well, adding myself to the wheel group worked. Thanks a lot. While we're on the topic, what IS the wheel group, and why does it work for rottie?

Thanks,
Noah
 
Old 05-25-2004, 12:36 AM   #6
rottie
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Yes, I'm wondering too.. If someone could explain that would be nice..
 
Old 05-26-2004, 03:47 AM   #7
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
In the 'old' BSD-flavoured Unices, the wheel group was used to control access to su.
An empty wheel group allowed all users to run su. Once a name was added, only those listed could do su.
Richard Stallman is famously against that mechanism, and GNU versions of su are not meant to use the wheel group for the purpose. Run "info su" to read the quote from Stallman. The wheel group is still used for confiuring sudo (see /etc/sudoers file).
Hope this helps...
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Permission Denied ! comox *BSD 2 01-26-2005 04:34 AM
get permission denied when trying to use info command. I nick623 Linux - Newbie 3 12-28-2004 06:06 PM
Permission Denied???? ddrfreak Mandriva 2 12-11-2004 07:09 AM
Mounting via CD icon works, but via command line = permission denied nmoog Linux - Newbie 6 03-07-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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