LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2003, 10:55 PM   #1
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Question set UID/su not working?


Caution:

Well, it would appear that I'm a hopeless newbie because I simply don't understand what's going wrong here:

First strange thing is i cannot seem to su to root while I'm logged in as another user. 'su' asks me for the password but claims it to be invalid after I enter it. Same with 'su root'. I remember having used this to gain root privileges without any problem on another machine! What am I missing?

Second thing seems to be related to the first. I have to set UID a program (namely aterm) to be able to start it as another user. So I did a chmod 7755 aterm, which changed the permissions to
-rwsr-sr-x 1 root root
According to my knowledge this should give any user who starts the program root privileges, in effect allowing every user to start it. However when I try to launch it as another user, it still tells me that it "has to be installed suid root".

These two features are essential as I cannot use my system effectively as another user than root without them (and I'm sure everyone is gonna tell the whole story again about how bad this is ).

Is my root account somehow broken? Or is it something else? I'm left completely without a clue...


Thanks for any feedback!
 
Old 08-28-2003, 11:24 PM   #2
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Original Poster
Rep: Reputation: 30
Lightbulb LoL

Alright, I finally got those two to cooperate. The problem was I had permission settings in YaST2 set to paranoid (highest setting) which seems to have denied me access to both. I have now set it to moderate and it works.

Now my question is: What does YaST2 do behind the scenes that disables both su and set UID/GID? Always good to know what's going on... and that's not too easy with YaST2 hanging around...


Good Bye!
 
  


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
Set UID hinetvenkat Linux - Security 4 06-08-2005 03:50 AM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM
mounting an iso9660 with uid and gid set to user cwin Linux - Software 3 12-22-2004 05:45 PM
Urgent help required for set UID/GID Permission Linux_interest Linux - Newbie 2 09-15-2004 08:27 AM
How do i find all the set UID/GID file on my current system Linux_interest Linux - Newbie 1 09-13-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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