Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't use sudo or su
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ville-v
n00b
n00b


Joined: 09 Apr 2013
Posts: 4

PostPosted: Thu May 02, 2013 8:58 am    Post subject: Can't use sudo or su Reply with quote

I accidentally used "chmod 777 */*/*" at / directory (at least I think that is the cause) and now I can no longer use sudo or su.

Code:
su
Salasana: (Password)
setgid: Toiminto ei ole sallittu
Translation: setgid: Action is not allowed.

Code:
sudo
sudo: todellinen käyttäjätunniste ei ole 0, onko sudo asennettu setuid root -käyttöoikeuksilla?
Translation: sudo: real user identifier is not 0

How do I fix this?
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5268
Location: ~Brussels - Belgique

PostPosted: Thu May 02, 2013 9:02 am    Post subject: Reply with quote

Hello,

Are your user in the "wheel" group (for su) or in the "sudoers" file (for sudo) ?
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
ville-v
n00b
n00b


Joined: 09 Apr 2013
Posts: 4

PostPosted: Thu May 02, 2013 9:12 am    Post subject: Reply with quote

XavierMiller wrote:
Hello,

Are your user in the "wheel" group (for su) or in the "sudoers" file (for sudo) ?

Yes, both. I have been using sudo and su without problems for months.

Some more information. This is a desktop computer running KDE. I was executing the aforementioned command in root console window when I noticed it was running in a wrong directory, so I closed the window. When I opened another console window, this problem appeared. Restarting the computer does not work.
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2375
Location: Hilbert space

PostPosted: Thu May 02, 2013 10:12 am    Post subject: Reply with quote

- What happens if you try to su from a standard tty ?
- What happens if, under a konsole, you kdesu whatever ?
_________________
Back to top
View user's profile Send private message
ville-v
n00b
n00b


Joined: 09 Apr 2013
Posts: 4

PostPosted: Thu May 02, 2013 10:36 am    Post subject: Reply with quote

I found the solution: http://www.debian-administration.org/articles/476
Code:
chmod 4755 /bin/su /usr/bin/sudo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum