LinuxQuestions.org
Visit Jeremy's Blog.
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 09-06-2009, 03:26 PM   #1
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Rep: Reputation: 15
Cannot "su -" or access Yast in Suse.


I posted the following on Suse, but no help so far and am becoming impatient:

I think I created this problem. Ubuntu has GRUB and I accessed Suse's partition while in Ubuntu to copy Suse's new kernel id from the menu.lst and paste it into Ubuntu's menu.lst. I boot into Suse OK but, don't have any rights. "su -" gives me "su: cannot set groups: Operation not permitted". I can't open Yast either.
 
Old 09-06-2009, 03:37 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It definitely sounds like something got changed besides your GRUB "menu.lst".

This link might help:
http://www.linuxquestions.org/questi...-pls-help-767/
<= Suggestion:
Quote:
I would make sure that the su binary is suid root. Then make sure that /etc/passwd and /etc/group are both world readable...
PS:
This particular advice comes from Jeremy himself (the guy who started LinuxQuestions.org). It's good advice - 'hope it helps in your scenario!
 
Old 09-06-2009, 04:11 PM   #3
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by paulsm4 View Post
Hi -

It definitely sounds like something got changed besides your GRUB "menu.lst".

This link might help:
http://www.linuxquestions.org/questi...-pls-help-767/
<= Suggestion:

PS:
This particular advice comes from Jeremy himself (the guy who started LinuxQuestions.org). It's good advice - 'hope it helps in your scenario!
All sounds pretty complicated for the likes of me. Actually I had this happen once before and I think it's to do with Suse's security and the knowledge that a "read only file" was accessed from an outside source (from within Ubuntu). The files "passwd & group" are both readable. I may re-install or try the "Repair" option on the DVD.
 
Old 09-06-2009, 06:35 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
I think it's to do with Suse's security and the knowledge that a "read only file" was accessed from an outside source (from within Ubuntu).
No offense meant but that is silly.

Your su binary has lost its setuid root bit. Put it back.

Log in directly as root, or do sudo bash and hope that sudo works. Then fix the permissions, /bin/su should be -rwsr-xr-x, or 4755 in octal.
 
Old 09-06-2009, 07:03 PM   #5
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
No offense meant but that is silly.

Your su binary has lost its setuid root bit. Put it back.

Log in directly as root, or do sudo bash and hope that sudo works. Then fix the permissions, /bin/su should be -rwsr-xr-x, or 4755 in octal.
Could I do that from within Ubuntu?
 
Old 09-06-2009, 08:21 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes.
 
Old 09-07-2009, 11:14 AM   #7
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
No offense meant but that is silly.

Your su binary has lost its setuid root bit. Put it back.

Log in directly as root, or do sudo bash and hope that sudo works. Then fix the permissions, /bin/su should be -rwsr-xr-x, or 4755 in octal.
Not so silly. I tried what you said without success. I then re-installed Suse 11.1. This time I did an Acronis disk image of the Suse partition before trying anything else. Then I did the same thing as yesterday; went into Ubuntu and access the Suse partition's menu.lst. Then I booted into Suse; guess what! the same results. Shutdown greyed out, no Yast or su-. I will now restore the partition.
 
  


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
SUSE 11.0 - "SU" command giving error for installation through YAST raju.mopidevi SUSE / openSUSE 2 01-26-2009 08:07 AM
SUSE 10.1 hangs after "update if newer version available" with YAST stargazer33 SUSE / openSUSE 4 07-02-2007 01:16 PM
Suse 10 Yast "hardware info" hangs on braille suguru Linux - Hardware 1 12-22-2005 01:35 AM
Suse 9.1 Personal - YAST "An Error Occured During Installation" maniar SUSE / openSUSE 3 10-24-2004 03:52 AM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

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

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