LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-03-2008, 04:58 AM   #1
codon
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
setgid: Operation not permitted !!!


I made (perhaps several) mistakes when I was trying to use the chmod . I remember i typed
chmod -R 611
at certain directory, then X window failed. I restarted the system and issued :
chmod -R 777 ./
at the safe-mode terminal. Then rebooted. The X window worked well again. but I must have changed something wrongly because I can no longer 'su' . when I try i get this:
codon@debian> su
Password:
setgid: Operation not permitted

I cannot switch to super-user any longer. This is bad. Could anyone help me out?

thanks a lot.
 
Old 05-03-2008, 06:01 AM   #2
A.West
LQ Newbie
 
Registered: Jan 2008
Location: Miami
Distribution: Gutsy Gibbon
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by codon View Post
I made (perhaps several) mistakes when I was trying to use the chmod . I remember i typed
chmod -R 611
at certain directory, then X window failed. I restarted the system and issued :
chmod -R 777 ./
at the safe-mode terminal. Then rebooted. The X window worked well again. but I must have changed something wrongly because I can no longer 'su' . when I try i get this:
codon@debian> su
Password:
setgid: Operation not permitted

I cannot switch to super-user any longer. This is bad. Could anyone help me out?

thanks a lot.

I am not sure what a "safe-mode terminal" is but this seems like a
permissions problem. Try:

ls -l /bin/su

it should look like:

-rwsr-xr-x 1 root root 30288 2008-04-02 21:07 /bin/su

if its not like this, try sudo chmod 755 /bin/su and then set the SUID bit. good luck. I hope you learned how powerful the permission system is. and of course the downside of fouling it up with such a broad change. don't do that anymore.
 
  


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
"setgid:Operation not permitted" after shadow install proRandom Linux From Scratch 3 10-21-2010 10:48 PM
setgid: operation not permitted Johnburrell Linux From Scratch 10 03-07-2010 05:03 AM
setgid:operation not permitted .. pls help me.. harisankar98 Linux - Newbie 6 12-27-2007 10:45 PM
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM


All times are GMT -5. The time now is 04:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration